/* Speaking Section Styles */

.stats-bar {
    display: flex;
    gap: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
}

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

.stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.search-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
}

.search-box:focus {
    outline: none;
    border-color: #4285f4;
}

.view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    padding: 8px 16px;
    border: 2px solid #4285f4;
    background: white;
    color: #4285f4;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #4285f4;
    color: white;
}

.view-btn:hover {
    background: #4285f4;
    color: white;
}

.filter-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-block;
    padding: 6px 14px;
    background-color: #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chip:hover {
    background-color: #dee2e6;
}

.chip.active {
    background-color: #4285f4;
    color: white;
}

.talks-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.talk-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.talk-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.talk-card.upcoming {
    border-color: #4caf50;
    border-width: 2px;
}

.upcoming-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.talk-card-content {
    flex: 1;
    padding-right: 60px;
    display: flex;
    flex-direction: column;
}

.talk-logo {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 45px;
    height: 45px;
    object-fit: contain;
    opacity: 0.9;
}

.talk-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.talk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.talk-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.talk-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}

.topic-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.recording-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
}

.recording-link:hover {
    text-decoration: underline;
}

.group-header {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4285f4;
    grid-column: 1 / -1;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .stats-bar {
        flex-wrap: wrap;
        gap: 15px;
    }
    .stat-item {
        flex: 1 1 45%;
    }
    .talk-meta {
        flex-direction: column;
        gap: 5px;
    }
    .view-toggle {
        flex-wrap: wrap;
    }
    .view-btn {
        flex: 1 1 45%;
        text-align: center;
    }
}
