/* Custom styling for report page with new team header */

/* Header container styling to resolve conflicts */
.header-container {
    margin-bottom: 2rem;
}

.header-main {
    background: linear-gradient(135deg, rgba(0,0,0,0.025) 0%, rgba(0,0,0,0.05) 100%);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.header-main:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.header-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.header-logo-container {
    margin-right: 2rem;
    position: relative;
}

.header-accent {
    height: 5px;
    width: 100%;
    background: linear-gradient(to right, var(--team-primary-color, #007bff), var(--team-secondary-color, #6c757d));
}

/* Add a subtle shine effect on hover */
.header-main::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    pointer-events: none;
    z-index: 1;
}

.header-main:hover::after {
    opacity: 1;
    transform: rotate(30deg) translate(0%, 0%);
}

/* Header element styling - use standardized logo sizes with fallbacks */
.header-team-logo {
    width: var(--logo-lg, 180px) !important;  /* 180px - matches track record page */
    height: var(--logo-lg, 180px) !important;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

/* Large screens - use XL logo size for enhanced visual impact */
@media (min-width: 1200px) {
    .header-team-logo {
        width: var(--logo-xl, 200px) !important;  /* 200px */
        height: var(--logo-xl, 200px) !important;
    }
}

.header-team-logo:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.2));
}

/* Team info and name styling */
.header-team-info {
    flex: 1;
}

.header-team-name {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.75rem !important;
    color: #6C757D; /* Muted text color */
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    letter-spacing: -0.5px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-wrap: break-word;
    max-width: 100%;
}

.header-team-metadata {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.header-season-badge {
    display: inline-block !important;
    padding: 0.35rem 0.75rem !important;
    background: transparent !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--team-primary-color, #007bff) !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Rankings styling */
.header-team-rankings {
    min-width: 280px;
}

.header-rankings-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-team-rank {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0.7rem 1rem !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(255,165,0,0.9), rgba(255,193,7,0.9)) !important;
    box-shadow: 0 4px 12px rgba(255,165,0,0.25) !important;
    color: #333 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    min-width: 80px !important;
}

.header-team-rank:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 6px 16px rgba(255,165,0,0.35) !important;
}

.header-rank-value {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.2rem !important;
}

.header-rank-name {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

/* Responsive adjustments for header elements */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .header-logo-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .header-team-logo {
        width: var(--logo-md, 150px) !important;  /* 150px on tablet */
        height: var(--logo-md, 150px) !important;
    }
    
    .header-team-info {
        text-align: center;
    }
    
    .header-team-name {
        font-size: 2rem !important;
    }
    
    .header-team-rankings {
        min-width: unset;
        width: 100%;
        margin-top: 1rem;
    }
    
    .header-rankings-container {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header-team-logo {
        width: var(--logo-sm, 100px) !important;  /* 100px on mobile */
        height: var(--logo-sm, 100px) !important;
    }
    
    .header-team-name {
        font-size: 1.75rem !important;
    }
    
    .header-season-badge {
        font-size: 0.8rem !important;
    }
    
    .header-team-rank {
        padding: 0.5rem 0.8rem !important;
        min-width: 70px !important;
    }
    
    .header-rank-value {
        font-size: 1.2rem !important;
    }
    
    .header-rank-name {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 360px) {
    .header-team-logo {
        width: 80px !important;  /* Compact size for very small screens */
        height: 80px !important;
    }
    
    .header-team-name {
        font-size: 1.5rem !important;
    }
    
    .header-season-badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .header-team-rank {
        padding: 0.4rem 0.6rem !important;
        min-width: 60px !important;
    }
    
    .header-rank-value {
        font-size: 1rem !important;
    }
    
    .header-rank-name {
        font-size: 0.65rem !important;
    }
}

/* Team records styling */
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.record-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.record-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--team-primary-color-light, rgba(0, 123, 255, 0.1));
    transition: all 0.3s ease;
}

.record-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: var(--team-primary-color-light, rgba(0, 123, 255, 0.2));
}

.record-item span {
    font-weight: 600;
}

/* Section heading styling to match other pages */
.section-heading {
    display: flex;
    align-items: center;
    margin: 2rem 0 1rem;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .record-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .record-item {
        width: 100%;
        justify-content: center;
    }
}
