/**
 * Emlak CRM — layout taban stilleri (eski app.blade <style> bloğu)
 * Tailwind @apply kullanılmaz; CDN ile uyumlu.
 * Faz 4 — SEO / frontend revizyonu
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    --accent: #f59e0b;
    --success: #10b981;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --indigo-premium: #4f46e5;
    --violet-premium: #7c3aed;
    --blue-premium: #2563eb;
    --mesh-1: rgba(37, 99, 235, 0.15);
    --mesh-2: rgba(124, 58, 237, 0.15);
    --mesh-3: rgba(16, 185, 129, 0.1);
}

* {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

body {
    background-color: #f9fafb;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    p { font-size: 0.875rem; }
}

.v2-badge,
.v4-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.v2-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background-image: linear-gradient(to right, #2563eb, #9333ea, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-shadow {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-shadow:hover {
    box-shadow:
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.card-hover {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.01);
    z-index: 2;
}

.btn-premium {
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition-property: all;
    transition-duration: 500ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-premium) 0%, var(--violet-premium) 100%);
    color: white !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--violet-premium) 0%, var(--blue-premium) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium span, .btn-premium i {
    position: relative;
    z-index: 1;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.5);
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.infographic-item {
    position: relative;
    transition: all 0.3s ease;
}

.infographic-item:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.mesh-gradient {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, var(--mesh-1) 0, transparent 50%),
        radial-gradient(at 50% 0%, var(--mesh-2) 0, transparent 50%),
        radial-gradient(at 100% 0%, var(--mesh-3) 0, transparent 50%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(1px);
    animation: float-particle 25s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-20vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .prose, .blog-content, article {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    .prose h1, .blog-content h1 { font-size: 1.5rem !important; }
    .prose h2, .blog-content h2 { font-size: 1.3rem !important; }
    .prose h3, .blog-content h3 { font-size: 1.1rem !important; }
    .prose p, .blog-content p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 769px) {
    .prose, .blog-content, article {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    .prose h1, .blog-content h1 { font-size: 2rem !important; }
    .prose h2, .blog-content h2 { font-size: 1.6rem !important; }
    .prose h3, .blog-content h3 { font-size: 1.3rem !important; }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

.mobile-menu-overlay[x-cloak] {
    display: none !important;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu[x-cloak] {
    display: none !important;
}

[x-cloak] {
    display: none !important;
}

.mobile-menu-header {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-header-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.mobile-menu-header-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.mobile-menu-close-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.mobile-menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-content {
    padding: 0.5rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
}

.mobile-menu-item:hover {
    background: #f8fafc;
    padding-left: 1.5rem;
}

.mobile-menu-item.active {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    color: #2563eb;
}

.mobile-menu-item i {
    width: 1.125rem;
    font-size: 0.875rem;
    text-align: center;
}

.mobile-menu-section-title {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.mobile-menu-cta {
    margin: 0.75rem 1.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border-radius: 0.625rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.mobile-menu-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .navbar .gradient-text {
        font-size: 1.25rem !important;
    }
    .navbar p.text-xs {
        font-size: 0.65rem !important;
    }
    .navbar .w-10 {
        width: 2rem !important;
        height: 2rem !important;
    }
}
