/* ============================================
   Yayınlar Sayfası - Premium Akademik Tasarım
   ============================================ */

/* ---------- Yayın Kartı ---------- */
.yayinlar-wrapper {
    max-width: 900px;
    margin: 30px auto 50px;
}

/* ---------- Bölüm Başlıkları ---------- */
.yayin-section-title {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #0d1b2a;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1a3a4a;
    letter-spacing: -0.01em;
    position: relative;
}

.yayin-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3a7ca5;
}

/* ---------- Yayın Listesi ---------- */
.yayin-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yayin-list li {
    position: relative;
    font-family: 'Source Sans 3', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95em;
    line-height: 1.7;
    color: #111111;
    font-weight: 500;
    padding: 16px 20px 16px 48px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.yayin-list li:hover {
    background: #fafbfc;
    border-color: #d0d7de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.yayin-list li::before {
    content: '📄';
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 1.1em;
}

/* Yayın içi vurgular */
.yayin-list li strong {
    font-weight: 700;
    color: #000000;
}

.yayin-list li em {
    font-style: italic;
    color: #2c5f7c;
    font-weight: 600;
}

/* ---------- Yayın Meta ---------- */
.yayin-meta {
    display: inline-block;
    background: #f0f4f8;
    color: #2c5f7c;
    font-size: 0.8em;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
    margin-left: 4px;
    letter-spacing: 0.03em;
}

.yayin-meta.journal {
    background: #eef2f7;
    color: #1a3a4a;
}

/* ---------- Alt bölüm başlıkları ---------- */
.yayin-subtitle {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.15em;
    font-weight: 600;
    color: #1a2b3c;
    margin: 28px 0 14px;
    padding-left: 14px;
    border-left: 4px solid #3a7ca5;
}

/* ---------- Kitaplar Bölümü ---------- */
.kitaplar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}

.kitap-kart {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kitap-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a3a4a, #3a7ca5);
}

.kitap-kart:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #d0d7de;
}

.kitap-kart h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.05em;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.kitap-kart .kitap-meta {
    font-size: 0.85em;
    color: #5a6d7e;
    font-weight: 500;
    margin-bottom: 6px;
}

.kitap-kart .kitap-tur {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3a7ca5;
    background: #eef4f9;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

/* ---------- PDF Kitaplık (Raf) ---------- */
#bookshelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 28px 20px;
    margin: 30px 0 40px;
    padding: 10px 0;
}

#bookshelf a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 18px 12px 12px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
}

#bookshelf a:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
    border-color: #d0d7de;
}

#bookshelf a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 6px;
    background: linear-gradient(90deg, #1a3a4a 0%, #3a7ca5 50%, #1a3a4a 100%);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#bookshelf a:hover::after {
    opacity: 1;
}

#bookshelf img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
    transition: transform 0.25s ease;
}

#bookshelf a:hover img {
    transform: scale(1.06);
}

#bookshelf h6 {
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    font-size: 0.82em;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

/* ---------- PDF Dialog (Modal) ---------- */
dialog {
    padding: 1.5rem 2.5rem;
    background: #ffffff;
    width: 92%;
    max-width: 1000px;
    height: 88vh;
    border-radius: 14px;
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18);
    animation: yayinFadeIn 0.35s ease both;
}

dialog::backdrop {
    animation: yayinFadeIn 0.3s ease both;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

dialog iframe {
    border-radius: 6px;
}

dialog .x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f4f5f6;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #555;
    z-index: 10;
}

dialog .x:hover {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.1);
}

/* ---------- Ana içerik konteynırı ---------- */
.yayin-content {
    font-family: 'Source Sans 3', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.yayin-content p {
    font-size: 0.95em;
    line-height: 1.8;
    color: #111111;
    font-weight: 500;
    margin-bottom: 4px;
    text-align: justify;
}

.yayin-content p strong {
    font-weight: 700;
    color: #000000;
}

.yayin-content p em {
    color: #2c5f7c;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media all and (max-width: 768px) {
    .yayinlar-wrapper {
        margin: 20px auto 35px;
        padding: 0 10px;
    }

    .yayin-section-title {
        font-size: 1.25em;
    }

    .yayin-list li {
        font-size: 0.88em;
        padding: 14px 14px 14px 40px;
    }

    .yayin-list li::before {
        left: 12px;
        top: 14px;
        font-size: 0.95em;
    }

    #bookshelf {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 18px 12px;
    }

    #bookshelf img {
        width: 60px;
    }

    #bookshelf h6 {
        font-size: 0.75em;
    }

    .kitaplar-grid {
        grid-template-columns: 1fr;
    }

    dialog {
        width: 96%;
        height: 90vh;
        padding: 1rem 1.2rem;
        border-radius: 10px;
    }
}

@media all and (max-width: 480px) {
    .yayin-section-title {
        font-size: 1.15em;
    }

    .yayin-list li {
        font-size: 0.82em;
        padding: 12px 10px 12px 34px;
    }

    #bookshelf {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
    }

    #bookshelf img {
        width: 50px;
    }

    #bookshelf a {
        padding: 12px 6px 10px;
    }

    .yayin-subtitle {
        font-size: 1em;
    }
}

@media print {
    .yayin-list li {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .kitap-kart {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    #bookshelf a {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ---------- Animasyon ---------- */
@keyframes yayinFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}