/* Zen Hukuk Danışmanlık - Premium Özel Stiller */

/* CSS Variables for Theme */
:root {
    --color-primary: #0B1220;
    --color-accent: #D6B25E;
    --color-bg: #FAFAF9;
    --color-text: #0B1220;
}

.dark {
    --color-primary: #E5E7EB;
    --color-accent: #D6B25E;
    --color-bg: #0B1220;
    --color-text: #E5E7EB;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Hero Banner Background */
.hero-banner {
    background-image: url('../img/hero-banner.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Ensure all sections don't overflow */
section {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(250, 250, 249, 0.70) 0%, rgba(245, 245, 243, 0.65) 50%, rgba(232, 232, 228, 0.70) 100%);
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.dark .hero-banner-overlay {
    background: linear-gradient(135deg, rgba(11, 18, 32, 0.70) 0%, rgba(16, 21, 32, 0.65) 50%, rgba(21, 26, 40, 0.70) 100%);
}

/* Grain/Noise Texture */
.grain-overlay {
    position: relative;
}

.grain-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

.dark .grain-overlay::before {
    opacity: 0.15;
}

/* Premium Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B89A4F;
}

.dark ::-webkit-scrollbar-track {
    background: #1A1F2E;
}

/* Premium Cards */
.card-premium {
    border-radius: 20px;
    background: var(--color-bg);
    border: 1px solid rgba(214, 178, 94, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(214, 178, 94, 0) 0%, rgba(214, 178, 94, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Linklerin tıklanabilir olması için */
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 18, 32, 0.15);
    border-color: rgba(214, 178, 94, 0.3);
}

.card-premium:hover::before {
    opacity: 1;
}

.dark .card-premium {
    background: #1A1F2E;
    border-color: rgba(214, 178, 94, 0.2);
}

.dark .card-premium:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Premium Buttons */
.btn-premium {
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(214, 178, 94, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(214, 178, 94, 0.4);
}

.btn-premium-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium-secondary {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    backdrop-filter: blur(10px);
}

.btn-premium-secondary:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Premium Form Inputs */
.form-input-premium {
    border-radius: 12px;
    border: 2px solid rgba(214, 178, 94, 0.2);
    padding: 14px 18px;
    transition: all 0.3s ease;
    background: var(--color-bg);
    color: var(--color-text);
}

.form-input-premium:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.1);
    outline: none;
}

.dark .form-input-premium {
    background: #1A1F2E;
    border-color: rgba(214, 178, 94, 0.3);
}

/* Header Logo */
.logo-container {
    height: 70px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Logo shrink on scroll */
.header-shrink.scrolled .logo-container {
    height: 60px;
}

.header-shrink.scrolled .logo-img {
    max-width: 230px;
}

/* Mobile logo size */
@media (max-width: 640px) {
    .logo-container {
        height: 55px;
    }
    
    .logo-img {
        max-width: 200px;
    }
    
    .header-shrink.scrolled .logo-container {
        height: 50px;
    }
    
    .header-shrink.scrolled .logo-img {
        max-width: 180px;
    }
}

/* Nav Link Premium */
.nav-link-premium {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link-premium:hover::after {
    width: 100%;
}

.nav-link-premium:hover {
    color: var(--color-accent);
}

/* Header Sticky Shrink */
.header-shrink {
    transition: all 0.3s ease;
}

.header-shrink.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 20px rgba(11, 18, 32, 0.1);
}

.dark .header-shrink.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Premium Modal */
.modal-backdrop {
    background: rgba(11, 18, 32, 0.8);
    backdrop-filter: blur(8px);
}

.dark .modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.modal-content-premium {
    border-radius: 24px;
    background: var(--color-bg);
    border: 1px solid rgba(214, 178, 94, 0.2);
    box-shadow: 0 25px 50px rgba(11, 18, 32, 0.25);
    animation: scaleIn 0.3s ease;
}

.dark .modal-content-premium {
    background: #1A1F2E;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--color-bg);
    border: 1px solid rgba(214, 178, 94, 0.3);
    box-shadow: 0 8px 24px rgba(11, 18, 32, 0.15);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-success {
    border-left: 4px solid #10B981;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.dark .toast {
    background: #1A1F2E;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Theme Switch Premium */
.theme-switch {
    width: 56px;
    height: 32px;
    border-radius: 16px;
    background: rgba(214, 178, 94, 0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-switch:hover {
    border-color: var(--color-accent);
}

.theme-switch::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-accent);
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(214, 178, 94, 0.4);
}

.dark .theme-switch::before {
    transform: translateX(24px);
}

/* Premium Divider */
.divider-premium {
    position: relative;
    padding-top: 2rem;
}

.divider-premium::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(214, 178, 94, 0.4) 30%, rgba(214, 178, 94, 0.8) 50%, rgba(214, 178, 94, 0.4) 70%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(214, 178, 94, 0.3);
}

.divider-premium::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 178, 94, 0.15), transparent);
    border-radius: 1px;
}

/* Image Placeholder Premium */
.img-placeholder-premium {
    background: linear-gradient(135deg, rgba(214, 178, 94, 0.1) 0%, rgba(11, 18, 32, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    position: relative;
    overflow: hidden;
}

.img-placeholder-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(214, 178, 94, 0.03) 10px,
        rgba(214, 178, 94, 0.03) 20px
    );
}

.dark .img-placeholder-premium {
    background: linear-gradient(135deg, rgba(214, 178, 94, 0.15) 0%, rgba(26, 31, 46, 0.3) 100%);
}

/* Gallery Filter Animation */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-item.filtered-in {
    opacity: 1;
    transform: scale(1);
}

/* Blog Search Premium */
.search-premium {
    position: relative;
}

.search-premium input {
    padding-left: 48px;
}

.search-premium::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
}

/* Stepper Premium */
.stepper-item {
    position: relative;
}

.stepper-item::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.stepper-item:last-child::after {
    display: none;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(214, 178, 94, 0.1) 25%, rgba(214, 178, 94, 0.2) 50%, rgba(214, 178, 94, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Menu Full Screen */
.mobile-menu-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 9998;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-full.active {
    transform: translateX(0);
}

.dark .mobile-menu-full {
    background: var(--color-primary);
}

/* Body Scroll Lock */
body.scroll-locked {
    overflow: hidden;
}

/* Premium Text Styles */
.text-premium-heading {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-premium-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B89A4F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold Text Color */
.text-gold {
    color: #D6B25E;
}
