/* ================================
   BÜLTENLER & MEDYA - Modern Minimal Design
   ================================ */

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Liste Sayfası - Elegant & Spacious */
.bulletin-media-page {
    min-height: 100vh;
    background: #fafbfc;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header - Refined & Clean */
.bulletin-header {
    background: #ffffff;
    padding: 100px 20px 80px;
    text-align: center;
    color: #1a202c;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.bulletin-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #003D92 0%, #0052CC 100%);
    border-radius: 2px;
}

.bulletin-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.bulletin-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 24px;
    color: #1a202c;
    letter-spacing: -1.5px;
    font-family: 'Roboto', sans-serif;
}

.bulletin-description {
    font-size: 19px;
    line-height: 1.7;
    color: #6b7280;
    font-weight: 400;
}

/* Container - Spacious */
.bulletin-container {
    max-width: 1440px;
    margin: 60px auto 80px;
    padding: 0 40px;
}

/* Grid - Modern Layout */
.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

/* Card - Elegant & Interactive */
.bulletin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #f3f4f6;
}

.bulletin-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 24px 64px rgba(0, 61, 146, 0.15);
    border-color: #e5e7eb;
}

/* Category Badge - Modern Style */
.bulletin-card-category {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
}

.category-badge {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    color: #003D92;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.8);
}

/* Card Image - Smooth Zoom */
.bulletin-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.bulletin-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.bulletin-card:hover .bulletin-card-image img {
    transform: scale(1.12);
}

/* Card Content - Spacious */
.bulletin-card-content {
    padding: 32px;
}

/* Date Display - Refined */
.bulletin-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: #9ca3af;
    margin-bottom: 16px;
    font-weight: 500;
}

.date-day {
    font-weight: 800;
    background: linear-gradient(135deg, #003D92 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
}

/* Card Title - Bold & Clean */
.bulletin-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Summary - Readable */
.bulletin-card-summary {
    color: #6b7280;
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link - Interactive */
.bulletin-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #003D92;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(0, 61, 146, 0.08);
    font-size: 14.5px;
}

.bulletin-card-link:hover {
    background: rgba(0, 61, 146, 0.15);
    color: #002F6C;
    gap: 14px;
}

/* Pagination - Modern & Clean */
.bulletin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    background: white;
    color: #4b5563;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 15px;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: linear-gradient(135deg, #003D92 0%, #0052CC 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 146, 0.4);
}

.pagination-number.active {
    background: linear-gradient(135deg, #003D92 0%, #0052CC 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 61, 146, 0.4);
}

.pagination-dots {
    padding: 0 12px;
    color: #d1d5db;
    font-weight: 700;
}

/* ================================
   DETAY SAYFASI - Modern & Elegant
   ================================ */

.bulletin-detail-page {
    min-height: 100vh;
    background: #fafbfc;
    padding: 60px 20px;
}

.bulletin-detail-header {
    max-width: 960px;
    margin: 0 auto 50px;
}

/* Breadcrumb - Clean */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 14.5px;
    font-weight: 500;
}

.breadcrumb a {
    color: #003D92;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0052CC;
}

.breadcrumb i {
    color: #d1d5db;
    font-size: 12px;
}

.breadcrumb span {
    color: #6b7280;
}

/* Detail Title - Bold */
.detail-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 28px;
    letter-spacing: -1px;
}

/* Meta Info - Clean */
.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 15.5px;
    color: #6b7280;
    font-weight: 500;
}

.meta-category {
    background: linear-gradient(135deg, #003D92 0%, #0052CC 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.meta-separator {
    color: #e5e7eb;
}

/* Detail Container */
.bulletin-detail-container {
    max-width: 960px;
    margin: 0 auto;
}

/* Detail Main - Spacious Card */
.bulletin-detail-main {
    background: white;
    padding: 56px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.04);
    margin-bottom: 60px;
    border: 1px solid #f3f4f6;
}

