/**
 * AnadoluSistem — Ödül ve Belge Modülü Ön Yüz Stilleri (MGS 1.0)
 * Yeşim Uludağ Teması ile Tam Uyumlu Kart, Galeri ve İndirme Butonları
 */

.as-odul-belge-container {
    padding: 2.5rem 0;
}

/* Başlık Alanı */
.yu-odul-belge-baslik-alani {
    text-align: center;
    margin-bottom: 2.5rem;
}

.yu-odul-belge-ana-baslik {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.yu-odul-belge-alt-baslik {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .yu-odul-belge-ana-baslik {
        font-size: 1.75rem;
    }
    .yu-odul-belge-alt-baslik {
        font-size: 0.95rem;
    }
}

/* Kategori Sekmeleri Ön Yüzde Kesinlikle Gizlenir */
.as-kategori-nav,
.as-kategori-tab {
    display: none !important;
}

/* Ödül ve Belge Kartları Izgarası */
.as-odul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.as-odul-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.as-odul-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Kart Kapak Bölümü */
.as-odul-cover-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.as-odul-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    cursor: pointer;
}

.as-odul-card:hover .as-odul-cover-img {
    transform: scale(1.03);
}

.as-odul-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.as-odul-cover-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.as-odul-badge-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-overlay-odul {
    background-color: #f59e0b;
    color: #ffffff;
}

.badge-overlay-belge {
    background-color: #0284c7;
    color: #ffffff;
}

.as-odul-date-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

/* Kart Gövdesi */
.as-odul-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.as-odul-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.as-odul-desc {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Kart Alt Bölümü / Aksiyonlar */
.as-odul-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.as-btn-indir {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #0284c7;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.as-btn-indir:hover {
    background-color: #0369a1;
    color: #ffffff;
    text-decoration: none;
}

.as-btn-dis {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.as-btn-dis:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

.as-btn-galeri {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.as-btn-galeri:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* Lightbox Modal */
.as-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(6px);
}

.as-lightbox-dialog {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.as-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.as-lightbox-caption {
    color: #f8fafc;
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.as-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.as-lightbox-close:hover {
    opacity: 1;
}

.as-lightbox-prev,
.as-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.as-lightbox-prev:hover,
.as-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

.as-lightbox-prev { left: -60px; }
.as-lightbox-next { right: -60px; }

@media (max-width: 991px) {
    .as-lightbox-prev { left: 10px; }
    .as-lightbox-next { right: 10px; }
}
