/* ==========================================================================
   ArtiFrame Global Variables & Base Styles
   (Driven by data-attributes: data-theme and data-mode)
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Comfortaa:wght@700&display=swap');

/* ===== BRAND TOKEN'LARI (Sınav Ortağım) ===== */
:root {
    /* Brand */
    --brand-primary:   #3B1F6E;   /* Derin Mor */
    --brand-secondary: #1A5C38;   /* Koyu Yeşil */
    --brand-accent:    #D4622A;   /* Turuncu */

    /* RGB kanalları (rgba() kullanımı için zorunlu) */
    --brand-primary-rgb:   59, 31, 110;
    --brand-secondary-rgb: 26, 92, 56;
    --brand-accent-rgb:    212, 98, 42;

    /* Brand hovers */
    --brand-primary-hover:   #2e1757;
    --brand-secondary-hover: #144a2c;

    /* Tipografi */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Comfortaa', cursive;

    /* Köşe yarıçapı */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Gölgeler */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
    --shadow-brand: 0 8px 24px rgba(59, 31, 110, 0.25);

    /* Geçişler */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;

    /* İçerik genişliği */
    --container-max: 1200px;
    --container-pad: clamp(1rem, 5vw, 2rem);
}

/* Light Mode (Varsayılan) */
html[data-theme="default"][data-mode="light"] {
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-bg: rgba(59, 130, 246, 0.08);
    --menu-bg: #ffffff;
    --canvas-bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --bg-hover: rgba(0,0,0,0.04);
    --shadow-color: rgba(0,0,0,0.08);
}

/* Dark Mode */
html[data-theme="default"][data-mode="dark"] {
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-bg: rgba(96, 165, 250, 0.15);
    --menu-bg: #141619;
    --canvas-bg: #0b0c0e;
    --card-bg: #1a1d21;
    --border: #262b32;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
    --bg-hover: rgba(255,255,255,0.05);
    --shadow-color: rgba(0,0,0,0.30);

    /* Dark modda brand renkleri daha parlak */
    --brand-primary:   #A98CFA;
    --brand-secondary: #34D399;
    --brand-accent:    #FF9B71;

    /* Dark mod RGB kanalları (parlak renklerle eşleşir) */
    --brand-primary-rgb:   169, 140, 250;
    --brand-secondary-rgb: 52,  211, 153;
    --brand-accent-rgb:    255, 155, 113;
}

/* Base Reset & Genel Stiller */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--canvas-bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sayfa içeriği tüm boşluğu kaplasın, footer aşağı itilsin */
.main-content, main#main,
.app-main-content, .main-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/*
 * Sabit floating header (fixed, top: 1.5rem) → 72px yükseklik + 1.5rem offset
 * Güvenli üst boşluk = header h + offset + nefes.
 * Landing hero-section kendi padding-top'ını yönetir (.hero-section { padding-top: 10rem })
 * Diğer tüm sayfaların ilk section'ı bu kural ile otomatik konumlanır.
 */
.app-main-content > section:first-child:not(.hero-section),
.app-main-content > .page-hero {
    padding-top: calc(72px + 1.5rem + 3rem); /* ≈ 148px */
}

/* Mobilde header kısa (64px) ve top: 1rem */
@media (max-width: 576px) {
    .app-main-content > section:first-child:not(.hero-section),
    .app-main-content > .page-hero {
        padding-top: calc(64px + 1rem + 2.5rem); /* ≈ 121px */
    }
}



/* Yardımcı container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* Yardımcı section boşluğu */
.section {
    padding-block: clamp(3rem, 8vw, 6rem);
}


a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Typography Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