/* Detail Image */
.detail-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    height: 420px; /* Fixed height for consistent layout */
    background: #f3f4f6; /* letterbox background for contain fit */
}

.detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Fit image fully without cropping */
    object-position: center;
}

/* Detail PDF - Modern PDF Viewer */
.detail-pdf {
    margin-bottom: 40px;
}

.pdf-container {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    background: #f9fafb;
    padding: 20px;
}

.pdf-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 12px;
    background: white;
}

.pdf-download {
    text-align: center;
    margin-top: 24px;
}

.pdf-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #003D92 0%, #0052CC 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 61, 146, 0.3);
    border: none;
    font-size: 15px;
}

.pdf-download .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 61, 146, 0.4);
    background: linear-gradient(135deg, #002F6C 0%, #003D92 100%);
}

/* Detail Content - Readable Typography */
.detail-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    font-weight: 400;
}

.detail-content p {
    margin-bottom: 24px;
}

.detail-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.detail-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin: 36px 0 16px;
    color: #374151;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.detail-content li {
    margin-bottom: 12px;
}

/* Share Section - Modern */
.detail-share {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid #f3f4f6;
}

.share-label {
    font-weight: 700;
    color: #4b5563;
    font-size: 15px;
}

.share-buttons {
    display: flex;
    gap: 14px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f9fafb;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f3f4f6;
    font-size: 20px;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

/* ================================
   İLGİLİ BÜLTENLER
   ================================ */

.related-bulletins {
    margin-top: 80px;
}

.related-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 40px;
    letter-spacing: -0.8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3f4f6;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 20px 48px rgba(0, 61, 146, 0.12);
}

.related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 24px;
}

.related-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 61, 146, 0.12) 0%, rgba(0, 82, 204, 0.12) 100%);
    color: #003D92;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 61, 146, 0.2);
}

.related-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

.related-date {
    font-size: 13.5px;
    color: #9ca3af;
    margin-bottom: 14px;
    font-weight: 500;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #003D92;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-link:hover {
    color: #0052CC;
    gap: 10px;
}

/* Back Button */
.back-to-list {
    max-width: 960px;
    margin: 40px auto 0;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: white;
    color: #4b5563;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f3f4f6;
    font-size: 15px;
}

.back-btn:hover {
    background: linear-gradient(135deg, #003D92 0%, #0052CC 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 61, 146, 0.4);
}

/* Empty State */
.no-bulletins {
    background: white;
    padding: 80px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}

.no-bulletins p {
    font-size: 19px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* ================================
   RESPONSIVE - Mobile Optimization
   ================================ */

@media (max-width: 1024px) {
    .bulletin-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 36px;
    }
    .detail-image { height: 360px; }
}

@media (max-width: 768px) {
    .bulletin-title {
        font-size: 38px;
        letter-spacing: -0.8px;
    }

    .bulletin-description {
        font-size: 17px;
    }

    .bulletin-header {
        padding: 60px 20px 50px;
    }

    .bulletin-container {
        padding: 0 20px;
        margin: 40px auto 60px;
    }

    .bulletin-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bulletin-card-image {
        height: 240px;
    }

    .detail-title {
        font-size: 34px;
    }

    .bulletin-detail-main {
        padding: 32px 24px;
    }

    .detail-content {
        font-size: 17px;
    }

    .detail-content h2 {
        font-size: 28px;
    }

    .detail-content h3 {
        font-size: 22px;
    }

    .pdf-container {
        padding: 12px;
    }

    .pdf-container iframe {
        height: 600px;
    }
    .detail-image { height: 260px; }
}

@media (max-width: 480px) {
    .bulletin-title {
        font-size: 32px;
    }

    .bulletin-card-content {
        padding: 24px;
    }

    .bulletin-card-title {
        font-size: 20px;
    }

    .detail-title {
        font-size: 28px;
    }

    .detail-meta {
        gap: 12px;
    }
    .detail-image { height: 200px; }
}
