/* 
=========================================
   eTwinning Haberler Sayfası Özel CSS 
=========================================
*/

:root {
    --etwinning-blue: #003399;
    --eu-blue: #003399;
    --eu-yellow: #FFCC00;
    --esep-light: #f8f9fa;
    --esep-gray: #e9ecef;
    --esep-text: #333333;
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 51, 153, 0.15);
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

/* Typography & General */
.esep-blue-text {
    color: var(--etwinning-blue) !important;
    font-weight: 700;
}

/* Skeleton Loading (Placeholder) */
.skeleton-box {
    background-color: #e2e5e7;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.5) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0)
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    border-radius: 4px;
    display: inline-block;
    line-height: 1;
    width: 100%;
    animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Stats Boxes */
.esep-stat-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--soft-shadow);
    transition: transform var(--transition-speed);
}
.esep-stat-box:hover {
    transform: translateY(-5px);
}
.esep-stat-box h3 {
    font-size: 2rem;
    color: var(--etwinning-blue);
    margin-bottom: 5px;
}
.esep-stat-box p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* News Cards (Grid) */
.esep-news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.esep-news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}
.esep-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.esep-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.esep-news-card:hover .esep-card-img-wrapper img {
    transform: scale(1.05);
}
.esep-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--eu-yellow);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.esep-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.esep-card-meta {
    font-size: 0.85rem;
    color: #222;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.esep-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.esep-card-desc {
    font-size: 0.95rem;
    color: #444;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.esep-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--esep-gray);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.esep-read-more {
    color: var(--etwinning-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.esep-read-more:hover {
    color: var(--eu-yellow);
}
.esep-read-more i {
    margin-left: 5px;
    transition: transform 0.2s;
}
.esep-read-more:hover i {
    transform: translateX(5px);
}
.esep-read-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
    display: none;
}
.esep-news-card.is-read .esep-read-badge {
    display: block;
}
.esep-news-card.is-read .esep-card-title {
    color: #666; /* okunduysa biraz daha soluk */
}

/* Slider Customizations */
.esep-slider-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--soft-shadow);
}
.esep-slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.esep-slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0, 0.95) 0%, rgba(0,0,0, 0.6) 60%, transparent 100%);
    padding: 60px 30px 30px;
    color: #ffffff;
}
.esep-slider-overlay .esep-category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}
.esep-slider-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0, 1);
}

/* Filters & Search */
.esep-filter-buttons .btn {
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--esep-gray);
    color: var(--esep-text);
    background: white;
    transition: all 0.2s;
}
.esep-filter-buttons .btn:hover,
.esep-filter-buttons .btn.active {
    background: var(--etwinning-blue);
    color: white;
    border-color: var(--etwinning-blue);
}

/* Modal Enhancements (Sade & Profesyonel Tasarım) */
.esep-modal .modal-dialog {
    max-width: 850px;
}
.esep-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}
.esep-modal .modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f2f5;
    padding: 18px 28px;
}
.esep-modal .modal-header .modal-title {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.esep-modal .modal-header .btn-close {
    filter: none;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.esep-modal .modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}
.esep-modal-img-container {
    padding: 24px 28px 0;
}
.esep-modal-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
}
.esep-modal-body-content {
    padding: 28px 32px 32px;
}
.esep-modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 51, 153, 0.08);
    color: var(--etwinning-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.esep-modal-title {
    font-size: 1.65rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.esep-modal-meta {
    color: #64748b;
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.esep-modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.esep-modal-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    font-weight: 400;
}
.esep-modal-text p {
    margin-bottom: 16px;
}
.esep-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 28px;
}
.esep-modal-actions .btn {
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
}
.esep-modal-actions .btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Pagination */
.esep-pagination .page-item .page-link {
    color: var(--etwinning-blue);
    border: none;
    margin: 0 5px;
    border-radius: 5px;
}
.esep-pagination .page-item.active .page-link {
    background-color: var(--etwinning-blue);
    color: white;
}

@media print {
    /* Sayfadaki diğer tüm elementleri gizle */
    body * {
        visibility: hidden;
    }
    
    /* Yalnızca modal penceresini ve içeriğini göster */
    #newsDetailModal,
    #newsDetailModal * {
        visibility: visible;
    }

    #newsDetailModal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #newsDetailModal .modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #newsDetailModal .modal-content {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* Yazdırmada gereksiz butonları ve kapatma ikonlarını gizle */
    .modal-header .btn-close,
    .modal-footer,
    .modal-backdrop {
        display: none !important;
    }

    .modal-header {
        background-color: transparent !important;
        color: #003399 !important;
        border-bottom: 2px solid #003399 !important;
        padding: 10px 0 !important;
    }

    .modal-header .modal-title {
        color: #003399 !important;
        font-size: 1.5rem !important;
    }

    .esep-modal-body-content {
        padding: 20px 0 !important;
    }

    .esep-modal-img {
        max-height: 350px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-bottom: 20px !important;
    }

    .esep-modal-title {
        color: #000 !important;
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .esep-modal-meta {
        color: #555 !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
    }

    .esep-modal-text {
        color: #111 !important;
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
}
