/* ==========================================================================
   DUYURULAR PUBLIC SAYFASI - MODERN LIGHT THEME
   ========================================================================== */

/* Hero Section */
.duyuru-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: 10%;
}

.hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.duyuru-hero .container {
    position: relative;
    z-index: 2;
}

.duyuru-hero .hero-content {
    text-align: center;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.duyuru-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.duyuru-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 0 25px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav i.fa-chevron-right {
    font-size: 0.7rem;
    opacity: 0.6;
}

.breadcrumb-nav span {
    color: #fff;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    padding: 30px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.filter-search {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    max-width: 100%;
}

.search-input-wrapper i.fa-search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-input-wrapper input::placeholder {
    color: #94a3b8;
}

.btn-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #e2e8f0;
    color: #334155;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.filter-group label i {
    color: #667eea;
}

.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") no-repeat right 12px center;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-group select:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.btn-reset {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-reset:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-tag button {
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s;
}

.filter-tag button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Result Bar */
.result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-count {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.95rem;
}

.result-count i {
    color: #667eea;
}

.result-count strong {
    color: #1e293b;
    font-weight: 700;
}

.view-options {
    display: flex;
    gap: 6px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-btn:hover {
    border-color: #cbd5e1;
    color: #64748b;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

/* Duyurular Section */
.duyurular-section {
    padding: 40px 0 80px;
    background: #f8fafc;
    min-height: 50vh;
}

/* Loading Box */
.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #64748b;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty Box */
.empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-illustration {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-illustration i {
    font-size: 3rem;
    color: #fff;
}

.empty-box h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 10px;
}

.empty-box p {
    color: #64748b;
    margin: 0 0 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Error Box */
.error-box {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.error-box i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 16px;
}

.error-box p {
    color: #64748b;
    margin-bottom: 20px;
}

.btn-retry {
    background: #667eea;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* Duyurular Grid */
.duyurular-grid {
    display: grid;
    gap: 24px;
    transition: opacity 0.3s;
}

.duyurular-grid.view-grid {
    grid-template-columns: repeat(3, 1fr);
}

.duyurular-grid.view-list {
    grid-template-columns: 1fr;
}

/* Duyuru Card */
.duyuru-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}

.duyuru-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.view-list .duyuru-card {
    display: flex;
}

.view-list .card-image {
    width: 280px;
    min-width: 280px;
    height: auto;
}

.view-list .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image.no-image i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.badge-pinned {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.badge-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

.meta-author img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.meta-author i {
    color: #667eea;
}

.meta-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.8rem;
}

.meta-location i {
    color: #667eea;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-list .card-excerpt {
    -webkit-line-clamp: 3;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.card-stats {
    display: flex;
    gap: 16px;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.card-stats i {
    color: #cbd5e1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.2s;
}

.duyuru-card:hover .btn-read-more {
    gap: 10px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 6px;
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-btn,
.page-num {
    min-width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover,
.page-num:hover {
    background: #f1f5f9;
    color: #334155;
}

.page-num.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #94a3b8;
}

.page-info {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .duyurular-grid.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-group {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .duyuru-hero {
        padding: 80px 0 60px;
    }
    
    .duyuru-hero h1 {
        font-size: 2.2rem;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
    
    .result-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .duyurular-grid.view-grid,
    .duyurular-grid.view-list {
        grid-template-columns: 1fr;
    }
    
    .view-list .duyuru-card {
        flex-direction: column;
    }
    
    .view-list .card-image {
        width: 100%;
        height: 200px;
    }
    
    .view-options {
        display: none;
    }
}

@media (max-width: 480px) {
    .duyuru-hero h1 {
        font-size: 1.8rem;
    }
    
    .filter-card {
        padding: 16px;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}
