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

/* app.css - Styles needed by JavaScript components (nav, testimonials, image-slider) */

/* Basic reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    width: 100%;
    flex: 1;
    padding-top: 80px;
}


/* ========================================
   Navbar (required by nav.js)
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(222, 47%, 20%);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
    flex-shrink: 1;
    position: relative;
}

.nav-links a {
    color: hsl(222, 47%, 11%);
    text-decoration: none;
    position: relative;
    z-index: 2;
    padding: 8px 12px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: hsl(222, 47%, 30%);
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.nav-links a:hover {
    color: hsl(0, 0%, 90%);
}

/* Responsive navbar */
@media (max-width: 768px) {
    .navbar {
        background-color: #ffffff;
    }
    .navbar-inner {
        width: 100%;
        padding: 10px 15px;
        justify-content: space-between;
    }
    .hamburger {
        display: flex;
        margin-right: 0;
        padding: 5px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        width: 200px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 10px 0;
        gap: 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 14px;
        padding: 12px 20px;
        background-color: transparent;
        border-radius: 0;
        transition: background-color 0.2s, color 0.2s;
    }
    .nav-links a:hover {
        background-color: hsl(222, 47%, 30%);
        color: hsl(0, 0%, 90%);
    }
    .nav-bg {
        display: none;
    }
}

/* ========================================
   Testimonial Carousel (required by testimonials.js)
   ======================================== */
.testimonial-bar {
    max-width: 1300px;
    width: 100%;
    margin: 24px auto 0;
    background: hsl(222, 47%, 20%);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-bar h2 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 30px;
}

.testimonial-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 2em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.testimonial-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.testimonial-content {
    flex: 1;
    max-width: 800px;
    min-height: 100px;
    position: relative;
}

.testimonial {
    color: #ffffff;
    font-size: 1.1em;
    line-height: 1.6;
    font-style: italic;
    display: none;
    margin: 0;
}

.testimonial.active {
    display: block;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.2s;
}

.testimonial-dots .dot.active {
    background: #ffffff;
}

@media (max-width: 768px) {
    .testimonial-bar {
        padding: 30px 15px;
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
    }

    .testimonial-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .testimonial {
        font-size: 1em;
    }
}

/* ========================================
   Image Comparison / Slider
   ======================================== */
.image-comparison {
    position: relative;
    width: 500px;
    height: 300px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-after {
    width: 50%;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #333;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-2px);
}

/* ========================================
   DCTX Home Page
   ======================================== */

.dctx-home {
    background: #07080a;
    min-height: 100vh;
}

/* --- Hero --- */

.dctx-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 5rem 1.5rem 4rem;
}

.dctx-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 45% at 50% 30%, rgba(212, 165, 26, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(10, 14, 30, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.dctx-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
    pointer-events: none;
}

.dctx-hero-content {
    position: relative;
    z-index: 1;
}

.dctx-hero-content > * {
    animation: dctx-fade-up 0.7s ease-out both;
}

.dctx-hero-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #6b6e7a;
    margin-bottom: 0.75rem;
    animation-delay: 0.05s;
}

.dctx-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: 0.05em;
    color: #f0ece4;
    margin: 0;
    animation-delay: 0.15s;
}

.dctx-hero-rule {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a51a, transparent);
    margin: 1.75rem auto;
    animation-delay: 0.3s;
}

.dctx-hero-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    animation-delay: 0.4s;
}

@keyframes dctx-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Buttons --- */

.dctx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.dctx-btn-gold {
    background: #d4a51a;
    color: #07080a;
    border-color: #d4a51a;
}

.dctx-btn-gold:hover {
    background: #e8b82e;
    border-color: #e8b82e;
    box-shadow: 0 0 24px rgba(212, 165, 26, 0.25);
}

.dctx-btn-ghost {
    background: transparent;
    color: #6b6e7a;
    border-color: #262938;
}

.dctx-btn-ghost:hover {
    color: #f0ece4;
    border-color: #4a4d58;
}

/* --- Sections --- */

.dctx-section {
    padding: 0 1.5rem 3.5rem;
}

.dctx-container {
    max-width: 1080px;
    margin: 0 auto;
}

