/* =============================================
   GLOBAL RESET & VARIABLES
   ============================================= */
:root {
    --primary: #6c63ff;
    --primary-dark: #574fd6;
    --secondary: #ff6584;
    --accent: #43d39e;
    --bg: #f9fafb;
    --bg-card: #ffffff;
    --bg-sidebar: #f3f4f6;
    --text: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(108,99,255,0.18);
    --radius: 12px;
    --radius-sm: 6px;
    --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --transition: 0.25s ease;
    --header-height: 70px;
}

[data-theme="dark"] {
    --primary: #7c74ff;
    --primary-dark: #6c63ff;
    --bg: #111827;
    --bg-card: #1f2937;
    --bg-sidebar: #1a2332;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --border: #374151;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-hover: 0 8px 30px rgba(108,99,255,0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

/* =============================================
   LAYOUT
   ============================================= */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 48px 0;
}

.main-content { min-width: 0; }

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .content-grid { padding: 24px 0; }
}

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

.section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    border-radius: 2px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(108,99,255,0.4);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-sidebar);
    color: var(--text);
}

/* =============================================
   BADGES / TAGS
   ============================================= */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(108,99,255,0.12);
    color: var(--primary);
    transition: all var(--transition);
    cursor: pointer;
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Category colors */
.cat-teknoloji { background: rgba(108,99,255,0.12); color: #6c63ff; }
.cat-tasarim   { background: rgba(255,101,132,0.12); color: #ff6584; }
.cat-yasam     { background: rgba(67,211,158,0.12);  color: #43d39e; }
.cat-bilim     { background: rgba(251,191,36,0.12);  color: #f59e0b; }
.cat-kultur    { background: rgba(236,72,153,0.12);  color: #ec4899; }

/* =============================================
   UTILITIES
   ============================================= */
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex         { display: flex; }
.items-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.mb-8         { margin-bottom: 8px; }
.mb-16        { margin-bottom: 16px; }
