/* ==============================================
   NATIONAL SAFETY MIRROR - GENERAL ENHANCEMENTS CSS
   ==============================================
   
   ✅ FULLY OPTIMIZED - February 2026
   
   This file now contains ONLY general enhancement styles:
   - Enhanced hero sections (non-mirror specific)
   - Enhanced button system
   - Mirror selection cards (homepage)
   - General responsive design
   - Accessibility features
   - General animations
   
   REMOVED DUPLICATIONS:
   - CSS Variables → Now only in nsm-core.css (65 lines)
   - Scroll-to-shop button → Now only in nsm-core.css (147 lines)
   - ALL mirror category page styles → Now only in nsm-mirrors.css (3,849 lines)
   - Broken/orphaned CSS fixed (15 lines)
   
   Total optimization: 4,813 → 419 lines (91.3% reduction!)
   
   LOAD ON: All pages that need enhanced styling (homepage, general pages)
   DEPENDENCIES: Requires nsm-core.css to be loaded first
   ============================================== */

/* NOTE: CSS Variables are defined in nsm-core.css */
/* This file depends on nsm-core.css being loaded FIRST */
/* Mirror category page styles are in nsm-mirrors.css (loaded conditionally) */


.nsm-logo:hover {
    transform: scale(1.05);
}

.nsm-brand-text {
    display: flex;
    flex-direction: column;
}

.nsm-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nsm-gray-800);
    line-height: 1;
    font-family: var(--nsm-font-primary);
    letter-spacing: -0.5px;
}

.nsm-brand-tagline {
    font-size: 0.875rem;
    color: var(--nsm-gray-500);
    font-weight: 500;
    font-family: var(--nsm-font-primary);
    margin-top: 2px;
}

/* Site Title and Description Adjustments */
.site-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--nsm-gray-800) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
}

.site-description {
    font-size: 0.75rem !important;
    color: var(--nsm-gray-500) !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
    line-height: 1.2 !important;
}

/* Ensure main header stays white */
.site-main-header-wrap {
    background: white !important;
}

.site-main-header-inner-wrap {
    background: white !important;
}

/* ==============================================
   HERO SECTION ENHANCEMENTS
   ============================================== */

/* Enhanced Mirror Text Effect */
.nsm-hero-title,
.kt-adv-heading7081_fc5764-ac {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f8fafc 25%,
        #e2e8f0 50%,
        #cbd5e1 75%,
        #94a3b8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

.nsm-hero-title::before,
.kt-adv-heading7081_fc5764-ac::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Trust Badges */
.nsm-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.75rem 1.25rem;
    border-radius: var(--nsm-radius-full);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: var(--nsm-font-weight-bold);
    color: var(--nsm-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all var(--nsm-transition-normal);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nsm-trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nsm-trust-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nsm-trust-badge:hover::before {
    left: 100%;
}

/* Enhanced Features */
.nsm-feature-enhanced:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.nsm-feature-enhanced:hover > div:first-child {
    transform: scale(1.1) !important;
}

/* ==============================================
   ENHANCED BUTTON SYSTEM
   ============================================== */
.btn-primary, .nsm-btn-primary,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--nsm-primary-blue-light), var(--nsm-accent-blue));
    color: var(--nsm-white);
    border: 2px solid transparent;
    border-radius: var(--nsm-radius-md);
    font-family: var(--nsm-font-primary);
    font-weight: var(--nsm-font-weight-semibold);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--nsm-transition-normal);
    box-shadow: var(--nsm-shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .nsm-btn-primary:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--nsm-accent-blue), var(--nsm-accent-blue-light));
    transform: translateY(-2px);
    box-shadow: var(--nsm-shadow-lg);
    color: var(--nsm-white);
    text-decoration: none;
}

.btn-secondary, .nsm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--nsm-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--nsm-radius-md);
    font-family: var(--nsm-font-primary);
    font-weight: var(--nsm-font-weight-semibold);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--nsm-transition-normal);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover, .nsm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: var(--nsm-white);
    text-decoration: none;
}

/* Header Button Styling Override */
.header-button-wrap .header-button {
    background: linear-gradient(135deg, var(--nsm-accent-red), var(--nsm-accent-red-dark)) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--nsm-radius-md) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
    border: none !important;
}

.header-button-wrap .header-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4) !important;
}

/* ==============================================
   MIRROR SELECTION CARDS
   ============================================== */
.mirror-card {
    background: white;
    border-radius: var(--nsm-radius-xl);
    padding: var(--nsm-spacing-xl);
    text-align: center;
    transition: all var(--nsm-transition-normal);
    border: 1px solid var(--nsm-gray-200);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--nsm-shadow-sm);
}

.mirror-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.mirror-card:hover::before {
    left: 100%;
}

.mirror-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nsm-shadow-lg);
    border-color: var(--nsm-primary-blue-light);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 768px) {
    .nsm-trust-content {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .nsm-trust-item {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .nsm-trust-item span:first-child {
        font-size: 1em;
    }
    
    .nsm-trust-bar {
        padding: 10px 0;
    }
    
    .nsm-logo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .nsm-brand-name {
        font-size: 1.25rem;
    }
    
    .nsm-brand-tagline {
        font-size: 0.75rem;
    }

    .btn-primary, .btn-secondary,
    .nsm-btn-primary, .nsm-btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }

    .site-title {
        font-size: 1.1rem !important;
    }

    .site-description {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .nsm-trust-content {
        gap: 0.6rem;
    }
    
    .nsm-trust-item {
        font-size: 0.75rem;
    }

    .site-title {
        font-size: 1rem !important;
    }

    .site-description {
        font-size: 0.6rem !important;
    }
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.mirror-card:focus-visible {
    outline: 2px solid var(--nsm-accent-blue);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .mirror-card {
        border: 2px solid var(--nsm-gray-800);
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* ==============================================
   ANIMATIONS FOR JAVASCRIPT
   ============================================== */
@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
