/**
 * Tüm Etkinlikler Sayfası Stilleri
 * BÜYEM - Boğaziçi Üniversitesi Yaşamboyu Eğitim Merkezi
 */

/* Hero Section */
.etkinlikler-hero {
    background: linear-gradient(135deg, #1d458b 0%, #2c5aa0 50%, #3a6cb0 100%);
    padding: 60px 0;
    text-align: center;
    margin-top: 0;
}

.etkinlikler-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: #fff;
}

.etkinlikler-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.etkinlikler-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Section */
.etkinlikler-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.etkinlikler-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.etkinlikler-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.filters-header h3 {
    font-size: 18px;
    color: #1d458b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.clear-filters {
    font-size: 13px;
    color: #dc3545;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff5f5;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #dc3545;
    color: #fff;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Search Form */
.search-input-wrapper {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.search-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-input-wrapper button {
    padding: 12px 8px;
    background: #1d458b;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-input-wrapper button:hover {
    background: #2c5aa0;
}

/* Radio Options */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.radio-option:hover {
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1d458b;
}

.radio-label {
    font-size: 14px;
    color: #444;
}

/* Category Options */
.category-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-option:hover {
    background: #f8f9fa;
    border-color: var(--cat-color, #1d458b);
}

.category-option.active {
    background: #e3f2fd;
    border-color: #1d458b;
}

.category-option input[type="radio"] {
    display: none;
}

.category-option i {
    width: 20px;
    color: var(--cat-color, #1d458b);
}

.category-option span {
    flex: 1;
    font-size: 14px;
    color: #444;
}

.category-option .count {
    flex: none;
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Content Area */
.etkinlikler-content {
    min-height: 500px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    font-size: 14px;
    color: #6c757d;
}

.results-count strong {
    color: #1d458b;
}

/* Etkinlik Grid */
.etkinlikler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Etkinlik Card */
.etkinlik-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.etkinlik-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.etkinlik-card.past {
    opacity: 0.85;
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.etkinlik-card:hover .card-image img {
    transform: scale(1.08);
}

.card-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1d458b;
    line-height: 1;
}

.card-date .month {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 2px;
}

.past-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    align-self: flex-start;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1d458b;
    margin-bottom: 10px!important;
    line-height: 1.4!important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

.meta-item i {
    color: #1d458b;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d458b;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.etkinlik-card:hover .card-link {
    gap: 12px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 16px;
}

.no-results i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 24px;
}

.no-results h3 {
    font-size: 24px;
    color: #1d458b;
    margin-bottom: 12px;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 24px;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1d458b;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #2c5aa0;
}

/* Responsive */
@media (max-width: 1200px) {
    .etkinlikler-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .etkinlikler-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .filters-card {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .filters-header {
        width: 100%;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .filter-group {
        flex: 1 1 200px;
        margin-bottom: 0;
    }
    
    .category-options {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .category-option {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .etkinlikler-hero h1 {
        font-size: 28px;
    }
    
    .etkinlikler-hero p {
        font-size: 16px;
    }
    
    .etkinlikler-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .etkinlikler-hero h1 {
        font-size: 24px;
    }
    
    .radio-options, .category-options {
        gap: 6px;
    }
}

