/**
 * Archive Hero Section Styles
 * 3D neon styling for archive/category page hero section
 */

/* ============================================
   ARCHIVE HERO SECTION MAIN
   ============================================ */
.archive-hero-section {
    position: relative;
    min-height: var(--archive-hero-height, 500px);
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(
        135deg,
        var(--archive-hero-bg, #0a0a0f) 0%,
        var(--archive-hero-bg-alt, #1a1a2e) 50%,
        var(--archive-hero-bg, #0a0a0f) 100%
    );
}

.archive-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 100%;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .archive-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }
}

/* ============================================
   ARCHIVE HERO BACKGROUND
   ============================================ */
.archive-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 212, 255, 0.15) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at calc(100% - var(--mouse-x, 50%)) calc(100% - var(--mouse-y, 50%)),
        rgba(168, 85, 247, 0.15) 0%,
        transparent 50%
    );
    transition: background 0.3s ease-out;
}

/* ============================================
   ARCHIVE HERO CONTENT
   ============================================ */
.archive-hero-content {
    position: relative;
    z-index: 2;
    color: var(--archive-hero-text, #ffffff);
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   ARCHIVE HERO TITLE
   ============================================ */
.archive-hero-title-wrapper {
    margin-bottom: 20px;
}

.archive-hero-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px 0;
    background: linear-gradient(
        135deg,
        var(--archive-hero-text, #ffffff) 0%,
        var(--archive-hero-accent, #00d4ff) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease-out 0.1s both;
}

.archive-hero-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--archive-hero-accent, #00d4ff) 0%,
        rgba(0, 212, 255, 0) 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 20px var(--archive-hero-accent, #00d4ff);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

/* ============================================
   ARCHIVE HERO DESCRIPTION
   ============================================ */
.archive-hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 500px;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.archive-hero-description p {
    margin: 0 0 10px 0;
}

.archive-hero-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ARCHIVE HERO STATS
   ============================================ */
.archive-hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--archive-hero-accent, #00d4ff) 0%,
        #a855f7 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

@media (max-width: 480px) {
    .archive-hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* ============================================
   ARCHIVE HERO CTA BUTTON
   ============================================ */
.archive-hero-cta {
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

.archive-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(
        135deg,
        var(--archive-hero-accent, #00d4ff) 0%,
        #a855f7 100%
    );
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 15px 40px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.archive-hero-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    pointer-events: none;
}

.archive-hero-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.25);
}

.archive-hero-button:hover::before {
    left: 100%;
}

.archive-hero-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.archive-hero-button:hover svg {
    transform: translateX(4px);
}

/* ============================================
   ARCHIVE HERO IMAGE
   ============================================ */
.archive-hero-image {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: slideInRight 0.8s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

.archive-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.archive-hero-image:hover img {
    transform: scale(1.08) rotateY(5deg);
}

.archive-hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* ============================================
   ARCHIVE HERO IMAGE PLACEHOLDER
   ============================================ */
.archive-hero-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.05) 0%,
        rgba(168, 85, 247, 0.05) 100%
    );
    border: 2px dashed rgba(0, 212, 255, 0.2);
    animation: slideInRight 0.8s ease-out;
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.placeholder-content p {
    margin: 15px 0 0 0;
    font-size: 14px;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.archive-hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    background: #00d4ff;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: #a855f7;
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 180px;
    height: 180px;
    background: #ec4899;
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(0px);
    }
    75% {
        transform: translateY(-20px) translateX(-10px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .archive-hero-section {
        min-height: auto;
        margin-bottom: 30px;
    }

    .archive-hero-title {
        font-size: clamp(28px, 4vw, 48px);
    }

    .archive-hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .archive-hero-stats {
        gap: 30px;
        margin-bottom: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .archive-hero-image {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .archive-hero-wrapper {
        padding: 30px 15px;
        gap: 20px;
    }

    .archive-hero-title {
        font-size: clamp(24px, 3.5vw, 36px);
    }

    .archive-hero-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .archive-hero-stats {
        margin-bottom: 20px;
    }

    .archive-hero-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .archive-hero-image {
        min-height: 250px;
    }

    .floating-element {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
body.dark-mode .archive-hero-section {
    background: linear-gradient(
        135deg,
        #0a0a0f 0%,
        #1a1a2e 50%,
        #0a0a0f 100%
    );
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .archive-hero-content,
    .archive-hero-title,
    .archive-hero-line,
    .archive-hero-description,
    .archive-hero-stats,
    .archive-hero-cta,
    .archive-hero-image,
    .archive-hero-image-placeholder,
    .floating-element,
    .archive-hero-button {
        animation: none !important;
        transition: none !important;
    }
}

.reduced-motion .archive-hero-button:hover {
    transform: none;
}

.reduced-motion .archive-hero-image:hover img {
    transform: none;
}
