/* ================================================================
   VIE MİMARLIK — NIGHT ILLUMINATION (Lüks Gece Aydınlatması)
   "Mekanın Sanatı" — Premium Karanlık Mod / Versiyon 1.0
   ================================================================ */

/* ------- 1. CSS DEĞİŞKENLERİ: Gece Paleti ---------------------- */
html.dark {
    --bg: #0f0f13;
    --text: #e2e8f0;
    --stone: #1a1c23;
    --glass-bg: rgba(20, 22, 30, 0.88);
    --border: rgba(212, 175, 55, 0.07);
    --accent: #d4af37;
}

/* ------- 2. BODY: Derin Gece Radyal Gradyanı ------------------- */
.dark body {
    background: radial-gradient(ellipse at 50% 0%, #1a1c23 0%, #0d0e13 42%, #0a0b0e 100%) fixed !important;
    background-color: #0a0b0e !important;
}

/* ------- 3. YILDIZ ZEMİN: Sabit arka plan partikeller ---------- */
html.dark::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, rgba(212, 175, 55, 0.55) 0%, transparent 100%),
        radial-gradient(1px 1px at 18% 55%, rgba(255, 255, 255, 0.22) 0%, transparent 100%),
        radial-gradient(1px 1px at 28% 22%, rgba(212, 175, 55, 0.32) 0%, transparent 100%),
        radial-gradient(2px 2px at 42% 7%, rgba(212, 175, 55, 0.44) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 65%, rgba(255, 255, 255, 0.16) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 68% 18%, rgba(212, 175, 55, 0.38) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 78%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 82% 42%, rgba(212, 175, 55, 0.27) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 92% 14%, rgba(212, 175, 55, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 96% 55%, rgba(255, 255, 255, 0.13) 0%, transparent 100%),
        radial-gradient(1px 1px at 12% 85%, rgba(212, 175, 55, 0.22) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 92%, rgba(255, 255, 255, 0.08) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 95%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 88%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 3% 40%, rgba(212, 175, 55, 0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 32%, rgba(255, 255, 255, 0.06) 0%, transparent 100%),
        radial-gradient(1px 1px at 22% 3%, rgba(212, 175, 55, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 88% 5%, rgba(255, 255, 255, 0.14) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ------- 4. KADEMELİ KARARMA: Yukarıdan aşağıya derinleşme ---- */
html.dark::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 35%,
        rgba(0, 0, 0, 0.2) 65%,
        rgba(0, 0, 0, 0.45) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ------- 5. NAVBAR: Gece Cam Efekti (Dark Glassmorphism) ------- */
.dark .glass-header {
    background: rgba(9, 10, 13, 0.88) !important;
    backdrop-filter: blur(24px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.09) !important;
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.05) !important;
}

.dark .glass-header.scrolled {
    background: rgba(7, 8, 11, 0.95) !important;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(212, 175, 55, 0.08) !important;
}

/* ------- 6. NAV LİNKLERİ: Hover Radyal Aydınlatma Efekti ------ */
.dark .nav-links-container a {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease, text-shadow 0.35s ease !important;
}

.dark .nav-links-container a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    width: 170px;
    height: 72px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: -1;
    pointer-events: none;
}

.dark .nav-links-container a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.dark .nav-links-container a:hover {
    color: #d4af37 !important;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.5);
}

/* ------- 7. PROJE KARTLARI: Altın Çerçeve + Işıma -------------- */
/* Parallax / büyük proje görselleri */
.dark .parallax-wrapper {
    outline: 1px solid rgba(212, 175, 55, 0.18);
    outline-offset: 0px;
    transition: outline-color 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.07);
}

.dark .group:hover .parallax-wrapper,
.dark a.group:hover .parallax-wrapper {
    outline-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 55px rgba(212, 175, 55, 0.22), 0 0 90px rgba(212, 175, 55, 0.08);
}

/* Marquee proje kartları */
.dark .animate-marquee .inline-block {
    outline: 1px solid rgba(212, 175, 55, 0.15);
    transition: outline-color 0.4s ease, box-shadow 0.4s ease;
}

.dark .animate-marquee .inline-block:hover {
    outline-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.32);
}

/* ------- 8. GLASSMORPHİSM KART KONTEYNIRLAR ------------------- */
.dark .bg-white\/90,
.dark .bg-white\/80,
.dark .bg-white\/40 {
    background: rgba(255, 255, 255, 0.025) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(212, 175, 55, 0.08) !important;
}

/* Ekip bölümü ana kart (bg-[#fafaf9]) */
.dark .bg-\[\#fafaf9\] {
    background: rgba(18, 20, 28, 0.78) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-color: rgba(212, 175, 55, 0.09) !important;
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.05), 0 25px 60px rgba(0, 0, 0, 0.55) !important;
}

