/* Homepage-specific styles - Uses universal navbar styles from navigation.css */

/* EMERGENCY FIX FOR HOMEPAGE VISIBILITY - CRITICAL */
body.homepage-page, body.homepage-page .main-content, .main-content {
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh !important;
}

body.homepage-page .hero-section, .hero-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.homepage-page .hero-content, .hero-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
}

body.homepage-page .homepage-grid, .homepage-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* END EMERGENCY FIX */

/* Universal Header Sizing Standards - Applied to all pages */
h1, h1 *, .profile-header h1, .hero-card h1, .athlete-name, .hero-profile-name {
    font-size: 32px !important;
    font-weight: 900 !important; /* Extra bold to ensure consistency */
    line-height: 1.2 !important;
    margin: 20px 0 16px 0 !important;
}

/* Ensure athlete name gets proper font weight with higher specificity */
h1.athlete-name, .athlete-name-rating-section .athlete-name {
    font-weight: 900 !important;
    font-size: 32px !important;
}

h2, h2 *, .hero-card h2 {
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 18px 0 14px 0 !important;
}

h3, h3 *, .hero-card h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 16px 0 12px 0 !important;
}

h4, h4 *, .hero-card h4, .dropdown-section h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 14px 0 10px 0 !important;
}

h5, h5 *, .hero-card h5 {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 12px 0 8px 0 !important;
}

h6, h6 *, .hero-card h6 {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 10px 0 6px 0 !important;
}

/* First header in any container should have reduced top margin */
*:first-child h1,
*:first-child h2,
*:first-child h3,
*:first-child h4,
*:first-child h5,
*:first-child h6 {
    margin-top: 0 !important;
}

