/* === MODERN & BASİT ADMİN PANELİ === */
:root {
    --primary: #c0392b;
    /* Köşk konseptine uygun kırmızı */
    --primary-dark: #a93226;
    --bg: #f4f6f8;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding-bottom: 50px;
}

/* === HEADER === */
header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-alan {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-alan img {
    height: 40px;
}

.logo-alan h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-danger {
    background: #fee;
    color: #e74c3c;
}

.btn-danger:hover {
    background: #fdd;
}

/* === TABS === */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
    background: var(--white);
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.aktif {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.tab-btn:hover {
    color: var(--primary);
}

/* === GRID LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-content {
    display: none;
}

.section-content.aktif {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === KARTLAR === */
.kart {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Yeni Ekle Kartı */
.kart.ekle-kart {
    border: 2px dashed #cbd5e0;
    background: #f8fafc;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    min-height: 300px;
    color: #94a3b8;
}

.kart.ekle-kart:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5f5;
}

.kart.ekle-kart i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.kart.ekle-kart span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* İçerik Kartı */
.kart-gorsel {
    width: 100%;
    height: 180px;
    object-fit: contain;
    /* Logolar için contain, fotoğraflar için cover olabilir ama contain güvenli */
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cover-mode .kart-gorsel {
    object-fit: cover;
    padding: 0;
}

.kart-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kart-baslik {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.kart-detay {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.kart-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-aktif {
    background: #def7ec;
    color: #03543f;
}

.badge-pasif {
    background: #fde8e8;
    color: #9b1c1c;
}

.kart-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.osm-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-edit {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-edit:hover {
    background: #bbdefb;
}

.btn-delete {
    background: #ffebee;
    color: #d32f2f;
}

.btn-delete:hover {
    background: #ffcdd2;
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.aktif {
    display: flex;
    animation: fadeModal 0.2s;
}

@keyframes fadeModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.preview-box {
    width: 100%;
    height: 150px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    overflow: hidden;
}

.preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .header-actions span {
        display: none;
    }
}

/* === LOGIN PAGE STYLES === */
.giris-sayfa {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.giris-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    /* Yumuşak gölge */
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.giris-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.giris-logo h1 {
    font-family: 'Cinzel', serif;
    color: var(--text);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i.fa-envelope,
.input-wrapper i.fa-lock {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
}

.input-wrapper input {
    padding-left: 3rem;
    /* İkon boşluğu */
    background: #f8fafc;
    border-color: #e2e8f0;
}

.input-wrapper input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.sifre-goster {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
}

.sifre-goster:hover {
    color: var(--text);
}

.giris-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.giris-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.2);
}

.hata-mesaj {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.hata-mesaj.gizle {
    display: none;
}

.geri-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.geri-link:hover {
    color: var(--primary);
}