@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0a0e14;
    --secondary: #c5a059; /* Gold */
    --accent: #ff4757;
    --text-main: #e1e1e1;
    --text-muted: #888;
    --white: #ffffff;
    --card-bg: #161b22;
    --glass: rgba(10, 14, 20, 0.85);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo span { color: var(--secondary); }
.logo i { font-size: 28px; color: var(--secondary); }

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

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

.mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
}

.btn-account {
    background: var(--secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-account:hover {
    background: var(--white);
    color: var(--primary);
}

/* Ticker / Info Bar */
.info-ticker {
    background: var(--secondary);
    color: white;
    padding: 8px 5%;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    top: 65px;
    z-index: 900;
    display: flex;
    justify-content: space-between;
}

/* Hero */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(10, 14, 20, 0.4), rgba(10, 14, 20, 0.9)), url('../img/hero-house.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    margin-top: 50px;
}

.hero-content { max-width: 800px; }
.hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #c5a059);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 22px;
    color: #aaa;
    margin-bottom: 40px;
}

/* Grid */
.section-title {
    padding: 80px 10% 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 { font-size: 32px; color: var(--white); }

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 10% 100px;
}

.property-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover { transform: translateY(-10px); border-color: var(--secondary); }

.property-img {
    height: 220px;
    background: #21262d;
    position: relative;
    overflow: hidden;
}

.property-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.property-card:hover .property-img img { transform: scale(1.1); }

.badge-live {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--accent);
    color: white; padding: 4px 10px;
    border-radius: 4px; font-size: 9px; font-weight: 800;
    text-transform: uppercase; display: flex; align-items: center; gap: 5px;
    z-index: 10;
}

.badge-live::before {
    content: ''; width: 6px; height: 6px; background: white; border-radius: 50%; animation: pulse 1s infinite;
}

.property-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.property-info h4 { font-size: 18px; margin-bottom: 5px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.price-status {
    background: rgba(255,255,255,0.03);
    padding: 15px; border-radius: 8px;
    display: flex; justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.price-status label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.price-status strong { color: var(--secondary); font-size: 20px; }

.btn-view {
    background: var(--secondary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}

/* Ended Overlays */
.property-card.ended {
    opacity: 0.8;
}

.ended-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: 0.3s;
    border-radius: 8px 8px 0 0;
}

.property-card:hover .ended-overlay {
    background: rgba(0,0,0,0.3);
}

.ended-stamp {
    border: 4px solid var(--accent);
    color: var(--accent);
    padding: 10px 25px;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-20deg);
    font-size: 28px;
    letter-spacing: 2px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
    text-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
    background: rgba(0,0,0,0.6);
}

.detail-container .ended-overlay {
    border-radius: 12px;
}

/* Detail Page Specific */
.detail-container { padding: 120px 10% 100px; display: grid; grid-template-columns: 1fr 400px; gap: 50px; }
.gallery-main { width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 20px; background: #161b22; border: 1px solid rgba(255,255,255,0.05); }
.gallery-main img { width: 100%; display: block; }

.gallery-thumbs { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 12px; 
    margin-top: 20px;
    clear: both;
}
.thumb { 
    display: block;
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.2s ease; 
    opacity: 0.5; 
    border: 2px solid transparent;
}
.thumb:hover { opacity: 1; border-color: var(--secondary); transform: scale(1.02); }

.info-panel { background: var(--card-bg); padding: 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); height: fit-content; position: sticky; top: 100px; }
.price-box { background: rgba(197, 160, 89, 0.1); border: 1px solid var(--secondary); padding: 25px; border-radius: 12px; margin-bottom: 30px; text-align: center; }
.price-box span { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 5px; }
.price-box strong { font-size: 32px; color: var(--secondary); }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.spec-item { margin-bottom: 10px; }
.spec-item label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.spec-item span { font-weight: 600; color: white; }
.description { margin-top: 50px; background: rgba(255,255,255,0.02); padding: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.description h3 { margin-bottom: 20px; color: var(--secondary); }
.btn-bid { background: var(--accent); color: white; width: 100%; padding: 18px; border-radius: 8px; display: block; text-align: center; text-decoration: none; font-weight: 800; font-size: 18px; margin-bottom: 15px; box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3); transition: 0.3s; }
.btn-bid:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(255, 71, 87, 0.5); }

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Footer */
footer {
    background: #050505;
    padding: 80px 10% 40px;
    border-top: 1px solid #111;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h5 { color: var(--white); font-size: 14px; margin-bottom: 20px; text-transform: uppercase; }
.footer-col p { color: #666; font-size: 13px; line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #666; text-decoration: none; font-size: 13px; transition: 0.3s; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }

/* Responsive */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 56px; }
    .detail-container { padding: 120px 5% 100px; gap: 30px; }
}

@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
    
    .info-panel {
        position: static;
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 991px) {
    nav {
        padding: 15px 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #0a0e14;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
        gap: 0;
        display: flex;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links a {
        font-size: 16px;
        padding: 15px 0;
        display: block;
    }

    .mobile-toggle {
        display: block;
        order: 2;
    }

    .nav-actions {
        display: none !important;
    }

    .hero-content h1 { font-size: 42px; }
    .hero { height: auto; min-height: 500px; padding-top: 120px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .auction-grid { 
        padding: 0 5% 80px; 
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
        gap: 20px; 
    }
    .footer-grid { grid-template-columns: 1fr; }
    .info-ticker { flex-direction: column; gap: 5px; text-align: center; height: auto; }
    .section-title { padding: 60px 5% 30px; }
    .specs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .auction-grid { 
        grid-template-columns: 1fr; 
        padding: 0 5% 60px; 
    }
    .hero-content h1 { font-size: 32px; }
    .logo { font-size: 20px; }
    .price-box strong { font-size: 26px; }
}
