/* KINGS CARS Style Sheet */

:root {
    --color-primary: #FFD700; /* Gold */
    --color-secondary: #1a1a1a; /* Deep Black/Dark Gray */
    --color-background: #f4f4f4; /* Light Gray Background */
    --color-text: #333;
    --color-light-text: #fff;
    --font-family-main: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-main);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* --- Header & Navigation --- */
header {
    background: var(--color-secondary);
    color: var(--color-light-text);
    padding: 10px 0;
    border-bottom: 5px solid var(--color-primary);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: var(--color-light-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a:hover {
    color: var(--color-primary);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container svg {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

/* --- Hero Section --- */
#hero {
    background: url('../img/hero_bg.jpg') no-repeat center center/cover;
    color: var(--color-light-text);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #e6c300;
}

/* --- Section Styling --- */
section {
    padding: 40px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
    color: var(--color-secondary);
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* --- Car Grid --- */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card-content {
    padding: 15px;
}

.car-card h3 {
    margin-bottom: 5px;
    color: var(--color-secondary);
}

.car-card p {
    margin-bottom: 10px;
    font-size: 14px;
}

.car-card .price {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* --- Car Details Page --- */
.car-details-main {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.car-details-image {
    flex: 2;
}

.car-details-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.car-details-info {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.car-details-info h1 {
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.car-details-info .price {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.car-details-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.car-details-info ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.car-details-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* --- Form Styling (Contact/Lead Form) --- */
.contact-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-card h3 {
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background: var(--color-secondary);
    color: var(--color-light-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.form-group button:hover {
    background: #000;
}

/* --- Footer --- */
footer {
    background: var(--color-secondary);
    color: var(--color-light-text);
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
}

/* --- Admin Panel (Basic Styling) --- */
.admin-body {
    background-color: #f8f9fa;
}

.admin-container {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.admin-header h1 {
    color: var(--color-secondary);
}

.admin-nav a {
    margin-left: 20px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
}

.admin-nav a:hover {
    color: var(--color-primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: var(--color-secondary);
    color: var(--color-light-text);
    text-transform: uppercase;
    font-size: 14px;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table .action-links a {
    margin-right: 10px;
    color: var(--color-primary);
    text-decoration: none;
}

.data-table .action-links a:hover {
    text-decoration: underline;
}

.status-sold {
    color: red;
    font-weight: bold;
}

.status-available {
    color: green;
    font-weight: bold;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
