﻿/**
 * bulten.css - Bulletin Page Styles
 * Version: 3.1
 * Tasarım: Hero + Yan yana liste
 * Not: Yeni Eklenenler için libturk class'ları kullanılıyor
 */

/* =============================================
   CONTAINER
   ============================================= */
.bulten-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* =============================================
   SECTION ORTAK
   ============================================= */
.bulten-section {
    margin-bottom: 60px;
    margin-top: 60px;
}

.bulten-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

    .bulten-section-header h2 {
        font-size: 1.4rem;
        font-weight: 500;
        color: #1a1a2e;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .bulten-section-header h2 i {
            color: #FF6F0F;
        }

.bulten-title-bar {
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #FF6F0F 0%, #764ba2 100%);
    border-radius: 2px;
}

/* =============================================
   FİLTRELER
   ============================================= */
.bulten-filter-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #e1e4eb;
}

.bulten-filter-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .bulten-filter-title i {
        color: #FF6F0F;
    }

.bulten-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.bulten-filter-item {
    display: flex;
    flex-direction: column;
}

    .bulten-filter-item .searchable-dropdown-header {
        min-height: 46px;
        height: 46px;
    }

    .bulten-filter-item .searchable-dropdown.multi-select .searchable-dropdown-header {
        min-height: 46px;
        height: auto;
    }

.bulten-filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

    .bulten-filter-label small {
        color: #94a3b8;
    }

.bulten-filter-actions {
    display: flex;
    gap: 12px;
}

.bulten-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: #FF6F0F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .bulten-filter-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 111, 15, 0.4);
    }

.bulten-filter-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .bulten-filter-clear:hover {
        background: #cbd5e1;
        color: #334155;
    }
/* =============================================
   HERO SECTION (1 Büyük + 3 Küçük)
   ============================================= */
.bulten-hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: 400px;
}

.bulten-hero-main {
    height: 100%;
}

.bulten-hero-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.bulten-hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .bulten-hero-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    }

    .bulten-hero-card img {
        width: 100%;
        height: 100%;
    }

