/* style.css */
:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --primary: #d4af37; /* Premium Gold */
    --primary-hover: #b4942b;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-red: #e74c3c;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- Animations --- */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Header --- */
header {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid #333;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-main);
    margin-left: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-login {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 2px;
    color: var(--primary) !important;
}

.btn-login:hover {
    background: var(--primary);
    color: #000 !important;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Filters --- */
.filters {
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.filters span {
    margin-right: 20px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filters span:first-child {
    color: var(--primary);
    font-weight: bold;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

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

.car-card {
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.6s ease forwards;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: 0.3s;
}

.car-card:hover .car-img { filter: brightness(1.1); }

.car-info { padding: 20px; }

.car-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.bid-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

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

.btn-view {
    display: block;
    text-align: center;
    background: #333;
    color: #fff;
    padding: 12px;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-view:hover {
    background: var(--primary);
    color: #000;
}

/* --- Detail Page Specifics --- */
.lot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.specs-table td {
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.specs-key {
    color: var(--text-muted);
    width: 40%;
}

/* --- Comments --- */
.comments-wrapper {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 4px;
}

.comment-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.comment-meta {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
}

.comment-author { font-weight: bold; color: #fff; margin-right: 10px; }

/* --- Login Page --- */
.login-wrapper {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid #333;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.login-wrapper input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: #fff;
    outline: none;
}

.login-wrapper input:focus { border-color: var(--primary); }

.login-wrapper button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-wrapper button:hover { background: var(--primary-hover); }

/* --- Footer/Utility --- */
.flag-container {
    text-align: center;
    margin-top: 100px;
    border: 2px solid var(--primary);
    padding: 50px;
}
.flag-text {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    color: var(--primary);
    margin: 20px 0;
    padding: 20px;
    background: #000;
    display: inline-block;
}