/* MAIN CONTENT */
.competitions-main {
    position: relative;
    min-height: 100vh;
    z-index: var(--z-content);
    padding-top: 72px;
}

/* PAGE HERO */
.page-hero {
    padding: 80px 24px 60px;
    text-align: center;
}

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

.page-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-accent);
    margin-bottom: 16px;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
}

/* FILTER SECTION */
.filter-section {
    padding: 0 24px 40px;
    display: flex;
    justify-content: center;
}

.filter-container {
    display: flex;
    gap: 24px;
    padding: 20px 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 40px 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 140px;
}

.filter-select:hover {
    background-color: var(--glass-bg-hover);
    border-color: var(--glass-border-light);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-shadow);
}

.filter-select option {
    background: #0C4A6E;
    color: white;
}

/* COMPETITIONS SECTION */
.competitions-section {
    padding: 0 24px 80px;
}

.competitions-container {
    max-width: 900px;
    margin: 0 auto;
}

.month-group {
    margin-bottom: 48px;
}

.month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.month-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.month-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    background: var(--glass-bg);
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
}

.competitions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Competition Card */
.competition-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    transition: all var(--transition-normal);
}

.competition-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 16px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.date-day {
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.date-month {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}

.competition-info {
    flex: 1;
    min-width: 0;
}

.competition-badge {
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-full);
}

.badge-masters {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: white;
}

.badge-official {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: #78350F;
}

.badge-regional {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}

.competition-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: 1.4;
}

.competition-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.detail-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--icon-color);
    flex-shrink: 0;
}

.competition-action {
    display: flex;
    align-items: flex-start;
}

.status-badge {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    white-space: nowrap;
}

.status-upcoming {
    background: var(--glass-bg);
    color: var(--text-accent);
    border: 1px solid var(--glass-border);
}

.status-ongoing {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}

.status-ended {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.status-completed {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* INFO SECTION */
.info-section {
    padding: 0 24px 80px;
    display: flex;
    justify-content: center;
}

.info-container {
    max-width: 800px;
    display: flex;
    gap: 24px;
    padding: 32px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--border-radius-lg);
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--icon-color);
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.info-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.info-desc a {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 500;
}

.info-desc a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px 40px;
    }
    
    .filter-container {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .filter-group {
        flex: 1;
        min-width: 100px;
    }
    
    .filter-select {
        width: 100%;
        min-width: unset;
    }
    
    .competition-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .competition-date {
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
        min-width: unset;
    }
    
    .date-day {
        font-size: 22px;
    }
    
    .date-month {
        margin-top: 0;
    }
    
    .competition-action {
        align-self: flex-start;
    }
    
    .info-container {
        flex-direction: column;
        padding: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .filter-container {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .month-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .competition-details {
        flex-direction: column;
        gap: 8px;
    }
}

/* ANIMATIONS */
.month-group {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.month-group:nth-child(1) { animation-delay: 0.1s; }
.month-group:nth-child(2) { animation-delay: 0.2s; }
.month-group:nth-child(3) { animation-delay: 0.3s; }
.month-group:nth-child(4) { animation-delay: 0.4s; }
.month-group:nth-child(5) { animation-delay: 0.5s; }
.month-group:nth-child(6) { animation-delay: 0.6s; }
.month-group:nth-child(7) { animation-delay: 0.7s; }

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