﻿/* =============================================================
   AUCTION SECTION HEADER
   Covers: .auction-header layout, title typography, animated
           gradient divider, and the "View All" link button.
   Reused in both the live-auction and winner-showcase sections.
   ============================================================= */

.auction-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0 1.5rem;
    position: relative;
}

.header-main {
    flex: 1;
    max-width: 700px;

}

/* ─── TYPOGRAPHY ─────────────────────── */
.header-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    max-width: 480px;
}

/* ─── ANIMATED GRADIENT DIVIDER ─────────── */
.divider {
    position: relative;
    height: 4px;
    width: 80px;
    margin-top: 1.25rem;
}

.divider-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: divider-shimmer 3s linear infinite;
}

.divider-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 4px;
    opacity: 0.4;
    filter: blur(4px);
    animation: divider-shimmer 3s linear infinite;
}

@keyframes divider-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ─── VIEW ALL LINK ─────────────────────── */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .view-all-link::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: inherit;
    }

.link-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.link-arrow {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .link-arrow svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

.view-all-link:hover {
    color: #fff;
    transform: translateX(4px);
}

    .view-all-link:hover::before {
        opacity: 1;
    }

    .view-all-link:hover .link-arrow {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

        .view-all-link:hover .link-arrow svg {
            transform: translateX(2px);
        }

.view-all-link:active {
    transform: translateX(4px) scale(0.98);
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .auction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem 0 1rem;
    }

    .view-all-link {
        align-self: flex-end;
    }

    .header-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .view-all-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
