/* style.css - FIXED ADMIN & RESPONSIVE (v5.0) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* --- 1. TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; text-decoration: none; list-style: none; }

:root {
    --bg-deep: #0a0c10;
    --bg-card: #13161c;
    --accent: #9bb5ce;
    --accent-glow: rgba(155, 181, 206, 0.4);
    --text: #ffffff;
    --text-muted: #8b9bb4;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-deep);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    cursor: none;
}

/* Mobilde normal fare */
@media (max-width: 1024px) {
    body, a, button { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none !important; }
}

a, button, input, textarea, select { cursor: pointer !important; }

/* --- 2. İMLEÇ & PRELOADER --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%;
    z-index: 99999; pointer-events: none !important;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid var(--accent); opacity: 0.5; transition: 0.1s; }

#preloader {
    position: fixed; width: 100%; height: 100vh; background: #000; z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    animation: hidePreloader 1s forwards 1.2s; pointer-events: none;
}
.loader-logo img { height: 60px; animation: pulse 1.5s infinite; }
@keyframes hidePreloader { 99% { opacity: 0; width: 100%; height: 100vh; } 100% { opacity: 0; width: 0; height: 0; display: none; } }
@keyframes pulse { 0% {opacity:0.5; transform:scale(1);} 50% {opacity:1; transform:scale(1.05);} 100% {opacity:0.5; transform:scale(1);} }

/* --- 3. HEADER (FRONTEND) --- */
header {
    position: fixed; top: 0; width: 100%; height: 90px; padding: 0 5%; z-index: 1000;
    display: flex !important; justify-content: space-between; align-items: center;
    background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Playfair Display'; font-size: 1.5rem; letter-spacing: 1px; display: flex; gap: 10px; align-items: center; color: #fff; }
nav ul { display: flex !important; gap: 40px; }
nav a { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted) !important; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--accent) !important; }

