/**
 * Duyurular Sayfası Stilleri
 * BÜYEM - Boğaziçi Üniversitesi Yaşamboyu Eğitim Merkezi
 */

/* Hero Section */
.duyurular-hero {
    background: linear-gradient(135deg, #1d458b 0%, #2c5aa0 50%, #3a6cb0 100%);
    padding: 60px 0;
    text-align: center;
    margin-top: 0;
    display: none;
}

.duyurular-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.duyurular-hero .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;
}

.duyurular-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.duyurular-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Section */
.duyurular-section {
    padding: 50px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.duyurular-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
}

.filters-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d458b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #1d458b;
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
}

.filter-search {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-search:focus {
    outline: none;
    border-color: #1d458b;
}

.search-btn {
    padding: 10px 14px;
    background: #1d458b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #163a73;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Content Area */
.content-area {
    min-height: 400px;
}

.results-info {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.results-info strong {
    color: #1d458b;
}

/* Duyuru List */
.duyurular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Duyuru Card */
.duyuru-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.2s;
}

.duyuru-thumb {
    width: 160px;
    min-width: 160px;
    background: #eef2f7;
}

.duyuru-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.duyuru-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Date Section */
.duyuru-date {
    width: 100px;
    min-width: 100px;
    background: linear-gradient(135deg, #1d458b 0%, #2c5aa0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    color: #fff;
}

.duyuru-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.duyuru-month {
    font-size: 14px;
    text-transform: lowercase;
    margin-top: 4px;
}

.duyuru-year {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Content Section */
.duyuru-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.duyuru-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d458b;
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.duyuru-card:hover .duyuru-title {
    color: #2c5aa0;
}

.duyuru-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.duyuru-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1d458b;
    transition: gap 0.2s;
}

.duyuru-card:hover .duyuru-link {
    gap: 10px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-results i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 20px;
    color: #495057;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: #1d458b;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #163a73;
}

/* Responsive */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .filters-card {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        align-items: flex-end;
    }
    
    .filters-title {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .filter-group {
        flex: 1;
        min-width: 150px;
        margin-bottom: 0;
    }
    
    .clear-filters-btn {
        margin-top: 0;
        width: auto;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .duyurular-hero {
        padding: 40px 0;
    }
    
    .duyurular-hero h1 {
        font-size: 28px;
    }
    
    .duyurular-hero p {
        font-size: 16px;
    }
    
    .duyuru-card {
        flex-direction: column;
    }

    .duyuru-thumb {
        width: 100%;
        min-width: 0;
        height: 180px;
    }
    
    .duyuru-date {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .duyuru-day {
        font-size: 24px;
    }
    
    .duyuru-month,
    .duyuru-year {
        margin-top: 0;
    }
    
    .duyuru-content {
        padding: 16px;
    }
    
    .duyuru-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .duyurular-section {
        padding: 30px 0;
    }
    
    .filters-card {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .clear-filters-btn {
        width: 100%;
    }
}