/* Body and main layout styles - Only for homepage, not profile pages */
body:not(.profile-page), body.homepage {
    background: 
        /* Brick pattern - mortar lines */
        linear-gradient(0deg, #0a0a0a 0px, #0a0a0a 4px, #444444 4px, #444444 30px),
        linear-gradient(90deg, #0a0a0a 0px, #0a0a0a 3px, #444444 3px, #444444 120px),
        /* Brick texture base */
        linear-gradient(135deg, #333333 0%, #555555 25%, #2a2a2a 50%, #444444 75%, #1a1a1a 100%);
    background-size: 100% 30px, 120px 60px, 120px 30px;
    background-position: 0 0, 0 0, 60px 30px;
    color: white;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

/* Ensure main content displays properly on homepage */
body.homepage .main-content {
    background-color: transparent;
    color: white;
    padding: 0;
    margin: 0;
    display: block;
    visibility: visible;
}

/* New Background Layout Styles */
.hero-background {
    position: relative;
    margin-top: -10px; /* Reduce gap between navbar and top row by half */
    min-height: calc(100vh - 141px); /* Account for navbar */
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.hero-overlay {
    /* Remove overlay since we have solid black background */
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0px 20px 40px 20px; /* Removed top padding completely */
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    grid-template-rows: auto auto auto; /* Ensure 3 rows are defined */
    gap: 5px; /* Further reduced gap from 8px to 5px */
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 161px);
    align-items: start;
}

.hero-name-section {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    margin-bottom: 5px; /* Reduced from 20px to compress layout */
}

.hero-profile-name {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-stats-left {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduced from 10px */
}

.hero-info-right {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduced from 10px */
}

.hero-bottom-sections {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    gap: 15px; /* Reduced from 30px */
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 15px; /* Reduced from 40px */
    padding: 0 20px; /* Reduced from 40px */
}

/* Ensure text outside of sections is visible on black background */
h1, h2, h3, h4, h5, h6, p, div, span {
    color: inherit;
}

/* Make sure any text outside flex-container is white */
body > * {
    color: white;
}

/* Override for flex-container content to be dark */
.flex-container * {
    color: #333;
}

/* Keep links blue inside sections */
.flex-container a {
    color: #0052a3;
}

/* Navigation styles have been moved to navigation.css */

/* Hero Card Styles - Shiny Metallic Silver with Subtle Default State - HIGHEST PRIORITY */
.hero-card,
.hero-background .hero-card,
.hero-content .hero-card {
    background: linear-gradient(145deg, 
        #f2f2f2 0%, 
        #e6e6e6 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    border: 2px solid rgba(180, 180, 180, 0.6) !important; /* Subtle silver border by default */
    color: #2c2c2c !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    position: relative;
    overflow: hidden;
}

/* Override flex-container when used with hero-card - Force metallic silver */
.hero-card.flex-container,
.flex-container.hero-card,
.hero-background .hero-card.flex-container,
.hero-background .flex-container.hero-card {
    background: linear-gradient(145deg, 
        #f2f2f2 0%, 
        #d0d0d0 25%, 
        #b8b8b8 50%, 
        #e0e0e0 75%, 
        #f8f8f8 100%) !important;
    border: 2px solid rgba(180, 180, 180, 0.6) !important; /* Subtle silver border by default */
    color: #2c2c2c !important;
    border-left: 2px solid rgba(180, 180, 180, 0.6) !important; /* Override the blue left border */
}

.hero-card.flex-container:hover,
.flex-container.hero-card:hover,
.hero-background .hero-card.flex-container:hover,
.hero-background .flex-container.hero-card:hover {
    border: 3px solid #e55a2b !important; /* Orange border on hover */
    border-left: 3px solid #e55a2b !important; /* Override the blue left border on hover */
    background: linear-gradient(145deg, 
        #ffffff 0%, 
        #e0e0e0 25%, 
        #c8c8c8 50%, 
        #f0f0f0 75%, 
        #ffffff 100%) !important;
}

/* Metallic Sheen Effect for Premium Look */
.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: rotate(-45deg);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.hero-card:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(-45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(-45deg);
    }
}

/* Update all text within hero cards for metallic background - HIGHEST PRIORITY */
.hero-card, 
.hero-card *,
.hero-card.flex-container,
.hero-card.flex-container *,
.flex-container.hero-card,
.flex-container.hero-card * {
    color: #2c2c2c !important;
}

.hero-card p, 
.hero-card span, 
.hero-card div:not(.trading-card):not(.featured-media-container),
.hero-card.flex-container p, 
.hero_card.flex-container span, 
.hero-card.flex-container div:not(.trading-card):not(.featured-media-container),
.flex-container.hero-card p, 
.flex-container.hero-card span, 
.flex-container.hero-card div:not(.trading-card):not(.featured-media-container) {
    color: #2c2c2c !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Special handling for video/media sections that need different colors */
.hero-card .featured-media-container, 
.hero-card .featured-media-container * {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Premium metallic border for bottom cards */
.hero-bottom-sections .hero-card {
    border-bottom: 2px solid rgba(180, 180, 180, 0.6);
    transition: all 0.3s ease;
}

.hero-bottom-sections .hero-card:hover {
    border-bottom: 2px solid var(--secondary-orange);
    box-shadow: 
        0 12px 40px rgba(255, 107, 53, 0.15), 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 107, 53, 0.1),
        0 -2px 0 var(--secondary-orange) !important;
}

/* Subtle orange accent on card hover - Enhanced Metallic */
.hero-card:hover {
    border: 3px solid #e55a2b !important; /* Thicker, darker orange border on hover */
    box-shadow: 
        0 12px 40px rgba(255, 107, 53, 0.25), 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 0 25px rgba(255, 107, 53, 0.2) !important;
    transform: translateY(-3px);
    background: linear-gradient(145deg, 
        #ffffff 0%, 
        #e0e0e0 25%, 
        #c8c8c8 50%, 
        #f0f0f0 75%, 
        #ffffff 100%) !important;
}

/* Orange accent line for card headers - Hidden by default, shows on hover */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, rgba(255, 107, 53, 0.6), #ff6b35);
    opacity: 0; /* Hidden by default */
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-card:hover::before {
    opacity: 1; /* Shows on hover */
    height: 5px;
    background: linear-gradient(90deg, #ff6b35, #e55a2b, #ff6b35);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.hero-card h2 {
    margin-top: 0;
    margin-bottom: 12px; /* Restore margin for proper spacing */
    color: #2c2c2c !important; /* Dark text for metallic background */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important; /* Light text shadow for depth */
    position: relative;
    font-weight: 700 !important;
}

/* Orange accent for important stats and achievements */
.hero-card h2:has-text("Your Stats"),
.hero-card h2:has-text("🏆"),
.hero-card h2:has-text("⚡") {
    background: linear-gradient(90deg, #2c2c2c, var(--secondary-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
}

/* Fallback for browsers that don't support :has-text */
.hero-card h2[data-highlight="true"] {
    background: linear-gradient(90deg, #2c2c2c, var(--secondary-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
}

.hero-card.compact {
    padding: 15px; /* Less aggressive reduction */
}

.hero-card.bottom {
    margin-top: 12px; /* Restore some margin */
}

/* Stats section styles */
.stats-list {
    list-style-type: none;
    padding: 0;
}

.stats-list li {
    margin: 8px 0 !important; /* Match spacing of profile info */
    padding: 10px !important; /* Match padding of profile info boxes */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Dark border for silver background */
    background-color: rgba(255, 255, 255, 0.3) !important; /* Light transparent background */
    border-radius: 6px !important; /* Match border radius of profile info boxes */
    color: #2c2c2c !important; /* Dark text for silver background */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important; /* Light text shadow for depth */
    font-size: 14px !important; /* Match font size */
    line-height: 1.4 !important; /* Match line height */
    border-left: 3px solid rgba(180, 180, 180, 0.6); /* Subtle silver left border by default */
    transition: border-left-color 0.3s ease;
}

/* Orange accent on stats list items - only on hover */
.hero-card:hover .stats-list li {
    border-left: 3px solid rgba(255, 107, 53, 0.8);
}

.stats-list li:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Keep border on last item to match profile info style */
}

.average-rating {
    margin-top: 10px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--secondary-orange) 0%, #e55a2b 100%);
    border-radius: 15px;
    color: white !important;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.average-rating:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
}

.edit-link-container {
    margin-top: 15px;
}

.edit-link-container a {
    color: var(--secondary-orange) !important; /* Orange link color */
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important; /* Light text shadow for silver background */
    transition: all 0.3s ease;
    font-weight: 600;
}

.edit-link-container a:hover {
    color: #e55a2b !important; /* Darker orange on hover */
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

/* Profile image styles */
.profile-image {
    max-width: 200px;
    border-radius: 8px;
}

/* Center profile image section content */
.homepage_selfie_section {
    text-align: center;
}

.homepage_selfie_section .profile-image {
    display: block;
    margin: 0 auto;
}

/* Ensure equal height for top row sections */
.top-row > .flex-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Adjust minimum height as needed */
    min-height: 300px; /* Current height */
    /* min-height: 400px; */ /* Taller sections */
    /* min-height: 250px; */ /* Shorter sections */
}

.bottom-row > .flex-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Adjust minimum height as needed */
    min-height: 200px; /* Current height */
    /* min-height: 300px; */ /* Taller sections */
    /* min-height: 150px; */ /* Shorter sections */
}

/* General link styles */
.link {
    color: #0052a3;
    text-decoration: none;
}

/* Layout styles for homepage sections */
.top-row {
    display: grid;
    /* Examples of different sizing options: */
    grid-template-columns: 1fr 1fr 1fr; /* Equal columns (current) */
    /* grid-template-columns: 2fr 1fr 1fr; */ /* First column twice as wide */
    /* grid-template-columns: 300px 1fr 200px; */ /* Fixed and flexible widths */
    /* grid-template-columns: 30% 40% 30%; */ /* Percentage-based */
    gap: 20px;
    margin-bottom: 60px;
}

.bottom-row {
    display: grid;
    /* Examples of different sizing options: */
    grid-template-columns: 1fr 1fr; /* Equal columns (current) */
    /* grid-template-columns: 2fr 1fr; */ /* First column twice as wide */
    /* grid-template-columns: 60% 40%; */ /* Percentage-based */
    /* grid-template-columns: 400px 1fr; */ /* Fixed and flexible widths */
    gap: 20px;
    margin-top: 80px;
}

/* Welcome section specific styles */
.welcome.flex-container h1 {
    color: #333;
    text-align: center;
}

/* Specific section sizing examples */
/* Uncomment and modify as needed */

/* Make stats section wider in top row */
/* .homepage_stats_section {
    grid-column: span 2;
} */

/* Make profile image section take full width */
/* .homepage_selfie_section {
    grid-column: 1 / -1;
} */

/* Set specific width for a section */
/* .homepage_team_education_section {
    min-width: 350px;
    max-width: 500px;
} */

/* Make a section taller */
/* .homepage_stats_section .flex-container {
    min-height: 450px;
} */

/* Make a section shorter */
/* .homepage_selfie_section .flex-container {
    min-height: 200px;
} */

/* Profile information styles for different user types - Updated for hero-card compatibility */
.hero-card .athlete-info, 
.hero-card .scout-info, 
.hero-card .coach-info, 
.hero-card .admin-info, 
.hero-card .officials-info {
    margin-top: 10px;
}

.hero-card .athlete-info p, 
.hero-card .scout-info p, 
.hero-card .coach-info p, 
.hero-card .admin-info p, 
.hero-card .officials-info p {
    margin: 8px 0 !important;
    padding: 10px !important; /* Restore padding for readability */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Dark border for silver background */
    background-color: rgba(255, 255, 255, 0.3) !important; /* Light transparent background */
    border-radius: 6px !important;
    color: #2c2c2c !important; /* Dark text for silver background */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important; /* Light text shadow for depth */
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-left: 3px solid rgba(180, 180, 180, 0.6); /* Subtle silver left border by default */
    transition: border-left-color 0.3s ease;
}

/* Orange accent on profile info - only on hover */
.hero-card:hover .athlete-info p, 
.hero-card:hover .scout-info p, 
.hero-card:hover .coach-info p, 
.hero-card:hover .admin-info p, 
.hero-card:hover .officials-info p {
    border-left: 3px solid rgba(255, 107, 53, 0.8);
}

.hero-card .athlete-info p:last-child, 
.hero-card .scout-info p:last-child, 
.hero-card .coach-info p:last-child, 
.hero-card .admin-info p:last-child, 
.hero-card .officials-info p:last-child {
    border-bottom: none !important;
}

.hero-card .athlete-info p strong, 
.hero-card .scout-info p strong, 
.hero-card .coach-info p strong, 
.hero-card .admin-info p strong, 
.hero-card .officials-info p strong {
    color: var(--secondary-orange) !important; /* Orange labels for contrast */
    display: inline-block !important;
    min-width: 100px !important;
    font-weight: bold !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important; /* Light text shadow */
}

/* Profile text visibility ensured by main hero-card styling above */

/* Homepage team/education section specific styling */
.homepage_team_education_section .link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #0052a3;
    border-radius: 5px;
    color: #0052a3;
    text-decoration: none;
    transition: background-color 0.3s;
}

.homepage_team_education_section .link:hover {
    background-color: #0052a3;
    color: white;
}

/* Most Liked Video Section Styles */
.most-liked-video-section {
    background: rgba(255, 255, 255, 0.25); /* Very transparent to show background image */
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); /* Strong shadow for definition */
    backdrop-filter: blur(20px); /* Strong blur for text readability */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Visible border for container edges */
    align-self: start;
}

.most-liked-video-section h3 {
    color: #333;
}

.most-liked-video-section video {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.video-like-info {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

.no-video-message {
    color: #888;
    font-style: italic;
}

.no-video-message a {
    color: #007bff;
    text-decoration: none;
}

.no-video-message a:hover {
    text-decoration: underline;
}

/* Responsive styles for video section */
@media (max-width: 768px) {
    .most-liked-video-section {
        margin: 10px;
        padding: 12px;
        max-width: 280px;
    }
    
    .most-liked-video-section video {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 20px;
        padding: 20px 10px;
    }
    
    .hero-name-section {
        grid-column: 1;
        grid-row: 1;
    }
    
    .hero-stats-left {
        grid-column: 1;
        grid-row: 2;
    }
    
    .hero-info-right {
        grid-column: 1;
        grid-row: 3;
    }
    
    .hero-bottom-sections {
        grid-column: 1;
        grid-row: 4;
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 20px;
    }
    
    .hero-card.bottom {
        flex: none;
        margin: 0;
    }
    
    .hero-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Original responsive styles for fallback */
    .top-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .bottom-row {
        grid-template-columns: 1fr;
    }
    
    .athlete-info strong, .scout-info strong, .coach-info strong, 
    .admin-info strong, .officials-info strong {
        min-width: auto;
        display: block;
        margin-bottom: 2px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 250px 280px 250px;
        gap: 25px;
    }
    
    .hero-profile-image {
        width: 240px;
        height: 300px;
    }
    
    .hero-card {
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Original responsive styles for fallback */
    .top-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    /* On medium screens, make the profile image section span 2 columns when in 2-column layout */
    .top-row .homepage_selfie_section {
        grid-column: 1 / -1;
        order: 3;
    }
    
    .top-row .homepage_stats_section {
        order: 1;
    }
    
    .top-row .homepage_team_education_section {
        order: 2;
    }
}

/* Hero rating display styles */
.hero-rating-display {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-badge {
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.hero-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8691e 100%);
    color: white;
}

.hero-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #333;
}

.hero-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
}

.hero-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.hero-star {
    font-size: 22px;
    display: inline-block;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-star.filled {
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-star.empty {
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;
}

.hero-rating-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 8px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Athlete showcase section - vertical layout for name, rating, and video */
.athlete-showcase-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 15px 0 15px 0; /* Reduced top margin from 25px to 15px to move trading card up */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Athlete name and rating section positioned above most liked video */
.athlete-name-rating-section {
    text-align: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
}

.athlete-name {
    color: white !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(135deg, white 70%, var(--secondary-orange) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .athlete-name {
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
}

.athlete-rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.athlete-badge {
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.athlete-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8691e 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(205, 127, 50, 0.4);
}

.athlete-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #333;
    box-shadow: 0 3px 12px rgba(192, 192, 192, 0.4);
}

.athlete-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.4);
}

.athlete-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.athlete-star {
    font-size: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.athlete-star.filled {
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.6);
    transform: scale(1.05);
}

.athlete-star.empty {
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}

.athlete-rating-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin-left: 8px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 7px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Most liked video section styling - much smaller */
.most-liked-video-section {
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 300px;
}

.most-liked-video-section h3 {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.most-liked-video-section video {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-like-info {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.no-video-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
    padding: 10px;
}

/* Top Videos Thumbnails Styling */
.top-videos-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
    padding: 10px;
}

.video-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
}

.video-thumbnail a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-thumbnail video {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.video-thumbnail:hover video {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-info {
    margin-top: 8px;
    max-width: 120px;
}

.video-owner {
    font-size: 12px;
    font-weight: 600;
    margin: 4px 0 2px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-likes {
    font-size: 11px;
    margin: 0;
    color: #666;
}

/* Mobile responsiveness for video thumbnails */
@media (max-width: 768px) {
    .top-videos-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .video-thumbnail video {
        width: 100px;
        height: 67px;
    }
    
    .video-info {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .top-videos-thumbnails {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .athlete-star {
        font-size: 18px;
    }
    
    .athlete-badge {
        font-size: 16px;
        padding: 5px 10px;
    }
    
    .athlete-rating-count {
        font-size: 11px;
    }
    
    .most-liked-video-section video {
        max-width: 200px;
    }
    
    .athlete-showcase-section {
        margin: 10px 0;
        gap: 10px;
    }
}

/* Smooth Scrolling Performance Optimizations for Homepage */
.homepage-container, .profile-flex-container {
    /* Enable smooth scrolling */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Optimize rendering */
    contain: layout style paint;
}

/* Smooth animations for cards and sections */
.hero-card, .card, .section {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-card:hover, .card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Optimize images for smooth scrolling */
img {
    /* Prevent layout shifts */
    will-change: auto;
    /* Enable GPU acceleration for images */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Optimize image rendering */
    image-rendering: optimizeQuality;
    -webkit-image-rendering: optimizeQuality;
}

/* Smooth loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .section, .hero-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Stagger animations for multiple cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .hero-card, .card {
        /* Reduce animations on mobile */
        transition-duration: 0.2s;
        will-change: auto;
    }
    
    .hero-card:hover, .card:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* Final override to ensure header consistency - highest priority */
h1.athlete-name,
.athlete-name-rating-section h1,
.athlete-name-rating-section .athlete-name,
.hero-background h1.athlete-name {
    font-size: 32px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin: 20px 0 16px 0 !important;
}

/* Modern Dark Container Styles */
.flex-container {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker)) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 82, 163, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border-left: 4px solid var(--primary-blue) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
}

.flex-container:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(0, 82, 163, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.flex-container h1,
.flex-container h2,
.flex-container h3,
.flex-container h4,
.flex-container h5,
.flex-container h6 {
    color: var(--text-primary) !important;
}

.flex-container a {
    color: var(--primary-blue) !important;
    transition: color 0.3s ease !important;
}

.flex-container a:hover {
    color: #4da6ff !important;
    text-decoration: none !important;
}

/* Trading Card Design - New Homepage Layout */
.hero-background {
    position: relative;
    min-height: calc(100vh - 141px);
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.hero-overlay {
    /* Remove overlay since we have solid black background */
    display: none;
}

.hero-center-card {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.trading-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.trading-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2), 0 0 20px rgba(255, 107, 53, 0.1);
}

.trading-card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Enhanced Button Styles with Orange Accents */
.message-button, .connection-button, .team-invite-button {
    position: relative;
    overflow: hidden;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.message-button::before, .connection-button::before, .team-invite-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.message-button:hover::before, .connection-button:hover::before, .team-invite-button:hover::before {
    left: 100%;
}

.message-button span, .connection-button span, .team-invite-button span {
    position: relative;
    z-index: 1;
}

/* Orange Accent for Network Stats */
.network-thumbnails img, .network-thumbnails video, .network-thumbnails div {
    border: 2px solid var(--primary-blue) !important;
    transition: all 0.3s ease;
}

.network-thumbnails a:hover img, 
.network-thumbnails a:hover video, 
.network-thumbnails a:hover div {
    border: 2px solid var(--secondary-orange) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Enhanced Team Section with Orange Accents */
.team-thumbnails img, .team-thumbnails video, .team-thumbnails div {
    transition: all 0.3s ease;
}

.team-thumbnails a:hover img, 
.team-thumbnails a:hover video, 
.team-thumbnails a:hover div {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

/* Orange Progress Indicators */
.athlete-stars .athlete-star.filled {
    color: var(--secondary-orange);
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.athlete-stars:hover .athlete-star.filled {
    transform: scale(1.1);
}

/* Subtle Orange Glow for Important Elements */
.next-event-showcase {
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
}

/* Enhanced Link Styles */
.hero-card a:not(.message-button):not(.connection-button):not(.team-invite-button) {
    color: var(--secondary-orange) !important;
    transition: all 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.hero-card a:not(.message-button):not(.connection-button):not(.team-invite-button):hover {
    color: #e55a2b !important;
    text-shadow: 0 0 6px rgba(255, 107, 53, 0.5);
}

/* Subtle Orange Accent for Card Dividers */
.hero-bottom-sections .hero-card {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.hero-bottom-sections .hero-card:hover {
    border-bottom: 2px solid var(--secondary-orange);
}