@media (max-width: 768px) {
    header { height: auto; padding: 15px 5%; flex-direction: column; gap: 15px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
}

/* --- 4. BUTONLAR --- */
.btn-gold {
    padding: 12px 35px; border: 1px solid var(--accent); color: var(--accent) !important;
    background: rgba(155, 181, 206, 0.05); font-size: 0.75rem; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 600; border-radius: 4px;
    transition: 0.4s; display: inline-block;
}
.btn-gold:hover { background: var(--accent); color: #000 !important; box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-2px); }

/* --- 5. ADMIN PANELİ (TAMAMEN DÜZELTİLDİ) --- */
.admin-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0c10;
    overflow-x: hidden;
}

/* Sidebar (Sol Menü) */
.sidebar {
    width: 260px;
    background: #111318;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column; /* Alt alta diz */
    position: fixed;
    height: 100vh;
    left: 0; top: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-header img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Menü Linkleri Düzeltmesi */
.sidebar-menu {
    padding: 20px 15px;
    display: flex;
    flex-direction: column !important; /* KESİN ÇÖZÜM: Alt alta zorla */
    gap: 5px; /* Linkler arası boşluk */
}

.nav-label {
    color: #555;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 25px 10px 10px 10px;
    display: block;
}

.menu-item {
    display: flex !important; /* Yan yana ikon ve yazı */
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    color: #9ca3af !important; /* Renk düzeltmesi */
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: transparent;
}

.menu-item:hover, .menu-item.active {
    background: rgba(155, 181, 206, 0.1);
    color: var(--accent) !important;
    transform: translateX(5px);
}

.menu-item i {
    width: 25px;
    font-size: 1.1rem;
    text-align: center;
    margin-right: 10px;
}

.menu-text { font-weight: 500; }

/* İçerik Alanı */
.main-content {
    flex: 1;
    margin-left: 260px; /* Sidebar kadar boşluk */
    display: flex;
    flex-direction: column;
    width: calc(100% - 260px);
}

/* Topbar */
.topbar {
    height: 80px;
    background: rgba(17, 19, 24, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-box {
    background: #0a0c10;
    border: 1px solid #2a2d35;
    padding: 10px 20px;
    border-radius: 50px;
    color: #fff;
    width: 300px;
}

.topbar-actions { display: flex; align-items: center; gap: 20px; }
.admin-profile { display: flex; align-items: center; gap: 10px; color: #fff; }
.admin-avatar { 
    width: 35px; height: 35px; background: var(--accent); color: #000; 
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold;
}

/* Admin Kartları (Grid) */
.dashboard-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.d-card {
    background: #161920;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
}
.d-icon { 
    width: 45px; height: 45px; background: rgba(255,255,255,0.05); border-radius: 10px;
    display: flex; justify-content: center; align-items: center; color: var(--accent); font-size: 1.2rem; margin-bottom: 15px;
}
.d-card h3 { font-size: 2rem; color: #fff; margin-bottom: 5px; font-family: 'Manrope'; }
.d-card span { font-size: 0.85rem; color: #6b7280; }

/* Grafik & Tablo */
.split-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    padding: 0 30px 30px 30px;
}
.chart-card, .activity-card {
    background: #161920;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
}
.table-container {
    background: #161920;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
    margin: 30px;
    overflow-x: auto;
}
.pro-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.pro-table th { text-align: left; color: #666; font-size: 0.75rem; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pro-table td { padding: 15px; color: #ccc; border-bottom: 1px solid rgba(255,255,255,0.02); }

/* Admin Mobili */
@media (max-width: 1024px) {
    .sidebar { width: 70px; padding: 20px 5px; }
    .nav-label, .menu-text, .sidebar-header img { display: none; }
    .sidebar-header { height: 20px; } /* Logo yerine boşluk */
    .sidebar-header::after { content: 'K'; color: #fff; font-size: 1.5rem; font-family: serif; }
    .main-content { margin-left: 70px; width: calc(100% - 70px); }
    .topbar { padding: 0 20px; }
    .search-wrapper { display: none; }
    .split-grid { grid-template-columns: 1fr; }
    .menu-item { justify-content: center; padding: 15px 0; }
    .menu-item i { margin-right: 0; font-size: 1.4rem; }
}

/* --- 6. DİĞER SAYFA STİLLERİ (Hero, Hizmetler, Portfolyo vb.) --- */
.hero {
    height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 100px;
    background: radial-gradient(circle at 50% 50%, #151921 0%, var(--bg-deep) 70%);
}
.hero h1 {
    font-family: 'Playfair Display', serif; font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; color: #fff;
    background: linear-gradient(to bottom right, #fff 30%, #9bb5ce 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.marquee-container { background: var(--accent); color: #0a0c10; padding: 12px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border); }
.marquee-content { display: inline-block; animation: scrollText 25s linear infinite; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Kartlar */
.premium-card, .portfolio-item, .process-card, .holo-card {
    background: rgba(20, 24, 30, 0.6); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 40px; position: relative; overflow: hidden; transition: 0.4s;
}
.premium-card:hover, .portfolio-item:hover, .process-card:hover { 
    transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 50px rgba(155, 181, 206, 0.15); 
}
.services-wrapper, .grid-container, .process-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; padding: 50px 10%; 
}
.portfolio-item { height: 400px; padding: 0; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
    z-index: 9999999 !important; display: none; justify-content: center; align-items: center; cursor: auto !important;
}
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 500px; padding: 40px; border-radius: 16px; border: 1px solid var(--border); }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; z-index: 50; color: #fff; }

/* Proje Modalı */
#projectModal .modal-content { width: 95%; height: 85vh; max-width: 1400px; display: flex; padding: 0; background: #000; }
#projectModal .modal-img-col { flex: 2; height: 100%; position: relative; }
#projectModal .modal-img-col img { width: 100%; height: 100%; object-fit: contain; }
#projectModal .modal-info-col { flex: 1; padding: 40px; display: flex; flex-direction: column; background: #0b0b0f; border-left: 1px solid rgba(255,255,255,0.05); }

/* CRM Bar */
.progress-bg { width: 100%; height: 10px; background: rgba(255,255,255,0.1); border-radius: 10px; margin-top: 10px; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; border-radius: 10px; }
.status-badge { padding: 3px 8px; background: rgba(155,181,206,0.1); border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; font-size: 0.7rem; }

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .services-wrapper, .grid-container { grid-template-columns: 1fr; padding: 20px 5%; }
    #projectModal .modal-content { flex-direction: column; height: 90vh; }
    #projectModal .modal-img-col { flex: none; height: 40%; width: 100%; }
    #projectModal .modal-info-col { flex: 1; height: 60%; }
}

.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* --- ADMIN PANEL SEO & FORM DÜZELTMESİ --- */

/* Kart İçindeki Form Elemanları */
.d-card input[type="text"], 
.d-card textarea {
    background: #0a0c10 !important; /* Koyu zemin */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    width: 100%;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Tıklayınca (Focus) */
.d-card input[type="text"]:focus, 
.d-card textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Etiketler (Başlık, Açıklama yazıları) */
.d-card label {
    color: var(--accent); /* Buz mavisi */
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
}

/* Kart Başlığı */
.d-card h4 {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Buton Hizalaması */
.d-card button.btn-gold {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    cursor: pointer;
}

/* --- GLOBAL FORM & BUTON DÜZELTMESİ (TÜM PANEL İÇİN) --- */

/* 1. Tüm Girdi Alanlarını Zorla Koyu Yap */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    background-color: #121418 !important; /* Hafif açık siyah */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* 2. Tıklayınca Parlasın */
input:focus, textarea:focus, select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(155, 181, 206, 0.15) !important;
    background-color: #161920 !important;
}

/* 3. Placeholder (İpucu Yazısı) Rengi */
::placeholder {
    color: #555 !important;
    opacity: 1;
}

/* 4. Tablo İçindeki Link ve İkon Düzeltmesi */
.action-btn {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: 0.3s !important;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Silme Butonu (Kırmızı) */
.action-btn.delete, 
.action-btn.delete i {
    color: #e74c3c !important;
    border-color: rgba(231, 76, 60, 0.3);
}
.action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

/* Yönet Butonu (Mavi/Altın) */
.action-btn.manage {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    letter-spacing: 1px;
}
.action-btn.manage:hover {
    background: var(--accent);
    color: #000 !important;
}

/* 5. Form İçindeki Buton Hizalaması */
form button.btn-gold {
    height: 45px; /* Inputlarla aynı boy */
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
}

/* --- TEKLİF MODALI DÜZELTMESİ (FORM HİZALAMA) --- */

/* 1. Formu Esnek Kutu Yap ve Alt Alta Diz */
#offerModal form {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left; /* Yazıları sola hizala */
}

/* 2. Başlıkları (Label) Düzenle */
#offerModal label {
    display: block; /* Kendi satırını kaplasın */
    margin-bottom: 8px; /* Input ile arasındaki boşluk */
    margin-top: 10px; /* Üstteki elemanla boşluk */
    color: var(--accent); /* Mavi renk */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 3. İlk etiketin üst boşluğunu al */
#offerModal label:first-child {
    margin-top: 0;
}

/* 4. Girdi Alanlarını (Input/Select/Textarea) Düzenle */
#offerModal input, 
#offerModal select, 
#offerModal textarea {
    width: 100%; /* Kutuyu tam doldur */
    margin-bottom: 5px; /* Alt boşluk */
    background: rgba(255,255,255,0.05) !important; /* Hafif şeffaf zemin */
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* 5. Textarea (Mesaj Kutusu) Yüksekliği */
#offerModal textarea {
    min-height: 100px;
    resize: vertical;
}

/* 6. Gönder Butonu */
#offerModal button.btn-gold {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    font-size: 0.9rem;
}

/* --- WHATSAPP WIDGET --- */
.wa-widget {
    position: fixed; bottom: 30px; right: 30px; z-index: 999999;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; transition: 0.3s;
}
.wa-icon {
    width: 60px; height: 60px; background: #25D366; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    font-size: 2rem; color: #fff; position: relative;
}
.wa-icon::after {
    content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 1px solid #25D366; animation: wa-pulse 1.5s infinite;
}
.wa-text {
    background: #fff; color: #000; padding: 8px 15px; border-radius: 8px;
    font-size: 0.8rem; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0; transform: translateX(20px); transition: 0.3s; pointer-events: none;
}
.wa-widget:hover .wa-text { opacity: 1; transform: translateX(0); }
.wa-widget:hover .wa-icon { transform: scale(1.1); }

@keyframes wa-pulse { 0% {transform:scale(1); opacity:1;} 100% {transform:scale(1.5); opacity:0;} }

/* --- HİZMET KARTLARI BUTON DÜZELTMESİ --- */

.premium-card .card-btn {
    /* Global ayarları ezmek için !important kullanıyoruz */
    background: transparent !important; 
    border: 1px solid var(--accent) !important;
    color: #fff !important;
    
    /* Boyut ve Hizalama */
    width: 100%;
    padding: 15px !important;
    margin-top: 20px !important;
    border-radius: 8px !important;
    
    /* Yazı Stili */
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* İkon ve Yazıyı Ortala */
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Yazı ile ok arasına boşluk */
    
    transition: all 0.3s ease;
    cursor: pointer !important;
}

/* Hover (Üzerine Gelince) */
.premium-card .card-btn:hover {
    background: var(--accent) !important; /* Mavi dolgu */
    color: #0a0c10 !important; /* Koyu yazı */
    box-shadow: 0 0 20px var(--accent-glow) !important; /* Parlama */
    transform: translateY(-3px); /* Hafif yukarı kalksın */
}

/* İkon Rengi */
.premium-card .card-btn i {
    color: inherit !important; /* Buton rengine uysun */
}