.bulten-hero-card-main {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(to top, #ff8a3c, #ffb380);
}

    .bulten-hero-card-main img {
        width: 180px;
        height: 260px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        flex-shrink: 0;
    }

    .bulten-hero-card-main .bulten-hero-content {
        flex: 1;
        color: #fff;
    }

    .bulten-hero-card-main .bulten-hero-badge {
        display: inline-block;
        background: rgba(255,255,255,0.2);
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .bulten-hero-card-main .bulten-hero-title {
        font-size: 1.6rem;
        font-weight: 500;
        margin-bottom: 10px;
        line-height: 1.3;
        color: #fff;
    }

    .bulten-hero-card-main .bulten-hero-publisher {
        font-size: 1rem;
        opacity: 0.98;
        margin-bottom: 6px;
        color: #fff;
    }

    .bulten-hero-card-main .bulten-hero-meta {
        font-size: 0.9rem;
        opacity: 0.95;
        margin-bottom: 20px;
        color: #fff;
    }

    .bulten-hero-card-main .bulten-hero-features {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .bulten-hero-card-main .bulten-hero-feature {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        opacity: 0.9;
    }

    .bulten-hero-card-main .bulten-hero-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        color: #FF6F0F;
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.2s;
    }

        .bulten-hero-card-main .bulten-hero-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }

.bulten-hero-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.bulten-hero-publisher {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.bulten-hero-meta {
    font-size: 0.85rem;
    opacity: 0.7;
}

.bulten-hero-card-side {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #e1e4eb;
}

    .bulten-hero-card-side img {
        width: 70px;
        height: 100%;
        border-radius: 6px;
    }

.bulten-hero-info {
    flex: 1;
    min-width: 0;
}

.bulten-hero-title-small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bulten-hero-publisher-small {
    font-size: 0.8rem;
    color: #64748b;
}

/* =============================================
   YENİ EKLENENLER - YATAY SCROLL (DİKEY KARTLAR)
   ============================================= */

/* Section Header - Oklar Sağda */
.bulten-section-header-with-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

    .bulten-section-header-with-nav .bulten-section-title {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .bulten-section-header-with-nav h2 {
        font-size: 1.4rem;
        font-weight: 500;
        color: #1a1a2e;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .bulten-section-header-with-nav h2 i {
            color: #FF6F0F;
        }

/* Scroll Buttons - Header'ın Sağında */
.bulten-scroll-nav {
    display: flex;
    gap: 10px;
}

.bulten-scroll-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #FF6F0F;
    border: 1px solid #e1e4eb;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .bulten-scroll-nav-btn:hover {
        background-color: #FF6F0F;
        border-color: #FF6F0F;
        color: #fff;
    }

    .bulten-scroll-nav-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Horizontal scrolling container */
.bulten-book-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px 0;
    gap: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .bulten-book-horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

/* Book Card - DİKEY TASARIM */
.bulten-book-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 220px;
    min-width: 220px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e1e4eb;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease;
    overflow: visible;
    text-decoration: none;
    scroll-snap-align: start;
}

    .bulten-book-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

/* Cover Wrapper - Kapak Alanı */
.bulten-cover-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.bulten-cover-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Book Ribbon - KARTIN SAĞ KENARINDA */
.bulten-ribbon {
    position: absolute;
    top: 12px;
    right: -10px;
    background: linear-gradient(to right, #FF6F0F, #ff5b00, rgba(255, 111, 15, 0.9));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0 12px;
    height: 26px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 10;
    white-space: nowrap;
}

    .bulten-ribbon::after {
        content: '';
        position: absolute;
        top: 26px;
        right: 0;
        width: 0;
        height: 0;
        border-top: 6px solid #993300;
        border-right: 10px solid transparent;
    }

.bulten-book-card:hover .bulten-ribbon {
    background: linear-gradient(135deg, #004080, #0066cc);
}

/* Book Info - Alt Bilgi Alanı */
.bulten-book-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90px;
}

.bulten-book-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
    text-align: center;
}

.bulten-book-publisher {
    font-size: 0.82rem;
    color: #FF6F0F;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: auto;
    text-align: center;
}

/* Responsive - Yeni Eklenenler */
@media (max-width: 991px) {
    .bulten-book-card {
        width: 200px;
        min-width: 200px;
    }

    .bulten-cover-wrapper {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .bulten-book-card {
        width: 180px;
        min-width: 180px;
    }

    .bulten-cover-wrapper {
        height: 220px;
        padding: 12px;
    }

    .bulten-scroll-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .bulten-ribbon {
        font-size: 0.65rem;
        height: 24px;
        padding: 0 10px;
    }

        .bulten-ribbon::after {
            top: 24px;
        }

    .bulten-book-info {
        padding: 12px;
        height: 80px;
    }

    .bulten-book-title {
        font-size: 0.85rem;
        min-height: 2.6em;
    }
}

@media (max-width: 480px) {
    .bulten-book-card {
        width: 160px;
        min-width: 160px;
    }

    .bulten-cover-wrapper {
        height: 200px;
        padding: 10px;
    }

    .bulten-scroll-nav {
        gap: 6px;
    }

    .bulten-scroll-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .bulten-ribbon {
        font-size: 0.6rem;
        height: 22px;
        top: 8px;
        right: -8px;
    }

        .bulten-ribbon::after {
            top: 22px;
            border-top-width: 5px;
            border-right-width: 8px;
        }

    .bulten-book-info {
        padding: 10px;
        height: 75px;
    }

    .bulten-book-title {
        font-size: 0.8rem;
        min-height: 2.4em;
    }

    .bulten-book-publisher {
        font-size: 0.75rem;
    }

    .bulten-section-header-with-nav h2 {
        font-size: 1.2rem;
    }
}

/* =============================================
   YAN YANA LİSTELER (Yeni Çıkanlar & Çok Okunanlar)
   ============================================= */
.bulten-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.bulten-column {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

    .bulten-column .bulten-section-header {
        margin-bottom: 16px;
    }

        .bulten-column .bulten-section-header h2 {
            font-size: 1.1rem;
        }

.bulten-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulten-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

    .bulten-list-item:hover {
        background: #f1f5f9;
        transform: translateX(4px);
    }

.bulten-list-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF6F0F;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 5px;
    flex-shrink: 0;
}

.bulten-list-cover {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.bulten-list-info {
    flex: 1;
    min-width: 0;
}

.bulten-list-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bulten-list-publisher {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2px;
}

.bulten-list-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* =============================================
   LOADING & EMPTY STATES
   ============================================= */
.bulten-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #64748b;
    font-size: 0.95rem;
}

    .bulten-loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bulten-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #94a3b8;
    font-size: 0.95rem;
    background: #f8fafc;
    border-radius: 10px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .bulten-hero-grid {
        grid-template-columns: 1fr 250px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .bulten-filter-grid {
        grid-template-columns: 1fr;
    }

    .bulten-hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .bulten-hero-main {
        height: auto;
        min-height: 280px;
    }

    .bulten-hero-card-main {
        padding: 20px;
        gap: 20px;
    }

        .bulten-hero-card-main img {
            width: 140px;
            height: 200px;
        }

        .bulten-hero-card-main .bulten-hero-title {
            font-size: 1.3rem;
        }

    .bulten-hero-side {
        flex-direction: row;
        height: auto;
    }

    .bulten-hero-card-side {
        flex-direction: column;
        padding: 10px;
    }

        .bulten-hero-card-side img {
            width: 100%;
            height: 100px;
        }

    .bulten-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bulten-container {
        padding: 15px;
    }

    .bulten-hero-card-main {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

        .bulten-hero-card-main img {
            width: 120px;
            height: 170px;
        }

        .bulten-hero-card-main .bulten-hero-features {
            justify-content: center;
        }

        .bulten-hero-card-main .bulten-hero-title {
            font-size: 1.2rem;
        }

    .bulten-hero-side {
        flex-direction: column;
    }

    .bulten-hero-card-side {
        flex-direction: row;
    }

        .bulten-hero-card-side img {
            width: 60px;
            height: 80px;
        }

    .bulten-filter-actions {
        flex-direction: column;
    }

    .bulten-filter-btn,
    .bulten-filter-clear {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   ÖZEL KARTLAR - Türk Bilim ve Kültür Mirası
   ============================================= */

.bulten-ozel-kart {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    gap: 24px;
}

    .bulten-ozel-kart::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,111,15,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

/* Görsel */
.bulten-ozel-kart-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

    .bulten-ozel-kart-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* İçerik */
.bulten-ozel-kart-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Badge */
.bulten-ozel-kart-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,111,15,0.2);
    color: #FF6F0F;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

    .bulten-ozel-kart-badge i {
        font-size: 1rem;
    }

/* Başlık */
.bulten-ozel-kart-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Alt Başlık */
.bulten-ozel-kart-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* Açıklama */
.bulten-ozel-kart-text {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 1200px;
}

/* =============================================
   KATEGORİ VARYANTLARI
   ============================================= */

/* Özel Gün - Kırmızı */
.bulten-ozel-kart.ozel-gun {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

    .bulten-ozel-kart.ozel-gun::before {
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    }

  .bulten-ozel-kart.bilim-insani .bulten-ozel-kart-badge {
    background: rgba(255,111,15,0.2);
    color: #FF6F0F;
}

/* Bilim İnsanı - Koyu Mavi */
.bulten-ozel-kart.bilim-insani {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

    .bulten-ozel-kart.bilim-insani .bulten-ozel-kart-badge {
        background: rgba(255, 255, 255, 0.08);
        color: #ffff;
    }

/* Yazar - Mavi */
.bulten-ozel-kart.yazar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
}

    .bulten-ozel-kart.yazar .bulten-ozel-kart-badge {
        background: rgba(255,255,255,0.15);
        color: #93c5fd;
    }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .bulten-ozel-kart {
        padding: 24px;
        flex-direction: column;
    }

    .bulten-ozel-kart-image {
        width: 100px;
        height: 100px;
    }

    .bulten-ozel-kart-title {
        font-size: 1.25rem;
    }

    .bulten-ozel-kart-text {
        font-size: 0.95rem;
    }
}