/* ===== Competitions页面专用样式 ===== */

/* 赛事容器 */
.competitions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1a1a;
    min-height: 100vh;
}

/* 赛事头部 */
.competitions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #2c1810, #1a1a1a);
    border-radius: 15px;
    border: 1px solid #333;
}

.header-content h1 {
    color: #ffb400;
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-content p {
    color: #ccc;
    font-size: 1.2em;
    line-height: 1.6;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.header-stats .stat-item {
    text-align: center;
}

.header-stats .stat-number {
    color: #ffb400;
    font-size: 2.5em;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.header-stats .stat-label {
    color: #ccc;
    font-size: 1.1em;
}

/* 快速导航 */
.quick-nav {
    margin-bottom: 40px;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #333, #2a2a2a);
    color: #ccc;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.nav-tab:hover,
.nav-tab.active {
    background: linear-gradient(135deg, #ffb400, #ff8c00);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,180,0,0.3);
}

/* 分类筛选 */
.category-filter {
    margin-bottom: 40px;
    text-align: center;
}

.filter-title {
    color: #ffb400;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    background: linear-gradient(135deg, #333, #2a2a2a);
    color: #ccc;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    border: 1px solid #444;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #ffb400, #ff8c00);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,180,0,0.3);
}

/* 赛事区域 */
.competitions-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .section-title {
    color: #ffb400;
    font-size: 2.2em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all-btn {
    color: #ffb400;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.view-all-btn:hover {
    color: #ff8c00;
}

/* 赛事网格 */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.competition-card {
    background: linear-gradient(135deg, #2c2c2c, #1f1f1f);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #333;
    position: relative;
}

.competition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* 卡片图片 */
.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

/* 状态标签 */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
}

.status-registration_open {
    background: #4CAF50;
}

.status-upcoming {
    background: #2196F3;
}

.status-registration_closed {
    background: #FF9800;
}

.status-ongoing {
    background: #FF5722;
}

.status-completed {
    background: #9E9E9E;
}

/* 卡片覆盖层 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.competition-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    background: linear-gradient(135deg, #ffb400, #ff8c00);
    color: #000;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.overlay-btn:hover {
    transform: scale(1.05);
}

/* 卡片内容 */
.card-content {
    padding: 25px;
}

.card-title {
    color: #ffb400;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.card-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.95em;
}

.info-item i {
    color: #ffb400;
    margin-right: 10px;
    width: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.entry-fee {
    color: #ffb400;
    font-size: 1.2em;
    font-weight: bold;
}

.deadline {
    color: #ccc;
    font-size: 0.9em;
}

/* 操作区域 */
.action-section {
    margin-top: 60px;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #333, #2a2a2a);
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.action-card:hover {
    background: linear-gradient(135deg, #ffb400, #ff8c00);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,180,0,0.3);
}

.action-icon {
    font-size: 2em;
}

.action-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.action-content p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* 错误消息 */
.error-message {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.error-icon {
    font-size: 2em;
}

.error-content h3 {
    margin: 0 0 10px 0;
    color: #c62828;
}

.error-content p {
    margin: 0;
}

.error-content small {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
    display: block;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #999;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .competitions-header {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .nav-tabs {
        gap: 10px;
    }
    
    .nav-tab {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .category-buttons {
        gap: 10px;
    }
    
    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .competitions-container {
        padding: 10px;
    }
    
    .competitions-header {
        padding: 20px;
    }
    
    .header-content h1 {
        font-size: 2em;
    }
    
    .header-stats .stat-number {
        font-size: 2em;
    }
    
    .section-header .section-title {
        font-size: 1.8em;
    }
    
    .card-content {
        padding: 20px;
    }
}