/* Küçük detay kartları (Uzmanlık/Mimarın Notu) */
.dark .bg-white.rounded-3xl,
.dark .rounded-3xl.bg-white {
    background: rgba(26, 28, 38, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    border-color: rgba(212, 175, 55, 0.07) !important;
}

/* ------- 9. BUTONLAR: Altın Ambiyans Işıması ------------------- */
.dark .bg-dark {
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.1), 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.dark a.bg-dark:hover,
.dark button.bg-dark:hover {
    box-shadow: 0 0 48px rgba(212, 175, 55, 0.25), 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Yuvarlak aksiyon butonları */
.dark .rounded-full.border {
    border-color: rgba(212, 175, 55, 0.15) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.dark .rounded-full.border:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

/* ------- 10. MOBİL MENÜ --------------------------------------- */
.dark #mobile-menu {
    background: rgba(9, 10, 13, 0.97) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
}

/* ------- 11. FORM ELEMANLARI ---------------------------------- */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="tel"],
.dark textarea,
.dark select {
    background: rgba(22, 24, 32, 0.7) !important;
    border-color: rgba(212, 175, 55, 0.12) !important;
    color: #e2e8f0 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="tel"]:focus,
.dark textarea:focus {
    border-color: rgba(212, 175, 55, 0.38) !important;
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.09), 0 0 0 3px rgba(212, 175, 55, 0.06) !important;
    outline: none !important;
}

/* ------- 12. KAYDIRMA ÇUBUĞU: Altın Vurgu -------------------- */
.dark ::-webkit-scrollbar-track {
    background: #07080b !important;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.28) !important;
    border-radius: 10px !important;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.55) !important;
}

/* ------- 13. METİN SEÇİMİ ------------------------------------ */
.dark ::selection {
    background: rgba(212, 175, 55, 0.28) !important;
    color: #f8fafc !important;
}

/* ------- 14. KENNAR ÇİZGİLER --------------------------------- */
.dark .border-dark\/5 {
    border-color: rgba(212, 175, 55, 0.06) !important;
}
.dark .border-dark\/10 {
    border-color: rgba(212, 175, 55, 0.1) !important;
}
.dark .border-dark\/20 {
    border-color: rgba(212, 175, 55, 0.13) !important;
}

/* ------- 15. EKİP BÖLÜMÜ FLOATING BADGE ---------------------- */
.dark .bg-\[\#0f172a\] {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.13), 0 8px 32px rgba(0, 0, 0, 0.65) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
}

/* ------- 16. BAŞLIKLAR: Saf Beyaz --- ------------------------- */
.dark .font-display,
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5 {
    color: #f8fafc;
}

/* ------- 17. AI PORTAL GLOW RING ----------------------------- */
.dark #ai-portal .absolute.-inset-4 {
    background: rgba(212, 175, 55, 0.07) !important;
}

/* ------- 18. HABERLER / BLOG KARTLARI -------------------------
   Referans: bg-stone/50 hover:bg-stone kart */
.dark .bg-stone\/50 {
    background: rgba(26, 28, 35, 0.45) !important;
    border-color: rgba(212, 175, 55, 0.07) !important;
}
.dark .hover\:bg-stone:hover {
    background: rgba(32, 35, 45, 0.65) !important;
}

/* ------- 19. PROJE DETAYBÖLÜMLERİ (projeler.html) ------------ */
/* Proje filtre butonları */
.dark .border-dark\/10.rounded-full {
    border-color: rgba(212, 175, 55, 0.12) !important;
    background: rgba(26, 28, 35, 0.5) !important;
}

/* ------- 20. FOOTER / ALT ALAN ------------------------------ */
.dark footer,
.dark .bg-dark.text-white {
    background-color: #070809 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.07) !important;
}

/* ------- 21. BÖLÜM AYIRICILARIKESİ: İnce Altın Çizgi -------- */
.dark .w-full.h-\[1px\] {
    background: rgba(212, 175, 55, 0.1) !important;
}
.dark .border-b {
    border-color: rgba(212, 175, 55, 0.07) !important;
}

/* ------- 22. DARK SECTION (bg-dark text-white sections) ------- */
/* These sections are always dark — add subtle gold glow */
.dark section.relative.py-32.bg-dark {
    background-color: #080910 !important;
}

/* ------- 24. OKUNABİLİRLİK VE KONTRAST DÜZELTMELERİ ------- */
.dark .text-dark,
.dark .text-dark\/70,
.dark .text-dark\/50 {
    color: #cbd5e1 !important; /* Soft gray for readability */
}

.dark .bg-dark .text-white,
.dark .bg-dark span,
.dark .bg-dark p {
    color: #ffffff !important;
}

/* CTA Butonları ve Özel Vurgular */
.dark a.bg-dark, 
.dark button.bg-dark {
    background-color: var(--accent) !important;
    color: #0f0f13 !important;
    font-weight: 600;
}

.dark a.bg-dark:hover, 
.dark button.bg-dark:hover {
    background-color: #f3cf6d !important; /* Brighter gold on hover */
}

/* Hero ve Özel Bölüm Metinleri */
.dark .from-stone {
    --tw-gradient-from: #0f0f13 var(--tw-gradient-from-position) !important;
}

.dark .text-accent {
    color: #d4af37 !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Form ve Input Etiketleri */
.dark label {
    color: #94a3b8 !important;
}

.dark .bg-stone {
    background-color: #1a1c23 !important;
}

