/* ===== VISUAL HIERARCHY & CUSTOM ICONOGRAPHY ===== */
/* Enterprise-grade progressive disclosure voor three-tier editorial sections */

/* ===== EDITORIAL SECTION DESCRIPTIONS ===== */
.editorial-description {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
    max-width: 600px;
}

/* ===== VISUAL HIERARCHY: PROGRESSIVE DISCLOSURE ===== */

/* PRIMARY (Featured) - DOMINANT KEY DIFFERENTIATOR */
.editorial-primary {
    position: relative;
    z-index: 3;
}

.editorial-primary .editorial-header {
    margin-bottom: 72px;
}

.editorial-primary .editorial-label {
    font-size: var(--text-sm);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Custom Icon for Featured - Star/Gem */
.editorial-primary .editorial-label::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4925A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
}

.editorial-primary .editorial-title {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, 
        var(--color-text-title) 0%,
        var(--color-accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative accent bar */
.editorial-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent-primary) 50%,
        transparent 100%);
    border-radius: 2px;
}

/* SECONDARY (Latest) - SUPPORTING ELEMENT */
.editorial-secondary {
    position: relative;
    z-index: 2;
}

.editorial-secondary .editorial-header {
    margin-bottom: 64px;
}

.editorial-secondary .editorial-label {
    font-size: var(--text-xs);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Custom Icon for Latest - Clock/New */
.editorial-secondary .editorial-label::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4925A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.editorial-secondary .editorial-title {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 600;
    color: var(--color-text-title);
}

/* TERTIARY (Discover) - SUBTLE SUPPORT */
.editorial-tertiary {
    position: relative;
    z-index: 1;
}

.editorial-tertiary .editorial-header {
    margin-bottom: 56px;
}

.editorial-tertiary .editorial-label {
    font-size: var(--text-2xs);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

/* Custom Icon for Discover - Compass/Explore */
.editorial-tertiary .editorial-label::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4925A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.editorial-tertiary .editorial-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ===== CARD HIERARCHY WITHIN SECTIONS ===== */

/* Featured Cards - Largest, Most Prominent */
.featured-card {
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(212, 146, 90, 0.15),
                0 12px 24px rgba(212, 146, 90, 0.10);
    z-index: 10;
}

/* Latest Cards - Medium Emphasis */
.latest-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.latest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(212, 146, 90, 0.12),
                0 8px 16px rgba(212, 146, 90, 0.08);
}

/* Discover Cards - Subtle, Supporting */
.discover-card {
    transition: all 0.25s ease;
}

.discover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(212, 146, 90, 0.10),
                0 6px 12px rgba(212, 146, 90, 0.06);
}

/* ===== CUSTOM ICON ANIMATIONS - EMOTIONAL RESONANCE ===== */

/* Hover Animation for Icons */
.editorial-primary .editorial-label:hover::before {
    animation: iconPulse 1.2s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.editorial-secondary .editorial-label:hover::before {
    animation: iconRotate 0.8s ease-in-out;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.editorial-tertiary .editorial-label:hover::before {
    animation: iconSpin 2s linear;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== SPACING HIERARCHY ===== */

/* Primary section gets most breathing room */
.editorial-primary {
    padding: var(--spacing-4xl) var(--grid-margin);
    margin-bottom: var(--spacing-4xl);
}

/* Secondary gets less */
.editorial-secondary {
    padding: var(--spacing-3xl) var(--grid-margin);
    margin-bottom: var(--spacing-3xl);
}

/* Tertiary gets minimal */
.editorial-tertiary {
    padding: var(--spacing-2xl) var(--grid-margin);
    margin-bottom: var(--spacing-2xl);
}

/* ===== RESPONSIVE HIERARCHY ===== */

@media (max-width: 1023px) {
    .editorial-primary .editorial-title {
        font-size: clamp(32px, 7vw, 42px);
    }
    
    .editorial-secondary .editorial-title {
        font-size: clamp(26px, 6vw, 34px);
    }
    
    .editorial-tertiary .editorial-title {
        font-size: clamp(22px, 5vw, 28px);
    }
    
    .editorial-primary {
        padding: var(--spacing-3xl) var(--grid-margin);
        margin-bottom: var(--spacing-3xl);
    }
    
    .editorial-secondary {
        padding: var(--spacing-2xl) var(--grid-margin);
        margin-bottom: var(--spacing-2xl);
    }
    
    .editorial-tertiary {
        padding: var(--spacing-xl) var(--grid-margin);
        margin-bottom: var(--spacing-xl);
    }
}

@media (max-width: 767px) {
    .editorial-primary .editorial-label::before {
        width: 20px;
        height: 20px;
    }
    
    .editorial-secondary .editorial-label::before {
        width: 18px;
        height: 18px;
    }
    
    .editorial-tertiary .editorial-label::before {
        width: 16px;
        height: 16px;
    }
    
    .editorial-description {
        font-size: var(--text-sm);
    }
    
    .featured-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .latest-card:hover {
        transform: translateY(-6px);
    }
    
    .discover-card:hover {
        transform: translateY(-4px);
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    .editorial-primary .editorial-label::before,
    .editorial-secondary .editorial-label::before,
    .editorial-tertiary .editorial-label::before {
        animation: none !important;
    }
    
    .featured-card:hover,
    .latest-card:hover,
    .discover-card:hover {
        transform: none;
    }
}

/* ===== CTA BUTTON ENHANCEMENT ===== */
/* Improved hero-cta with book icon and better micro-interactions */

.hero-cta svg {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-cta:hover svg {
    transform: translateX(-4px) scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(212, 146, 90, 0.3));
}

.hero-cta:active svg {
    transform: translateX(-2px) scale(1);
}

/* Pulsing effect on first load */
@keyframes ctaIntro {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(212, 146, 90, 0.2), 0 8px 24px rgba(212, 146, 90, 0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 24px rgba(212, 146, 90, 0.3), 0 12px 32px rgba(212, 146, 90, 0.15);
    }
}

.hero-cta {
    animation: ctaFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards,
               ctaIntro 2s ease-in-out 2.5s 1;
}

/* Focus state for keyboard navigation */
.hero-cta:focus-visible {
    outline: 3px solid var(--color-accent-primary);
    outline-offset: 4px;
    box-shadow: 0 8px 32px rgba(212, 146, 90, 0.3);
}
