/*
Theme Name: Astra Child
Template: astra
Description: Child theme of Astra for NEPSAC Soccer
Version: 1.0
*/
@import url("../astra/style.css");

/* Force blue header specifically for girls soccer page */
body.page-template-page-girls-soccer .nepsac-header,
body.page-id-[YOUR_PAGE_ID] .nepsac-header,
.page-girls-soccer .nepsac-header {
    background: #002266 !important;
    background-color: #002266 !important;
}

/* Override any Astra header styles */
body .nepsac-header {
    background: #002266 !important;
    background-color: #002266 !important;
}

/* Make sure the header container also has the blue background */
.nepsac-header .header-top {
    background: #002266 !important;
    background-color: #002266 !important;
}

/* Override any theme header background */
.site-header,
.main-header-bar,
.ast-header-break-point .main-header-bar {
    background: #002266 !important;
    background-color: #002266 !important;
}

/* DESKTOP ONLY: Hide Astra headers on plugin pages */
@media (min-width: 769px) {
    .nepsac-soccer .site-header {
        display: none !important;
    }
    
    .site-header-above-section-center,
    .ast-main-header-wrap,
    .main-header-bar-wrap,
    .site-header-primary-section-center,
    .ast-builder-grid-row-container,
    .site-header-focus-item {
        display: none !important;
    }
    
    .site-header {
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ast-header-break-point,
    .ast-primary-menu-enabled,
    .ast-hide-custom-menu-mobile,
    .ast-builder-menu-toggle-icon,
    .ast-mobile-header-inline {
        display: none !important;
    }
    
    .site-header * {
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

/* MOBILE: Only hide specific header elements, preserve containers */
@media (max-width: 768px) {
    .nepsac-soccer .site-header .site-branding {
        display: none !important;
    }
    
    .nepsac-soccer .site-header {
        position: absolute !important;
        left: -9999px !important;
        visibility: hidden !important;
    }
}

/* Remove top spacing - DESKTOP ONLY */
@media (min-width: 769px) {
    .nepsac-soccer #content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .nepsac-soccer #primary {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    body.nepsac-soccer {
        padding-top: 0 !important;
    }
    
    .site-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Make sure the blue header touches the top */
.nepsac-soccer .nepsac-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Welcome Section */
.welcome-section {
    background: #e3f2fd;
    color: #1a1a1a;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-message {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.disclaimer-message {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 30px 20px;
    }
    
    .welcome-message {
        font-size: 1.1rem;
    }
    
    .disclaimer-message {
        font-size: 0.85rem;
    }
}

/* Homepage games styling */
.homepage-game {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #002266;
    display: flex;
    align-items: center;
    gap: 20px;
}

.homepage-game.completed {
    border-left-color: #28a745;
}

.game-time-homepage {
    font-weight: bold;
    color: #002266;
    font-size: 1.1em;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.game-status-small {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
    margin-top: 2px;
}

.game-matchup-homepage {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-height: 50px;
}

.team-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.team-logo-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-placeholder-small {
    width: 32px;
    height: 32px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.team-info-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.team-link {
    font-size: 1em;
    font-weight: 500;
    color: #002266;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.team-record-small {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}

.team-division-small {
    font-size: 0.8em;
    color: #888;
    white-space: nowrap;
}

.vs-display {
    font-weight: bold;
    color: #666;
    font-size: 1.1em;
    flex-shrink: 0;
}

.team-score-small {
    font-size: 1.1em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.team-score-small.winner {
    background: #d4edda;
    color: #155724;
}

.team-score-small.loser {
    background: #f8d7da;
    color: #721c24;
}

.team-score-small.tie {
    background: #fff3cd;
    color: #856404;
}

/* Mobile game display */
@media (max-width: 768px) {
    .homepage-game {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 12px;
    }
    
    .game-time-homepage {
        text-align: center;
        font-size: 1em;
        min-width: auto;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
    
    .game-matchup-homepage {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .team-display {
        background: #fff;
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }
    
    .team-display.away-team-display {
        border-left: 3px solid #007bff;
    }
    
    .team-display.home-team-display {
        border-left: 3px solid #28a745;
    }
    
    .team-info-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .vs-display {
        text-align: center;
        font-size: 0.9em;
        color: #999;
    }
    
    .team-link {
        font-size: 0.95em;
        white-space: normal;
    }
    
    .team-logo-small {
        width: 28px;
        height: 28px;
    }
    
    .logo-placeholder-small {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}