/* =================================== */
/*   UNIVERSAL LENS SECTION HEADERS    */
/*   For: Prime, Zoom, Macro, Tele,    */
/*   Wide-Angle & Specialty Lenses     */
/* =================================== */

/* Tier Headers Base Styling - Beautiful without borders */
.tier-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    padding: 50px 20px 70px;
    /* Elegant background without borders */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    /* Subtle shadow instead of border */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tier-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 50%, 
        rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
}

.tier-header > * {
    position: relative;
    z-index: 2;
}

/* Light background adaptation */
.tier-header.light-bg {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    box-shadow: 
        0 20px 60px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.tier-header.light-bg .tier-title {
    color: #333333;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.tier-header.light-bg .tier-subtitle {
    color: rgba(0, 0, 0, 0.8);
}

/* Dark background adaptation */
.tier-header.dark-bg {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tier-header.dark-bg .tier-title {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tier-header.dark-bg .tier-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    margin-bottom: 35px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(25px);
    /* Beautiful gradient borders instead of solid borders */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    /* Elegant shadow instead of border */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tier-badge:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.tier-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.tier-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Premium Tier Header - Beautiful styling */
.premium-tier .tier-header {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 50%, transparent 80%);
    box-shadow: 
        0 25px 80px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.premium-tier .tier-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 215, 0, 0.8) 30%, 
        #ffd700 50%, 
        rgba(255, 215, 0, 0.8) 70%, 
        rgba(255, 215, 0, 0.3) 100%);
    border-radius: 4px;
    filter: blur(1px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.premium-tier .tier-header::after {
    content: '✨';
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.premium-tier .tier-badge {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.25) 0%, 
        rgba(255, 237, 78, 0.2) 50%,
        rgba(255, 193, 7, 0.15) 100%);
    color: #ffd700;
    box-shadow: 
        0 12px 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 0 rgba(255, 215, 0, 0.4),
        inset 0 -1px 0 rgba(255, 193, 7, 0.2);
}

.premium-tier .tier-badge:hover {
    box-shadow: 
        0 20px 70px rgba(255, 215, 0, 0.4),
        inset 0 3px 0 rgba(255, 215, 0, 0.5),
        inset 0 -2px 0 rgba(255, 193, 7, 0.3);
}

.premium-tier .tier-title {
    background: linear-gradient(135deg, #ffffff 0%, #fff9c4 30%, #ffd700 70%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 30px rgba(255, 215, 0, 0.4);
    position: relative;
}

/* Premium tier adaptations */
.premium-tier .tier-header.light-bg .tier-title {
    background: linear-gradient(135deg, #333333 0%, #8b7d3a 30%, #b8860b 70%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-tier .tier-header.light-bg .tier-badge {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), rgba(218, 165, 32, 0.15));
    border: 2px solid rgba(184, 134, 11, 0.4);
    color: #b8860b;
}

.premium-tier .tier-header.light-bg .tier-subtitle {
    color: rgba(184, 134, 11, 0.9);
}

.premium-tier .tier-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.premium-tier .tier-subtitle {
    color: rgba(255, 215, 0, 0.9);
    font-weight: 500;
}

/* Mid-Range Tier Header - Beautiful styling */
.mid-range-tier .tier-header {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, rgba(102, 126, 234, 0.02) 50%, transparent 80%);
    box-shadow: 
        0 25px 80px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
}

.mid-range-tier .tier-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(102, 126, 234, 0.8) 30%, 
        #667eea 50%, 
        rgba(102, 126, 234, 0.8) 70%, 
        rgba(102, 126, 234, 0.3) 100%);
    border-radius: 4px;
    filter: blur(1px);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

.mid-range-tier .tier-header::after {
    content: '⚡';
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 1));
    animation: electric 2s ease-in-out infinite;
}

@keyframes electric {
    0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8)); }
    50% { opacity: 1; filter: drop-shadow(0 0 25px rgba(102, 126, 234, 1)); }
}

