/* ═══════════════════════════════════════════════════════════════════
   MEMUR KAHVESİ - MODERN DESIGN SYSTEM 2026
   Premium, XenForo-inspired aesthetic
   No more blue/purple cliches!
   ═══════════════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════════════
   COLOR SYSTEM - Foundation
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Neutral Palette - Stone/Warm Grays */
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    
    /* Deep Navy Palette */
    --navy-600: #475569;
    --navy-700: #334155;
    --navy-800: #1e293b;
    --navy-850: #162032;
    --navy-900: #0f172a;
    --navy-950: #0a0f1a;
    
    /* Carbon Palette */
    --carbon-700: #3f3f46;
    --carbon-800: #27272a;
    --carbon-900: #18181b;
    --carbon-950: #09090b;
    
    /* Primary - Red (Existing) */
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
    
    /* Success - Emerald */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    
    /* Warning - Amber */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    
    /* Global Aliases */
    --primary: var(--red-600);
    --primary-dark: var(--red-800);
    --primary-light: var(--red-100);
    
    --bg-base: var(--stone-50);
    --bg-surface: #ffffff;
    --bg-surface-raised: #ffffff;
    
    --border-light: var(--stone-200);
    --border: var(--stone-300);
    --border-strong: var(--stone-400);
    
    --text-primary: var(--stone-900);
    --text-secondary: var(--stone-600);
    --text-tertiary: var(--stone-500);
    --text-muted: var(--stone-400);
    
    /* Shadows - Refined */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(20px);
    --glass-highlight: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    
    /* Radius - Xenforo Ağırbaşlılığı: Keskin ama yumuşatılmış */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 12px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC COLOR THEMES
   ═══════════════════════════════════════════════════════════════════ */

/* Homepage - Burgundy/Wine */
.theme-homepage {
    --theme-primary: #7c2d12; /* Burgundy */
    --theme-secondary: #881337; /* Wine */
    --theme-light: #fef2f2;
    --theme-gradient: linear-gradient(135deg, #7c2d12 0%, #881337 100%);
}

/* Leaderboard - Gold/Champagne */
.theme-leaderboard {
    --theme-primary: #ca8a04; /* Gold */
    --theme-secondary: #a16207;
    --theme-light: #fef3c7; /* Champagne */
    --theme-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* AI Asistan - Deep Purple/Electric */
.theme-ai {
    --theme-primary: #6b21a8; /* Deep Purple */
    --theme-secondary: #a855f7; /* Electric */
    --theme-light: #faf5ff;
    --theme-gradient: linear-gradient(135deg, #6b21a8 0%, #a855f7 100%);
}

/* Forum - Slate/Emerald */
.theme-forum {
    --theme-primary: #334155; /* Slate */
    --theme-secondary: #059669; /* Emerald */
    --theme-light: #f0fdf4;
    --theme-gradient: linear-gradient(135deg, #334155 0%, #059669 100%);
}

/* Documents - Amber/Honey */
.theme-documents {
    --theme-primary: #d97706; /* Amber */
    --theme-secondary: #f59e0b; /* Honey */
    --theme-light: #fffbeb;
    --theme-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

/* Profile - Red (Dynamic per role) */
.theme-profile {
    --theme-primary: var(--red-600);
    --theme-secondary: var(--red-700);
    --theme-light: var(--red-50);
    --theme-gradient: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%);
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL RESETS & BASE STYLES
   ═══════════════════════════════════════════════════════════════════ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

.text-display {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: var(--tracking-tight);
    line-height: 1.1;
}

.text-h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    line-height: 1.2;
}

.text-h2 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: 1.3;
}

.text-h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.text-h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

.text-body {
    font-size: 1rem;
    line-height: 1.6;
}

.text-body-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-caption {
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   MODERN CARD SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-flat {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.card-raised {
    background: var(--bg-surface-raised);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card-interactive {
    cursor: pointer;
    transition: all var(--transition-base);
}

.card-interactive:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTON SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--stone-800);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--stone-900);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--stone-100);
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--stone-100);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   BADGE SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: var(--red-100);
    color: var(--red-700);
}

.badge-success {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.badge-warning {
    background: var(--amber-100);
    color: var(--amber-700);
}

.badge-neutral {
    background: var(--stone-200);
    color: var(--stone-700);
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ═══════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════ */

.input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.input:hover {
    border-color: var(--border-strong);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════ */

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

.animate-slide-in {
    animation: slideIn 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .text-display { font-size: 2rem; }
    .text-h1 { font-size: 1.875rem; }
    .text-h2 { font-size: 1.5rem; }
    
    .md\:hidden { display: none; }
}

@media (min-width: 769px) {
    .md\:block { display: block; }
    .md\:flex { display: flex; }
}
