/* ========================================
   BAT DIGEST - HOME PAGE STYLES
   Authority Theme Homepage Specific CSS
   ======================================== */

/* ========== HERO SECTION ========== */
.authority-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.authority-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(148, 163, 184, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(148, 163, 184, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    backdrop-filter: blur(10px);
}

body.dark-mode .industry-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(148, 163, 184, 0.2));
    border-color: rgba(37, 99, 235, 0.4);
    color: #60a5fa;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title-line {
    display: block;
    margin: 0.1em 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Bat Visual - Updated for rotating display */
.bat-visual {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 120px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body.dark-mode .bat-visual {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

.bat-visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.bat-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background: #ffffff;
}

.bat-image-wrapper.active {
    opacity: 1;
}

.bat-image-wrapper.fade-out {
    opacity: 0;
}

.rotating-bat-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
    background: transparent;
}

.rotating-bat-image:hover {
    transform: scale(1.05);
}

.bat-info-overlay {
    position: absolute;
    bottom: 5px;
    left: 15px;
    background: none;
    color: #4a4a4a;
    padding: 0;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bat-image-wrapper.active .bat-info-overlay {
    opacity: 1;
}

body.dark-mode .bat-info-overlay {
    color: #4a4a4a;
}

/* Loading State */
.bat-visual-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.analyze-btn {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: none;
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.analyze-btn.secondary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.analyze-btn::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.5s;
}

.analyze-btn:hover::before {
    left: 100%;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.analyze-btn.secondary:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-color: transparent;
}

body.dark-mode .analyze-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

body.dark-mode .analyze-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ========== MEDIA VALIDATION SECTION ========== */
.media-validation {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.media-logos img {
    height: 24px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.media-logos img:hover {
    opacity: 0.8;
}

body.dark-mode .media-logos img {
    filter: invert(1) brightness(0.8);
}

/* ========== AFFILIATE DISCLOSURE ========== */
.affiliate-disclosure {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

body.dark-mode .affiliate-disclosure {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.affiliate-disclosure a {
    color: #3b82f6;
    text-decoration: none;
}

.affiliate-disclosure a:hover {
    text-decoration: underline;
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Ultra-wide screens: 4 columns */
@media (min-width: 1400px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large screens: 2x2 grid */
@media (min-width: 768px) and (max-width: 1399px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: single column */
@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

body.dark-mode .category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--link-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

body.dark-mode .category-icon img {
    filter: brightness(0.9);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ========== STATS SECTION ========== */
.stats-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 5rem 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.dark-mode .stat-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .authority-hero {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .bat-visual {
        height: 100px;
        max-width: 400px;
    }
    
    .analyze-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-cta-buttons .analyze-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .media-logos {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .bat-info-overlay {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        bottom: 10px;
        left: 10px;
    }
}