/* MASAL BİLİŞİM - KURUMSAL STİL REHBERİ (NİHAİ SÜRÜM)
    Özellikler: Tek tip buton sistemi, Responsive Grid yapısı, Admin Panel Onarımı
*/

/* --- 1. TEMEL AYARLAR --- */
:root { 
    --primary: #1e1b4b; 
    --accent-gradient: linear-gradient(135deg, #ff8a05 0%, #ff007a 100%); 
    --gray: #64748b; 
    --border: #f1f5f9; 
    --light: #f8fafc;
    --success: #10b981;
    --danger: #ef4444;
    --blue: #2563eb;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    margin: 0; 
    background: var(--white); 
    color: var(--primary); 
    -webkit-font-smoothing: antialiased; 
    line-height: 1.6;
}

/* --- 2. NAVİGASYON (HEADER) --- */
nav, .admin-nav { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    padding: 15px 10%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.logo-img { height: 45px; transition: 0.3s; }
.nav-links, .nav-right { display: flex !important; align-items: center !important; gap: 15px !important; }
.nav-links a { 
    text-decoration: none; 
    color: var(--gray); 
    font-size: 13px; 
    font-weight: 700; 
    transition: 0.3s; 
}
.nav-links a:hover { color: #ff007a; }

/* --- 3. ÖN YÜZ BÖLÜMLERİ (HERO & GRID) --- */
.hero { padding: 100px 10%; background: radial-gradient(circle at 90% 10%, #fff5f8 0%, #ffffff 100%); }
.hero-tag { color: #ff007a; font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; display: inline-block; }
.hero h1 { font-size: 4.2rem; line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -3px; }
.hero h1 span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--gray); max-width: 650px; margin: 30px 0 40px; }

.container { padding: 80px 10%; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.asset-card { 
    background: var(--white); border: 1px solid var(--border); border-radius: 24px; 
    padding: 40px; transition: 0.4s; position: relative; text-decoration: none; color: inherit;
}
.asset-card:hover { transform: translateY(-10px); border-color: #ff007a; box-shadow: 0 30px 60px rgba(255, 0, 122, 0.08); }

.icon-box { 
    width: 60px; height: 60px; background: #fff0f6; border-radius: 15px; 
    display: flex; align-items: center; justify-content: center; 
    margin-bottom: 25px; color: #ff007a; 
}

/* --- 4. YÖNETİM PANELİ (ADMIN) DÜZENİ --- */
.admin-wrapper { min-height: 100vh; background: var(--light); display: block; }
.admin-content { padding: 40px 10%; }
.admin-card { 
    background: var(--white); padding: 30px; border-radius: 20px; 
    box-shadow: 0 10px 25px rgba(30, 27, 75, 0.05); border: 1px solid var(--border);
    margin-bottom: 30px;
}
.admin-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; color: var(--primary); }

.dashboard-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 30px !important; }
.stats-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }

/* Tablo Tasarımı [cite: 167, 204] */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.admin-table th { padding: 15px; font-size: 11px; text-transform: uppercase; color: var(--gray); text-align: left; }
.admin-table td { padding: 15px; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr td:first-child { border-left: 1px solid var(--border); border-radius: 12px 0 0 12px; }
.admin-table tr td:last-child { border-right: 1px solid var(--border); border-radius: 0 12px 12px 0; }

.action-cell { display: flex !important; gap: 10px !important; justify-content: flex-end !important; align-items: center !important; }

/* Form Elemanları */
.input-group label { font-size: 13px; font-weight: 700; color: var(--gray); margin-bottom: 8px; display: block; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 12px 15px; border: 1.5px solid #e2e8f0; border-radius: 12px;
    font-size: 14px; transition: 0.3s; background: var(--white); font-family: inherit;
}
.input-group input:focus { border-color: #ff007a; outline: none; box-shadow: 0 0 0 4px rgba(255, 0, 122, 0.1); }

/* --- 5. NİHAİ MODERNE BUTON SİSTEMİ --- */
/* Tüm butonları btn-modern standartına sabitledik [cite: 236, 238] */
.btn-save, .btn-delete, .btn-edit, .contact-btn, .btn-primary, .btn-logout, .btn-primary-blue {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Renk Varyasyonları */
.btn-save, .btn-success { background: var(--success) !important; color: var(--white) !important; }
.btn-save:hover { background: #059669 !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }

.btn-delete { background: #fff1f2 !important; color: var(--danger) !important; }
.btn-delete:hover { background: var(--danger) !important; color: var(--white) !important; transform: translateY(-2px); }

.btn-edit { background: #eff6ff !important; color: var(--blue) !important; }
.btn-edit:hover { background: var(--blue) !important; color: var(--white) !important; transform: translateY(-2px); }

.btn-primary-blue, .btn-primary { background: var(--primary) !important; color: var(--white) !important; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-logout { background: var(--light) !important; color: var(--gray) !important; border: 1px solid #e2e8f0 !important; }
.btn-logout:hover { background: var(--danger) !important; color: var(--white) !important; border-color: var(--danger) !important; }

/* --- 6. MODAL & RESPONSIVE --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); }
.modal-content { background: var(--white); margin: 5% auto; padding: 40px; width: 500px; border-radius: 30px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); position: relative; }
.close { position: absolute; right: 25px; top: 20px; font-size: 24px; cursor: pointer; color: var(--gray); transition: 0.3s; }
.close:hover { color: var(--danger); }

@media (max-width: 1024px) {
    .grid-3, .grid-4, .dashboard-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .modal-content { width: 90%; }
}

@media (max-width: 768px) {
    nav, .admin-nav { padding: 10px 5%; flex-direction: column !important; }
    .nav-links, .nav-right { margin-top: 15px; flex-wrap: wrap; justify-content: center; gap: 10px !important; }
    .hero { padding: 60px 5%; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .grid-3, .grid-4, .footer-grid, .admin-grid, .stats-grid, .dashboard-grid { grid-template-columns: 1fr !important; }
    .admin-card { padding: 20px; }
}

/* --- FOOTER EKSTRA --- */
.footer-logo { height: 40px; margin-bottom: 25px; filter: brightness(0) invert(1); }