.dctx-section-head {
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #14161e;
}

.dctx-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #22c55e;
}

.dctx-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: dctx-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dctx-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.dctx-upcoming-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d4a51a;
}

.dctx-upcoming-indicator svg {
    flex-shrink: 0;
}

/* --- Auction Grid --- */

.dctx-auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.125rem;
}

/* --- Auction Cards --- */

.dctx-auction-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #11131a;
    border: 1px solid #1b1e28;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.dctx-auction-card:hover {
    border-color: rgba(212, 165, 26, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.dctx-card-live:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.dctx-card-img {
    position: relative;
    height: 170px;
    background: #0c0e14;
    overflow: hidden;
}

.dctx-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dctx-auction-card:hover .dctx-card-img img {
    transform: scale(1.05);
}

.dctx-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22252e;
    background: linear-gradient(160deg, #0c0e14 0%, #13151e 100%);
}

.dctx-card-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
}

.dctx-badge-live {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.dctx-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dctx-badge-dot-live {
    background: #22c55e;
    animation: dctx-pulse 2s ease-in-out infinite;
}

.dctx-badge-upcoming {
    background: rgba(212, 165, 26, 0.08);
    color: #d4a51a;
    border: 1px solid rgba(212, 165, 26, 0.2);
}

.dctx-card-body {
    padding: 1.125rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dctx-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #f0ece4;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.dctx-card-desc {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    color: #5a5d68;
    margin: 0 0 auto 0;
    padding-bottom: 0.875rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dctx-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #171920;
}

.dctx-card-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #44474f;
    letter-spacing: 0.02em;
}

.dctx-card-arrow {
    font-size: 0.9rem;
    color: #2a2d35;
    transition: color 0.25s ease, transform 0.25s ease;
}

.dctx-auction-card:hover .dctx-card-arrow {
    color: #d4a51a;
    transform: translateX(3px);
}

.dctx-card-live:hover .dctx-card-arrow {
    color: #22c55e;
}

/* --- Empty State --- */

.dctx-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #2a2d35;
}

.dctx-empty svg {
    margin: 0 auto 1rem;
    display: block;
}

.dctx-empty p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #5a5d68;
    margin: 0 0 0.25rem 0;
}

.dctx-empty span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #3a3d45;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .dctx-hero {
        min-height: 45vh;
        padding: 4rem 1.25rem 3rem;
    }

    .dctx-auction-grid {
        grid-template-columns: 1fr;
    }

    .dctx-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .dctx-btn {
        width: 100%;
        max-width: 220px;
    }

    .dctx-card-img {
        height: 150px;
    }
}

/* ========================================
   Auction List — Horizontal Row Cards
   ======================================== */

.dctx-auction-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.dctx-auction-row {
    display: flex;
    text-decoration: none;
    background: #11131a;
    border: 1px solid #1b1e28;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.dctx-auction-row:hover {
    border-color: rgba(212, 165, 26, 0.3);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dctx-row-img {
    position: relative;
    width: 220px;
    min-height: 160px;
    flex-shrink: 0;
    background: #0c0e14;
    overflow: hidden;
}

.dctx-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dctx-auction-row:hover .dctx-row-img img {
    transform: scale(1.06);
}

.dctx-row-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22252e;
    background: linear-gradient(160deg, #0c0e14 0%, #13151e 100%);
}

.dctx-row-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.dctx-row-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #f0ece4;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.dctx-row-desc {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    color: #5a5d68;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dctx-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid #171920;
}

.dctx-row-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #44474f;
    letter-spacing: 0.02em;
}

.dctx-row-arrow {
    font-size: 1rem;
    color: #2a2d35;
    transition: color 0.25s ease, transform 0.25s ease;
}

.dctx-auction-row:hover .dctx-row-arrow {
    color: #d4a51a;
    transform: translateX(4px);
}

/* Row cards — responsive */
@media (max-width: 640px) {
    .dctx-auction-row {
        flex-direction: column;
    }

    .dctx-row-img {
        width: 100%;
        min-height: 0;
        height: 160px;
    }

    .dctx-auction-row:hover {
        transform: translateY(-3px);
    }
}
