/* DreamCurtains Akademi â€” Premium Design System */
:root {
    --navy: #0B1F4D;
    --navy-light: #152d5c;
    --navy-dark: #061428;
    --gold: #D4AF37;
    --gold-light: #e8c84a;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --bg: #F8F9FB;
    --bg-white: #ffffff;
    --text: #111827;
    --text-muted: #6b7280;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(11, 31, 77, 0.06);
    --shadow-md: 0 8px 32px rgba(11, 31, 77, 0.1);
    --shadow-lg: 0 20px 60px rgba(11, 31, 77, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 72px;
    --header-h-sm: 60px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    /* Site iÃ§erik paleti â€” yalnÄ±zca lacivert & beyaz tonlarÄ± */
    --brand: #16345B;
    --brand-light: #1f4d7a;
    --brand-dark: #0e2544;
    --brand-muted: rgba(22, 52, 91, 0.62);
    --brand-soft: rgba(22, 52, 91, 0.07);
    --brand-glow: rgba(22, 52, 91, 0.22);
    --white: #FFFFFF;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.dc-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-dream { color: var(--navy); font-family: var(--font-display); font-weight: 700; }
.logo-gold { color: var(--gold); font-family: var(--font-display); font-weight: 700; }

/* â”€â”€â”€ LOADER â”€â”€â”€ */
.loader-screen {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--brand);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.loader-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { font-size: 2rem; margin-bottom: 2rem; }
.loader-logo .logo-dream { color: #fff; }
.loader-bar {
    width: 200px; height: 3px; background: rgba(255,255,255,0.15);
    border-radius: 3px; overflow: hidden; margin: 0 auto 1rem;
}
.loader-progress {
    height: 100%; width: 0; background: var(--white);
    border-radius: 3px; animation: loadBar 1.2s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }
.loader-text { color: rgba(255,255,255,0.5); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }

/* â”€â”€â”€ SCROLL PROGRESS â”€â”€â”€ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 10001;
    background: var(--brand);
    width: 0; transition: width 0.1s linear;
}

/* â”€â”€â”€ CURSOR GLOW â”€â”€â”€ */
.cursor-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
    transition: opacity 0.3s; opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* â”€â”€â”€ HEADER â”€â”€â”€ */
.dc-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    width: 100%; max-width: 100%;
    height: var(--header-h);
    background: var(--glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: height var(--transition), box-shadow var(--transition), background var(--transition);
    overflow: visible;
}
.dc-header.scrolled {
    height: var(--header-h-sm);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.92);
}
.dc-header-inner {
    width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 24px; min-width: 0;
}
.dc-logo {
    font-size: 1.35rem; flex: 0 0 auto; display: flex; align-items: center;
    transition: transform var(--transition);
}
.dc-logo:hover { transform: scale(1.02); }
.dc-logo img { height: 36px; width: auto; transition: height var(--transition); }
.dc-header.scrolled .dc-logo img { height: 30px; }

.dc-nav {
    flex: 1 1 auto; min-width: 0;
    display: flex; justify-content: center;
}
.dc-nav-list {
    display: flex; align-items: center; justify-content: center;
    gap: 26px; flex-wrap: nowrap;
    list-style: none; margin: 0; padding: 0;
    max-width: 100%;
}
.dc-nav-list-item { display: flex; align-items: center; }
.dc-nav-link {
    padding: 0.5rem 0.65rem; font-size: 0.875rem; font-weight: 500;
    color: var(--text); border-radius: var(--radius-sm);
    position: relative; white-space: nowrap;
}
.dc-nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--gold); transition: var(--transition); transform: translateX(-50%);
}
.dc-nav-link:hover { color: var(--navy); }
.dc-nav-link:hover::after { width: 60%; }
.dc-nav-btn { display: flex; align-items: center; gap: 0.35rem; }
.dc-nav-btn i { font-size: 0.7rem; transition: transform var(--transition); }

/* Mega Menu */
.dc-nav-item { position: relative; }
.has-mega-menu { position: relative; }
.has-mega-menu::after {
    content: ""; position: absolute; left: 0; top: 100%;
    width: 100%; height: 20px; z-index: 3; pointer-events: auto;
}
.has-mega-menu .mega-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 720px; margin-top: 0 !important;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 2; padding-top: 12px;
}
.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu,
.has-mega-menu.is-open .mega-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.has-mega-menu:hover .dc-nav-btn i,
.has-mega-menu.is-open .dc-nav-btn i { transform: rotate(180deg); }
.dc-mega-inner,
.mega-menu-inner {
    background: var(--bg-white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 1.75rem;
    border: 1px solid rgba(11, 31, 77, 0.06);
}
.dc-mega-header { margin-bottom: 1.25rem; }
.dc-mega-header h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.dc-mega-header p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.dc-mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.dc-mega-card {
    display: flex; gap: 0.85rem; padding: 0.75rem; border-radius: var(--radius-sm);
    transition: var(--transition); border: 1px solid transparent;
}
.dc-mega-card:hover {
    background: var(--bg); border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px var(--gold-glow);
}
.dc-mega-card-img {
    width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; position: relative;
}
.dc-mega-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dc-mega-placeholder {
    width: 100%; height: 100%; background: var(--navy); display: flex;
    align-items: center; justify-content: center; color: var(--gold); font-size: 1.25rem;
}
.dc-mega-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(11,31,77,0.3));
}
.dc-mega-card-body h4 { font-size: 0.85rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.dc-mega-card-body p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; line-height: 1.4; }
.dc-mega-meta { font-size: 0.7rem; color: var(--gold); margin-top: 0.35rem; display: flex; align-items: center; gap: 0.25rem; }
.dc-mega-footer-link {
    display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem;
    font-size: 0.85rem; font-weight: 600; color: var(--gold);
}
.dc-mega-footer-link:hover { color: var(--navy); }

