/* static/css/winners.css */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #C62828 0%, #8B1A1A 100%);
    position: relative;
    overflow: hidden;
}

.page-header::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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center / cover no-repeat;
}

/* Year Title */
.year-title {
    font-size: 3rem;
    font-weight: bold;
    color: #C62828;
    position: relative;
    padding-bottom: 15px;
}

.year-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #C62828, #8B1A1A);
    border-radius: 2px;
}

/* Winner Card */
.winner-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.winner-card:hover {
    box-shadow: 0 8px 24px rgba(198, 40, 40, 0.15);
    transform: translateY(-3px);
}

/* Winner Photo */
.winner-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.winner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #C62828;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ddd;
}

.photo-placeholder i {
    font-size: 40px;
    color: #999;
}

/* Winner Info */
.winner-info {
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.winner-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #C62828;
    margin-bottom: 10px;
    line-height: 1.3;
}

.winner-story {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.winner-story p {
    margin-bottom: 0.8rem;
}

.winner-story p:last-child {
    margin-bottom: 0;
}

/* Read More Button */
.btn-read-more {
    background: none;
    border: none;
    color: #C62828;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 10px;
    display: inline-block;
}

.btn-read-more:hover {
    color: #8B1A1A;
    text-decoration: underline;
}

.full-story {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Year Dropdown Section */
.years-dropdown-container {
    max-width: 900px;
    margin: 0 auto;
}

.year-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.year-toggle-btn {
    width: 100%;
    padding: 20px 30px;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.year-toggle-btn:hover {
    background: #f8f8f8;
}

.year-toggle-btn.active {
    background: #C62828;
    color: white;
}

.year-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C62828;
}

.year-toggle-btn.active .year-label {
    color: white;
}

.winner-count {
    color: #666;
    font-size: 0.95rem;
    margin-left: 10px;
}

.year-toggle-btn.active .winner-count {
    color: rgba(255,255,255,0.9);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #C62828;
}

.year-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
    color: white;
}

.year-winners-container {
    padding: 30px;
    background: #fafafa;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 10000px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .winner-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .winner-photo {
        margin-bottom: 15px;
    }
    
    .year-title {
        font-size: 2rem;
    }
    
    .year-toggle-btn {
        padding: 15px 20px;
    }
    
    .year-label {
        font-size: 1.3rem;
    }
    
    .year-winners-container {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .winner-card {
        padding: 20px 15px;
    }
    
    .winner-name {
        font-size: 1.1rem;
    }
    
    .winner-story {
        font-size: 0.9rem;
    }
}