.mid-range-tier .tier-badge {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.25) 0%, 
        rgba(118, 75, 162, 0.2) 50%,
        rgba(90, 103, 216, 0.15) 100%);
    color: #667eea;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.3),
        inset 0 2px 0 rgba(102, 126, 234, 0.4),
        inset 0 -1px 0 rgba(90, 103, 216, 0.2);
}

.mid-range-tier .tier-badge:hover {
    box-shadow: 
        0 20px 70px rgba(102, 126, 234, 0.4),
        inset 0 3px 0 rgba(102, 126, 234, 0.5),
        inset 0 -2px 0 rgba(90, 103, 216, 0.3);
}

.mid-range-tier .tier-title {
    background: linear-gradient(135deg, #ffffff 0%, #e6e6fa 30%, #667eea 70%, #5a67d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 30px rgba(102, 126, 234, 0.4);
    position: relative;
}

/* Mid-range tier adaptations */
.mid-range-tier .tier-header.light-bg .tier-title {
    background: linear-gradient(135deg, #333333 0%, #4c4c7a 30%, #5a67d8 70%, #4c51bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mid-range-tier .tier-header.light-bg .tier-badge {
    background: linear-gradient(135deg, rgba(90, 103, 216, 0.2), rgba(76, 81, 191, 0.15));
    border: 2px solid rgba(90, 103, 216, 0.4);
    color: #5a67d8;
}

.mid-range-tier .tier-header.light-bg .tier-subtitle {
    color: rgba(90, 103, 216, 0.9);
}

/* Budget Tier Header - Beautiful styling */
.budget-tier .tier-header {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(17, 153, 142, 0.08) 0%, rgba(17, 153, 142, 0.02) 50%, transparent 80%);
    box-shadow: 
        0 25px 80px rgba(17, 153, 142, 0.15),
        inset 0 1px 0 rgba(17, 153, 142, 0.2);
}

.budget-tier .tier-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(17, 153, 142, 0.3) 0%, 
        rgba(17, 153, 142, 0.8) 30%, 
        #11998e 50%, 
        rgba(17, 153, 142, 0.8) 70%, 
        rgba(17, 153, 142, 0.3) 100%);
    border-radius: 4px;
    filter: blur(1px);
    box-shadow: 0 0 30px rgba(17, 153, 142, 0.6);
}

.budget-tier .tier-header::after {
    content: '💡';
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(56, 239, 125, 1));
    animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 15px rgba(56, 239, 125, 0.7)); }
    50% { opacity: 1; filter: drop-shadow(0 0 25px rgba(56, 239, 125, 1)); }
}

.budget-tier .tier-badge {
    background: linear-gradient(135deg, 
        rgba(17, 153, 142, 0.25) 0%, 
        rgba(56, 239, 125, 0.2) 50%,
        rgba(6, 214, 160, 0.15) 100%);
    color: #11998e;
    box-shadow: 
        0 12px 40px rgba(17, 153, 142, 0.3),
        inset 0 2px 0 rgba(17, 153, 142, 0.4),
        inset 0 -1px 0 rgba(6, 214, 160, 0.2);
}

.budget-tier .tier-badge:hover {
    box-shadow: 
        0 20px 70px rgba(17, 153, 142, 0.4),
        inset 0 3px 0 rgba(17, 153, 142, 0.5),
        inset 0 -2px 0 rgba(6, 214, 160, 0.3);
}

/* Tier Icon Styling */
.tier-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    transition: all 0.4s ease;
}

