/**
 * EDIFYSPORTS Frontend Styles
 * 
 * @package EDIFYSPORTS
 * @since 1.1.0
 */

/* Hero Section */
.edifysports-hero {
    background: linear-gradient(135deg, #0047ab 0%, #074eb1 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.edifysports-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 800;
}

.edifysports-hero h1 span {
    color: #FFC72C;
}

.edifysports-hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #FFC72C;
    color: #0f0f0f;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,199,44,0.4);
}

/* Athletes Section */
.edifysports-athletes-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 60px 20px;
    min-height: 100vh;
}

/* Filters */
.edifysports-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-select {
    padding: 10px 20px;
    margin: 0 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    background: rgba(255,255,255,0.1);
}

/* Athletes Grid */
.edifysports-athletes-grid,
.edifysports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.edifysports-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.edifysports-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.edifysports-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Athlete Card */
.athlete-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.athlete-card a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.athlete-card-content {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.athlete-card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.08);
}

.athlete-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFC72C 0%, transparent 100%);
}

/* Tier Badges */
.tier-badge,
.elite-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gold-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0f0f0f;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.silver-badge {
    background: linear-gradient(135deg, #C0C0C0 0%, #B8B8B8 100%);
    color: #0f0f0f;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.bronze-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.elite-badge {
    background: #FFC72C;
    color: #0f0f0f;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: 700;
}

/* Card Content */
.card-top {
    flex-shrink: 0;
}

.athlete-name {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 800;
    color: #FFC72C;
    line-height: 1.2;
}

.card-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.athlete-sport {
    color: rgba(255,255,255,0.8);
    margin: 0 0 10px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.athlete-university {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.85em;
}

.card-bottom {
    flex-shrink: 0;
}

.view-profile-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1.5px solid #FFC72C;
    border-radius: 25px;
    color: #FFC72C;
    font-weight: 700;
    font-size: 0.85em;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.athlete-card-content:hover .view-profile-btn {
    background: #FFC72C;
    color: #0f0f0f;
}

/* Loading Indicator */
.edifysports-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,199,44,0.3);
    border-radius: 50%;
    border-top-color: #FFC72C;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.edifysports-loading p {
    margin-top: 15px;
    color: rgba(255,255,255,0.7);
}

/* End Message */
.edifysports-end {
    text-align: center;
    padding: 40px;
}

.edifysports-end p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.back-to-top {
    display: inline-block;
    padding: 12px 30px;
    background: #FFC72C;
    color: #0f0f0f;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,199,44,0.4);
}

/* No Athletes Message */
.no-athletes {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.1em;
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .edifysports-athletes-grid {
        grid-template-columns: 1fr;
    }
    
    .edifysports-grid.columns-2,
    .edifysports-grid.columns-3,
    .edifysports-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .edifysports-hero h1 {
        font-size: 2.2em;
    }
    
    .filter-select {
        display: block;
        width: 90%;
        margin: 10px auto;
    }
}