/* --- GENEL AYARLAR --- */
.mw-exhibition-section {
    width: 100%;
    padding: 60px 20px;
    font-family: 'DM Sans', sans-serif;
    background-color: transparent;
    box-sizing: border-box;
}

.mw-exhibition-section *, 
.mw-exhibition-section *::before, 
.mw-exhibition-section *::after {
    box-sizing: border-box;
}

.mw-exhibition-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- ÇOKLU SERGİ LİSTESİ DÜZENİ --- */
.mw-exhibitions-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- KART YAPISI --- */
.mw-exhibition-card {
    display: flex;
    align-items: stretch;
    background-color: #ffffff;
    border: 1px solid #eaeaea; /* Görseldeki ince çizgi */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mw-exhibition-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

/* --- SOL SÜTUN (GÖRSEL / PDF 1. SAYFA) --- */
.mw-exhibition-img-col {
    flex: 0 0 45%;
    position: relative;
    background-color: #f8f9fa;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.mw-exhibition-img-col img.mw-exhibition-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    min-height: 380px;
    transition: transform 0.4s ease;
}

.mw-exhibition-img-col::after {
    content: '🔍 Kataloğu İncele';
    position: absolute;
    bottom: 20px;
    background: rgba(29, 26, 12, 0.85);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.mw-exhibition-img-col:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.mw-exhibition-card:hover .mw-exhibition-img-col img.mw-exhibition-thumb-img {
    transform: scale(1.02);
}

/* --- SAĞ SÜTUN (İÇERİK) --- */
.mw-exhibition-text-col {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tarih */
.mw-exhibition-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F37021;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Başlık */
.mw-exhibition-title {
    font-size: 32px;
    font-weight: 700;
    color: #1D1A0C;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Açıklama */
.mw-exhibition-desc {
    font-size: 16px;
    color: #6E6D68;
    line-height: 1.7;
    margin: 0 0 35px 0;
}

/* --- BUTON --- */
.mw-exhibition-btn {
    display: inline-flex;
    align-items: center;
    background-color: #1D1A0C;
    color: #ffffff !important;
    padding: 14px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
    cursor: pointer;
}

.mw-exhibition-btn:hover {
    background-color: #F37021;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
}

.mw-btn-icon-left {
    margin-right: 10px;
    flex-shrink: 0;
}

.mw-btn-icon-right {
    margin-left: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

.mw-exhibition-empty {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    font-family: 'DM Sans', sans-serif;
}

/* --- LIGHTBOX / MODAL POPUP STİLLERİ --- */
body.mw-modal-open {
    overflow: hidden !important;
}

.mw-pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}

.mw-pdf-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mw-pdf-modal-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 1050px;
    height: 88vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: scale(0.96) translateY(15px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mw-pdf-modal-overlay.is-active .mw-pdf-modal-wrapper {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.mw-pdf-modal-header {
    background-color: #1D1A0C;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid #2e2b1e;
}

.mw-pdf-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mw-pdf-modal-title-wrap svg {
    color: #F37021;
    flex-shrink: 0;
}

.mw-pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mw-modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mw-modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mw-modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    margin-left: 6px;
}

.mw-modal-close-btn:hover {
    background: #d63638;
    color: #ffffff;
}

/* Modal Body */
.mw-pdf-modal-body {
    flex: 1;
    position: relative;
    background: #525659; /* Standard PDF reader background */
}

.mw-pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Spinner Loader */
.mw-pdf-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #2a2d32;
    color: #ffffff;
    font-size: 14px;
    z-index: 2;
}

.mw-pdf-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #F37021;
    border-radius: 50%;
    animation: mw-spin 0.8s linear infinite;
}

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

/* --- MOBİL UYUM (RESPONSIVE) --- */
@media (max-width: 900px) {
    .mw-exhibition-section {
        padding: 40px 15px;
    }

    .mw-exhibition-card {
        flex-direction: column;
    }
    
    .mw-exhibition-img-col {
        width: 100%;
        flex: none;
        min-height: 280px;
    }

    .mw-exhibition-img-col img.mw-exhibition-thumb-img {
        min-height: 280px;
        max-height: 420px;
    }
    
    .mw-exhibition-text-col {
        padding: 30px 20px;
    }
    
    .mw-exhibition-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .mw-exhibition-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .mw-exhibition-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .mw-pdf-modal-overlay {
        padding: 0;
    }

    .mw-pdf-modal-wrapper {
        height: 100vh;
        max-width: 100vw;
        border-radius: 0;
    }

    .mw-modal-action-btn span {
        display: none; /* Mobilde metinleri gizle, sadece ikonları göster */
    }
}

/* Küçük Telefonlar (max-width: 480px) */
@media (max-width: 480px) {
    .mw-exhibition-section {
        padding: 25px 12px;
    }

    .mw-exhibitions-list {
        gap: 25px;
    }

    .mw-exhibition-img-col {
        min-height: 220px;
    }

    .mw-exhibition-img-col img.mw-exhibition-thumb-img {
        min-height: 220px;
        max-height: 320px;
    }

    .mw-exhibition-text-col {
        padding: 22px 16px;
    }

    .mw-exhibition-title {
        font-size: 21px;
    }

    .mw-exhibition-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .mw-pdf-modal-header {
        padding: 10px 14px;
    }

    .mw-pdf-modal-title-wrap {
        font-size: 13px;
        max-width: 180px;
    }
}
