/* ============================================================
   awards.css — 本會獎項頁面專屬樣式
   依賴：main.css
   ============================================================ */

/* ============================================================
   Stats Counter（金色漸變背景）
   ============================================================ */
.stats-section {
    padding: 80px 20px;
    background: var(--gradient-gold);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255,255,255,0.95);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}

.stat-card .number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .label {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.counter { display: inline-block; }

/* ============================================================
   Trophy Showcase
   ============================================================ */
.trophy-showcase {
    padding: 100px 20px;
    background: #fff;
}

.showcase-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.trophy-card {
    background: var(--light-color);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.trophy-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.trophy-card.gold .trophy-header   { background: var(--gradient-gold); }
.trophy-card.silver .trophy-header { background: linear-gradient(135deg, #e8e8e8, #c0c0c0, #a8a8a8); }
.trophy-card.bronze .trophy-header { background: linear-gradient(135deg, #d4a574, #cd7f32, #a0522d); }

.trophy-header {
    padding: 40px;
    text-align: center;
    position: relative;
}

.trophy-header i {
    font-size: 5rem;
    color: #fff;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.trophy-header .rank {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.trophy-content { padding: 35px; }

.trophy-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.trophy-content .competition {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.trophy-content p { color: #666; margin-bottom: 20px; line-height: 1.7; }
.trophy-content .date { color: #999; font-size: 0.9rem; }
.trophy-content .date i { margin-right: 8px; color: var(--primary-color); }

/* ============================================================
   Awards Timeline
   ============================================================ */
.timeline-section {
    padding: 100px 20px;
    background: var(--light-color);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 25px; height: 25px;
    background: var(--gradient-2);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    margin-right: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 30px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.timeline-content .year {
    display: inline-block;
    background: var(--gradient-1);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.timeline-content p { color: #666; line-height: 1.7; }

.timeline-content .medal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.timeline-content .medal.gold   { background: rgba(255,215,0,0.2);   color: #b8860b; }
.timeline-content .medal.silver { background: rgba(192,192,192,0.3); color: #666;    }
.timeline-content .medal.bronze { background: rgba(205,127,50,0.2);  color: #8b4513; }

/* ============================================================
   Awards Table
   ============================================================ */
.awards-table-section {
    padding: 100px 20px;
    background: #fff;
}

.table-container {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
}

.awards-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.awards-table thead { background: var(--gradient-1); color: #fff; }

.awards-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.awards-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.awards-table tbody tr:hover { background: rgba(26, 95, 122, 0.05); }

.awards-table td {
    padding: 20px 15px;
    color: #555;
}

.awards-table .medal-icon {
    width: 35px; height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.awards-table .medal-icon.gold   { background: var(--gradient-gold); color: #fff; }
.awards-table .medal-icon.silver { background: linear-gradient(135deg, #e8e8e8, #c0c0c0); color: #666; }
.awards-table .medal-icon.bronze { background: linear-gradient(135deg, #d4a574, #cd7f32); color: #fff; }
.awards-table .student-name { font-weight: 600; color: var(--dark-color); }

/* ============================================================
   Achievement Gallery
   ============================================================ */
.gallery-section {
    padding: 100px 20px;
    background: var(--light-color);
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay h4 { font-size: 1rem; margin-bottom: 5px; }
.gallery-item .overlay span { font-size: 0.85rem; opacity: 0.9; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }

/* ============================================================
   Award Cards（藍/橙/金/綠標籤分類）
   ============================================================ */
.awards-gallery { padding: 60px 5%; }
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.award-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.award-image { position: relative; height: 250px; overflow: hidden; }

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

.award-card:hover .award-image img { transform: scale(1.05); }

.award-badge {
    position: absolute;
    top: 10px; right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.award-badge.coach   { background: #e74c3c; }
.award-badge.student { background: #3498db; }
.award-badge.cert    { background: #f39c12; }
.award-badge.team    { background: #27ae60; }

.award-info { padding: 15px 20px; }
.award-info p { font-size: 0.95rem; color: #333; line-height: 1.6; margin: 0; }

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active { background: var(--primary-color); color: #fff; }

/* ============================================================
   Why Section（獎項頁版）
   ============================================================ */
.why-section {
    padding: 100px 20px;
    background: var(--gradient-1);
    color: #fff;
}

.why-section .section-title h2 { color: #fff; }
.why-section .section-title h2::after { background: var(--accent-color); }
.why-section .section-title p { color: rgba(255,255,255,0.9); }

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.why-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-10px);
}

.why-card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }
.why-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.why-card p { opacity: 0.9; line-height: 1.7; }

/* ============================================================
   CTA Section（獎項頁版）
   ============================================================ */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(26,95,122,0.95), rgba(13,61,77,0.95)),
                url('/photo/a01.jpg') center/cover fixed;
    text-align: center;
    color: #fff;
}

.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-section p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.95; }

.cta-section .cta-btn.secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #fff;
    box-shadow: none;
}

.cta-section .cta-btn.secondary:hover {
    background: #fff;
    color: var(--primary-color);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-card { padding: 25px 15px; }
    .stat-card .number { font-size: 2.5rem; }
    .showcase-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 2; grid-row: span 1; }
    .awards-table th,
    .awards-table td { padding: 12px 10px; font-size: 0.9rem; }

    /* Timeline mobile */
    .timeline::before { left: 20px; }
    .timeline-item { padding-right: 0; padding-left: 50px; justify-content: flex-start; }
    .timeline-item:nth-child(even) { padding-left: 50px; }
    .timeline-item::before { left: 20px; }
    .timeline-content { margin-right: 0; margin-left: 0; width: 100%; }
    .timeline-item:nth-child(even) .timeline-content { margin-left: 0; }
}
