/* ========================================
   BAT DIGEST - PILLAR HEADER STYLES
   Version 1.0 - Extracted from review-pillars.css and pillar-unified.css
   ======================================== */

/* ========== PILLAR PAGE LAYOUT ========== */
.pillar-page {
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* ========== PILLAR HEADER ========== */
.pillar-header {
    background: var(--bg-secondary);
    padding: 3rem 0 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* League-specific header styles */
.pillar-header.bbcor,
.pillar-header.usssa,
.pillar-header.usa,
.pillar-header.usa.baseball,
.pillar-header.fastpitch,
.pillar-header.resources {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* ========== PILLAR TITLE & SUBTITLE ========== */
.pillar-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.pillar-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    line-height: 1.6;
}


/* ========== PILLAR STATS ========== */
.pillar-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pillar-header .stat-number,
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========== PILLAR FOOTER NAVIGATION ========== */
.pillar-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ========== BREADCRUMB NAVIGATION ========== */
.breadcrumb-nav {
    margin: 0;
}

.breadcrumb-link,
.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.breadcrumb-link:hover,
.breadcrumb-back:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
    transform: translateX(-2px);
}

/* ========== AUTHORITY BAR ========== */
.authority-bar {
    margin: 0;
}

.methodology-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.methodology-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.breadcrumb-back i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.breadcrumb-back:hover i {
    transform: translateX(-2px);
}

/* ========== CREDENTIALS GRID ========== */
.credentials-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== PILLAR NAVIGATION GRID ========== */
.pillar-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ========== PILLAR BUTTONS ========== */
.pillar-button {
    display: block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-base);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.pillar-button:hover::before {
    left: 100%;
}

.pillar-button:hover,
.pillar-button.active {
    background: var(--primary-color);
    color: var(--text-on-primary);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.pillar-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Filter button states for blog */
.pillar-button.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-on-primary);
    font-weight: 600;
    border-color: var(--primary-color);
}

/* Dark mode pillar buttons */
body.dark-mode .pillar-button {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .pillar-button:hover,
body.dark-mode .pillar-button.active {
    background: var(--primary-color);
    color: var(--text-on-primary);
    font-weight: 600;
    border-color: var(--primary-color);
}

/* ========== LEAGUE-SPECIFIC ADJUSTMENTS ========== */
.pillar-header.usssa .img-fluid,
.pillar-header.fastpitch .img-fluid {
    max-height: 250px;
    display: block;
    margin: 0 auto;
}

.pillar-header.usssa .col-lg-4,
.pillar-header.fastpitch .col-lg-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 991px) {
    .pillar-header {
        padding: 2rem 0;
    }
    
    .pillar-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pillar-title {
        font-size: 2rem;
    }
    
    .pillar-subtitle {
        font-size: 1rem;
    }
    
    .pillar-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: 150px;
    }
    
    .pillar-header .stat-number,
    .stat-number {
        font-size: 2rem;
    }
    
    .pillar-nav-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .credentials-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .pillar-footer-nav {
        /* Keep flex-direction: row on mobile */
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .pillar-footer-nav .breadcrumb-link,
    .pillar-footer-nav .methodology-link {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .pillar-header {
        padding: 1.5rem 0;
    }
    
    .pillar-title {
        font-size: 1.75rem;
    }
    
    .pillar-stats {
        margin-top: 1.5rem;
    }
    
    .credential-item {
        font-size: 0.85rem;
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        align-items: center;
    }
    
    .credential-item i {
        margin-right: 0;
        margin-bottom: 0;
    }
}