/* ============ GENEL ARKA PLAN ============ */
body.medeniyet-bg {
    background: linear-gradient(135deg, #2c1810 0%, #5d4037 50%, #8d6e63 100%);
    background-image: 
        linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(93, 64, 55, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DAA520' fill-opacity='0.05'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #f5e6c8;
    min-height: 100vh;
}

.medeniyet-baslik {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #DAA520;
    text-shadow: 
        2px 2px 0 #8B4513,
        4px 4px 10px rgba(0,0,0,0.8);
    font-size: 3em;
    letter-spacing: 2px;
}

.medeniyet-alt-baslik {
    font-family: 'Fredoka', sans-serif;
    color: #f5e6c8;
    font-style: italic;
    font-size: 1.3em;
}

/* ============ FİLTRE BUTONLARI ============ */
.btn-filter {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: 2px solid #DAA520;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    margin: 0 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-filter:hover, .btn-filter.active {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

/* ============ MEDENİYET KARTI ============ */
.medeniyet-kart {
    background: linear-gradient(135deg, #f5e6c8 0%, #fff 100%);
    border: 3px solid;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    color: #2c3e50;
    height: 100%;
}

.medeniyet-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #DAA520, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.medeniyet-kart:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(218, 165, 32, 0.4);
}

.medeniyet-kart:hover::before {
    opacity: 1;
}

.medeniyet-kart-header {
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.medeniyet-ikon {
    font-size: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.medeniyet-baslik-alan {
    flex: 1;
}

.medeniyet-isim {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.4em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.medeniyet-tarih {
    font-style: italic;
    margin: 5px 0;
    opacity: 0.95;
    font-size: 0.95em;
}

.medeniyet-kart-body {
    padding: 20px;
}

.medeniyet-aciklama {
    font-size: 0.95em;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 15px;
}

.medeniyet-bilgiler {
    background: rgba(139, 69, 19, 0.08);
    padding: 10px 15px;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
}

.medeniyet-bilgiler .bilgi-satir {
    padding: 5px 0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.medeniyet-bilgiler .bilgi-satir i {
    color: #8B4513;
    width: 20px;
}

.btn-detay-medeniyet {
    border: none;
    color: white;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s;
    border-radius: 10px;
    padding: 10px;
}

.btn-detay-medeniyet:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ============ MODAL ============ */
.medeniyet-modal {
    background: #f5e6c8;
    border: 3px solid #DAA520;
    border-radius: 20px;
    overflow: hidden;
    color: #2c3e50;
}

.medeniyet-modal-header {
    color: white;
    border: none;
    padding: 25px 30px;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.8em;
    margin: 0;
}

.ikon-badge {
    font-size: 0.8em;
    margin-right: 10px;
}

.modal-lakap {
    font-style: italic;
    color: #fff8dc;
    margin: 5px 0 0;
    font-size: 1.1em;
}

.modal-resim-container {
    background: linear-gradient(135deg, #8B4513 0%, #5d4037 100%);
    border-radius: 15px;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #DAA520;
}

.modal-resim {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resim-placeholder-buyuk {
    font-size: 100px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.bilgi-kutu {
    background: rgba(139, 69, 19, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
    line-height: 1.7;
    color: #2c3e50;
}

.detay-kutu {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sehirler-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sehir-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.eser-listesi {
    list-style: none;
    padding: 0;
}

.eser-listesi li {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #DAA520;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.9em;
}

.eser-listesi li i {
    color: #DAA520;
    margin-right: 8px;
}

.miras-kutu {
    background: rgba(218, 165, 32, 0.15);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #DAA520;
    line-height: 1.7;
}

.yikilis-kutu {
    background: rgba(139, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #8B0000;
    line-height: 1.7;
}

/* ============ MOBİL ============ */
@media (max-width: 768px) {
    .medeniyet-baslik {
        font-size: 2em;
    }
    
    .medeniyet-kart-header {
        padding: 15px;
        gap: 10px;
    }
    
    .medeniyet-ikon {
        font-size: 35px;
    }
    
    .medeniyet-isim {
        font-size: 1.1em;
    }
    
    .modal-xl {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-body .col-md-4 {
        width: 100%;
        border-right: none !important;
        border-bottom: 2px solid #DAA520;
    }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #2c1810;
}

::-webkit-scrollbar-thumb {
    background: #DAA520;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
}

/* ============ LOGIN & ADMIN ============ */
.login-med-bg {
    background: linear-gradient(135deg, #2c1810, #8B4513);
    min-height: 100vh;
}

.login-med-card {
    background: #f5e6c8;
    border: 3px solid #DAA520;
    border-radius: 20px;
    color: #2c3e50;
}

.login-med-card .form-control {
    background: white;
    border: 2px solid #8B4513;
    color: #2c3e50;
}

.login-med-card .form-control:focus {
    border-color: #DAA520;
    box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
}

.btn-med {
    background: linear-gradient(135deg, #8B4513, #DAA520);
    color: white;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border: none;
}

.btn-med:hover {
    background: linear-gradient(135deg, #DAA520, #8B4513);
    color: white;
    transform: scale(1.02);
}

.admin-med-bg {
    background: #f5e6c8;
}

.admin-med-bg .card {
    border: 2px solid #DAA520;
    border-radius: 15px;
}

.admin-med-bg .form-control,
.admin-med-bg .form-select {
    border: 2px solid #8B4513;
    border-radius: 8px;
}

.admin-med-bg .form-control:focus,
.admin-med-bg .form-select:focus {
    border-color: #DAA520;
    box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
}

/* ============ BUTON GRUBU ============ */
.btn-grubu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

/* ============ KARŞILAŞTIR BUTONU ============ */
.btn-karsilastir {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: white !important;
    border: 2px solid #8B4513;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-karsilastir::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-karsilastir:hover {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.6);
    color: white !important;
    text-decoration: none;
}

.btn-karsilastir:hover::before {
    left: 100%;
}

.btn-karsilastir:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-karsilastir i {
    font-size: 1.1em;
    animation: scaleAnim 2s infinite;
}

@keyframes scaleAnim {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============ MOBİL UYUMLULUK ============ */
@media (max-width: 768px) {
    .btn-grubu {
        gap: 5px;
    }
    
    .btn-filter {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    
    .btn-filter .badge {
        display: none;
    }
    
    .btn-karsilastir {
        padding: 8px 18px;
        font-size: 0.85em;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
    
    .btn-karsilastir::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .btn-filter {
        padding: 7px 12px;
        font-size: 0.8em;
    }
    
    .btn-karsilastir {
        padding: 7px 15px;
        font-size: 0.8em;
    }
}