/* ============================================
   Şikayet Platformu - Design System
   Premium Light Theme with 3D Effects
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors - Light Premium Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-elevated: rgba(255, 255, 255, 0.95);

    /* Surface colors */
    --surface-1: #f1f5f9;
    --surface-2: #e2e8f0;
    --surface-3: #cbd5e1;

    /* Accent colors */
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-tertiary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    --accent-gradient-hover: linear-gradient(135deg, #818cf8, #a78bfa, #f472b6);
    --accent-glow: rgba(99, 102, 241, 0.25);

    /* Semantic colors */
    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.08);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.08);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.08);
    --info: #0891b2;
    --info-bg: rgba(8, 145, 178, 0.08);

    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-muted: #cbd5e1;
    --text-accent: #6366f1;

    /* Border colors */
    --border-primary: rgba(99, 102, 241, 0.15);
    --border-secondary: #e2e8f0;
    --border-hover: rgba(99, 102, 241, 0.4);
    --border-glow: rgba(99, 102, 241, 0.5);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.9375rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-hero: 4rem;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows - Light theme */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);

    /* Container */
    --container-max: 1320px;
    --container-padding: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-tooltip: 700;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Background texture — soft gradient patterns */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 90% 60%, rgba(168, 85, 247, 0.04), transparent),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(236, 72, 153, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   FLOATING EMOJI RAIN
   ============================================ */
.emoji-rain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.emoji-float {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: emojiDrift linear infinite;
    will-change: transform, opacity;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes emojiDrift {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0.5);
    }
    10% { opacity: 0.6; transform: translateY(85vh) rotate(20deg) scale(0.9); }
    50% { opacity: 0.4; transform: translateY(45vh) rotate(180deg) scale(1); }
    90% { opacity: 0.15; transform: translateY(5vh) rotate(340deg) scale(0.7); }
    100% {
        opacity: 0;
        transform: translateY(-5vh) rotate(360deg) scale(0.5);
    }
}

/* ============================================
   3D TEXT EFFECTS
   ============================================ */
.text-3d {
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.05),
        0 0 5px rgba(0,0,0,.03),
        0 1px 3px rgba(0,0,0,.1),
        0 3px 5px rgba(0,0,0,.08),
        0 5px 10px rgba(0,0,0,.06);
    letter-spacing: -0.02em;
}

.text-3d-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(99,102,241,0.3));
    position: relative;
}

.text-3d-pop {
    text-shadow:
        1px 1px 0 rgba(99,102,241,0.2),
        2px 2px 0 rgba(99,102,241,0.15),
        3px 3px 0 rgba(99,102,241,0.1),
        4px 4px 8px rgba(0,0,0,0.1);
    transition: text-shadow var(--transition-base), transform var(--transition-base);
}

.text-3d-pop:hover {
    text-shadow:
        1px 1px 0 rgba(99,102,241,0.3),
        2px 2px 0 rgba(99,102,241,0.2),
        3px 3px 0 rgba(99,102,241,0.15),
        4px 4px 0 rgba(99,102,241,0.1),
        6px 6px 15px rgba(0,0,0,0.12);
    transform: translate(-1px, -1px);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.container-sm { max-width: 840px; }
.container-md { max-width: 1080px; }

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-sm { padding: var(--space-2xl) 0; }
.section-lg { padding: 120px 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-tertiary); }
.text-accent { color: var(--text-accent); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }

/* Section titles */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin: var(--space-md) auto;
    border-radius: var(--radius-full);
}

/* ============================================
   GRID
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-lg);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-secondary);
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-decoration: none;
}

.header-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.header-logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--font-size-2xl);
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header-nav a {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active {
    color: white;
    background: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Header search */
.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-secondary);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Notification bell */
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    background: none;
    border: none;
    font-size: 18px;
}

.notification-bell:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

.notification-bell .badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-secondary);
    background: white;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.user-dropdown .dropdown-toggle:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.user-dropdown .dropdown-toggle img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle:hover { background: rgba(99, 102, 241, 0.08); }

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: all var(--transition-base);
}

.mobile-toggle span::before,
.mobile-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: currentColor;
    left: 0;
    transition: all var(--transition-base);
}

.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after { top: 7px; }

/* Mobile nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1000;
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.mobile-nav.active { right: 0; }

.mobile-nav a {
    padding: 14px var(--space-md);
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-primary);
}

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: white;
    border-top: 1px solid var(--border-secondary);
    padding: var(--space-3xl) 0 var(--space-lg);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.footer-brand .footer-logo span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.footer-brand p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: var(--space-sm); }

.footer-col ul li a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-col ul li a:hover { color: var(--accent-primary); }

.footer-bottom {
    border-top: 1px solid var(--border-secondary);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 24px; width: 70%; margin-bottom: 16px; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); }
.skeleton-card { height: 200px; }
.skeleton-btn { height: 44px; width: 120px; border-radius: var(--radius-lg); }

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

/* ============================================
   PAGE CONTENT WRAPPER
   ============================================ */
.page-content {
    padding-top: 88px;
    min-height: 70vh;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border-secondary);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.4s var(--transition-spring);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    color: var(--text-primary);
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-info { border-left: 4px solid var(--info); }

.toast-out { animation: toastOut 0.3s ease forwards; }

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

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

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    padding: var(--space-xs);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent-primary);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    margin-bottom: var(--space-lg);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover { color: var(--accent-primary); }

.breadcrumb-separator { color: var(--text-muted); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-xs { margin-bottom: var(--space-xs); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

a { color: inherit; text-decoration: none; }