.tier-badge:hover .tier-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Responsive Headers */
@media (max-width: 1200px) {
    .tier-title {
        font-size: 2.8rem;
    }
    
    .tier-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .tier-header {
        margin-bottom: 70px;
    }
    
    .tier-title {
        font-size: 2.5rem;
    }
    
    .tier-subtitle {
        font-size: 1.2rem;
    }
    
    .tier-badge {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .tier-header {
        margin-bottom: 60px;
        padding: 0 15px;
    }
    
    .tier-badge {
        padding: 10px 24px;
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .tier-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .tier-subtitle {
        font-size: 1.1rem;
    }
    
    .premium-tier .tier-header::before,
    .mid-range-tier .tier-header::before,
    .budget-tier .tier-header::before {
        width: 80px;
        height: 4px;
        top: -30px;
    }
    
    .premium-tier .tier-header::after,
    .mid-range-tier .tier-header::after,
    .budget-tier .tier-header::after {
        top: -45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tier-header {
        margin-bottom: 50px;
        padding: 0 10px;
    }
    
    .tier-badge {
        padding: 8px 20px;
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .tier-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .tier-subtitle {
        font-size: 1rem;
    }
    
    .tier-icon {
        font-size: 1.2rem;
    }
    
    .premium-tier .tier-header::before,
    .mid-range-tier .tier-header::before,
    .budget-tier .tier-header::before {
        width: 60px;
        height: 3px;
        top: -25px;
    }
    
    .premium-tier .tier-header::after,
    .mid-range-tier .tier-header::after,
    .budget-tier .tier-header::after {
        top: -40px;
        font-size: 1rem;
    }
}

/* Animation Effects */
@keyframes headerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tier-header {
    animation: slideInFromTop 1s ease-out;
}

.tier-badge {
    animation: headerFadeIn 1s ease-out 0.3s both;
}

.tier-title {
    animation: headerFadeIn 1s ease-out 0.5s both;
}

.tier-subtitle {
    animation: headerFadeIn 1s ease-out 0.7s both;
}

/* Enhanced Professional Effects */
.tier-header:hover .tier-title {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.premium-tier .tier-title::before,
.mid-range-tier .tier-title::before,
.budget-tier .tier-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.premium-tier .tier-header:hover .tier-title::before {
    opacity: 0.1;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}

.mid-range-tier .tier-header:hover .tier-title::before {
    opacity: 0.1;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
}

.budget-tier .tier-header:hover .tier-title::before {
    opacity: 0.1;
    background: radial-gradient(circle, rgba(56, 239, 125, 0.3) 0%, transparent 70%);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .tier-header,
    .tier-badge,
    .tier-title,
    .tier-subtitle {
        animation: none;
    }
    
    .tier-badge:hover .tier-icon {
        transform: none;
    }
    
    .tier-header:hover .tier-title {
        transform: none;
    }
}

/* Auto Background Detection - Beautiful adaptations */
@media (prefers-color-scheme: light) {
    .tier-header {
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .tier-title {
        color: #333333;
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    }
    
    .tier-subtitle {
        color: rgba(0, 0, 0, 0.8);
    }
}

@media (prefers-color-scheme: dark) {
    .tier-header {
        background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .tier-title {
        color: #ffffff;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .tier-subtitle {
        color: rgba(255, 255, 255, 0.9);
    }
}

/* High Contrast Mode - Clean and accessible */
@media (prefers-contrast: high) {
    .tier-header {
        background: rgba(0, 0, 0, 0.9);
        box-shadow: 0 0 0 3px #ffffff;
        border-radius: 15px;
    }
    
    .tier-title {
        color: #ffffff;
        text-shadow: none;
    }
    
    .tier-subtitle {
        color: #ffffff;
    }
    
    .tier-badge {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 2px #ffffff;
        color: #ffffff;
    }
}

/* Custom Background Color Classes - Beautiful variants */
.tier-header.bg-primary {
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.15);
}

.tier-header.bg-secondary {
    background: radial-gradient(ellipse at center, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    box-shadow: 0 25px 80px rgba(118, 75, 162, 0.15);
}

.tier-header.bg-success {
    background: radial-gradient(ellipse at center, rgba(56, 239, 125, 0.08) 0%, transparent 70%);
    box-shadow: 0 25px 80px rgba(56, 239, 125, 0.15);
}

.tier-header.bg-warning {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    box-shadow: 0 25px 80px rgba(255, 215, 0, 0.15);
}

.tier-header.bg-danger {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    box-shadow: 0 25px 80px rgba(239, 68, 68, 0.15);
}
