/* Competitions Page Styles */

.competitions-page {
    background: #f9f9f9;
}

/* Hero Section */
.competitions-hero {
    background: linear-gradient(135deg, #d70f20 0%, #005b85 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.competitions-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.competitions-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.competitions-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.competitions-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Main Content */
.competitions-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Season Selector */
.season-selector-wrapper {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.season-selector-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.season-selector-label i {
    font-size: 1.4rem;
    color: #d70f20;
}

.season-select {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.season-select:hover {
    border-color: #d70f20;
}

.season-select:focus {
    outline: none;
    border-color: #d70f20;
    box-shadow: 0 0 0 3px rgba(215, 15, 32, 0.1);
}

/* Competitions Container */
.competitions-container {
    display: grid;
    gap: 40px;
}

/* Competition Card */
.competition-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 400px 1fr;
    height: 400px;
    width: 100%;
}

.competition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.competition-image {
    position: relative;
    overflow: hidden;
    width: 400px;
    height: 400px;
}

.competition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.competition-card:hover .competition-image img {
    transform: scale(1.1);
}

.competition-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, rgba(215, 15, 32, 0.1) 100%);
}

.competition-content {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.competition-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #d70f20, #005b85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.competition-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.meta-item i {
    color: #d70f20;
    font-size: 1.1rem;
}

.competition-description {
    flex: 1;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
}

.palmares-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.palmares-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #d70f20, #005b85);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(215, 15, 32, 0.3);
}

.palmares-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 15, 32, 0.4);
    color: white;
}

.palmares-btn i {
    font-size: 1.1rem;
}

/* No Competitions State */
.no-competitions {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-competitions i {
    font-size: 4rem;
    color: #f9c23c;
    margin-bottom: 20px;
    display: block;
}

.no-competitions p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .competition-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .competition-image {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .competitions-hero h1 {
        font-size: 2rem;
    }
    
    .competitions-subtitle {
        font-size: 1.1rem;
    }
    
    .season-selector-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
    }
    
    .season-selector-label {
        justify-content: center;
    }
    
    .season-select {
        min-width: 100%;
    }
    
    .competition-content {
        padding: 25px;
    }
    
    .competition-title {
        font-size: 1.5rem;
    }
    
    .competition-meta {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .competitions-main {
        padding: 40px 15px;
    }
    
    .competition-image {
        height: 300px;
    }
    
    .competition-content {
        padding: 20px;
        gap: 15px;
    }
    
    .competition-title {
        font-size: 1.3rem;
    }
    
    .palmares-btn {
        width: 100%;
        justify-content: center;
    }
}