/* Header Actions */
.dc-header-actions {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.dc-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 600; transition: var(--transition);
    border: none; cursor: pointer;
}
.dc-btn-ghost {
    color: var(--navy); background: transparent;
    border: 1.5px solid rgba(11, 31, 77, 0.15);
}
.dc-btn-ghost:hover {
    border-color: var(--navy); background: var(--navy); color: #fff;
    box-shadow: 0 0 20px rgba(11, 31, 77, 0.2);
}
.dc-btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark); box-shadow: 0 4px 15px var(--gold-glow);
}
.dc-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}
.dc-btn-full { width: 100%; justify-content: center; padding: 0.85rem; font-size: 1rem; }

.dc-menu-toggle {
    display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.dc-menu-toggle span {
    width: 22px; height: 2px; background: var(--navy);
    transition: var(--transition); border-radius: 2px;
}
.dc-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.dc-menu-toggle.active span:nth-child(2) { opacity: 0; }
.dc-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* â”€â”€â”€ MOBILE MENU â”€â”€â”€ */
.dc-mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: var(--navy); opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.dc-mobile-menu.open { opacity: 1; visibility: visible; }
.dc-mobile-menu-inner {
    padding: calc(var(--header-h) + 2rem) 2rem 2rem;
    height: 100%; overflow-y: auto;
}
.dc-mobile-link {
    display: block; padding: 1rem 0; font-size: 1.25rem; font-weight: 500;
    color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dc-mobile-link:hover { color: var(--gold); }
.dc-mobile-gold { color: var(--gold) !important; }
.dc-mobile-section { padding: 1rem 0; }
.dc-mobile-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--gold); margin-bottom: 0.5rem; display: block;
}
.dc-mobile-sublink {
    display: block; padding: 0.6rem 0 0.6rem 1rem; font-size: 1rem;
    color: rgba(255,255,255,0.7);
}
.dc-mobile-sublink:hover { color: var(--gold); }

/* â”€â”€â”€ BOTTOM NAV â”€â”€â”€ */
.dc-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: var(--glass); backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}
.dc-bottom-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 0.15rem; font-size: 0.65rem; font-weight: 500; color: var(--text-muted);
    padding: 0.35rem; min-height: 48px; justify-content: center;
}
.dc-bottom-item i { font-size: 1.25rem; }
.dc-bottom-item:hover, .dc-bottom-item.active { color: var(--gold); }

/* Mobile accordion — Perde Dikim */
.dc-mobile-accordion { border-bottom: 1px solid rgba(255,255,255,0.08); }
.dc-mobile-accordion-btn {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: 1rem 0; font-size: 1.15rem; font-weight: 500; color: #fff;
    background: none; border: none; cursor: pointer; min-height: 44px;
    font-family: inherit; text-align: left;
}
.dc-mobile-accordion-btn i { font-size: 0.85rem; transition: transform var(--transition); }
.dc-mobile-accordion.open .dc-mobile-accordion-btn i { transform: rotate(180deg); }
.dc-mobile-accordion-panel {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
}
.dc-mobile-accordion.open .dc-mobile-accordion-panel { max-height: 600px; }
.dc-mobile-accordion .dc-mobile-sublink:last-child { padding-bottom: 1rem; }

/* ─── RESPONSIVE — HEADER & GLOBAL ─── */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
video, iframe { max-width: 100%; }

@media (max-width: 1280px) {
    .dc-header-inner { padding: 0 16px; gap: 16px; }
    .dc-nav-list { gap: 16px; }
    .dc-nav-link,
    .dc-nav-btn { font-size: 0.8125rem; padding: 0.45rem 0.5rem; }
    .has-mega-menu .mega-menu { width: min(720px, calc(100vw - 48px)); }
}

@media (max-width: 1200px) {
    .dc-nav-list { gap: 12px; }
    .dc-nav-link,
    .dc-nav-btn { font-size: 0.78rem; }
    .dc-btn { padding: 0.5rem 0.9rem; font-size: 0.8125rem; }
}

@media (max-width: 1100px) {
    .dc-nav { display: none; }
    .dc-menu-toggle {
        display: flex; align-items: center; justify-content: center;
        min-width: 44px; min-height: 44px;
    }
    .dc-header-inner { gap: 0.75rem; padding: 0 16px; }
    .dc-header-actions .dc-btn-ghost,
    .dc-header-actions .dc-btn-gold { display: none; }
    .dc-header-actions { gap: 0.5rem; margin-left: auto; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; --header-h-sm: 56px; }
    .dc-container { padding: 0 16px; }
    .dc-bottom-nav { display: flex; }
    .dc-logo img { height: 30px; }
    .dc-user-trigger { min-height: 44px; }
    .dc-mobile-menu { z-index: 1001; }
    .dc-mobile-menu-inner { padding: calc(var(--header-h) + 1rem) 1.25rem 2rem; }
    .dc-mobile-link { font-size: 1.1rem; min-height: 44px; display: flex; align-items: center; }
    .dc-mobile-sublink { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 576px) {
    .dc-header-inner { padding: 0 12px; gap: 0.5rem; }
    .dc-logo { font-size: 1.1rem; }
}
