/* Blog Sitesi - Modern CSS */
:root {
    --primary: #1a56db;
    --primary-hover: #1340a8;
    --primary-light: #e8eefb;
    --primary-50: #f0f5ff;
    --accent: #dc6803;
    --accent-light: #fef3e2;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --bg: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --bg-dark: #1a202c;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-md: 0 10px 25px rgba(0,0,0,.07), 0 4px 10px rgba(0,0,0,.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.08), 0 8px 16px rgba(0,0,0,.04);
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max-width: 1200px;
    --transition: .2s ease;
    --transition-slow: .35s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-secondary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -.3px;
}

.logo-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
}

.main-nav {
    display: flex;
    gap: 2px;
}

.main-nav .nav-link {
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
}

.main-nav .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--bg);
    cursor: pointer;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--text);
}

.menu-toggle:hover { background: var(--bg-tertiary); }

/* ==========================================
   HERO
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, #f5f0ff 50%, var(--accent-light) 100%);
    text-align: center;
    padding: 72px 24px 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(26,86,219,.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(220,104,3,.04) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.5px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.hero-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-search input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 15px;
    outline: none;
    background: var(--bg);
    transition: border-color var(--transition);
}

.hero-search input:focus { border-color: var(--primary); }

.hero-search button {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.hero-search button:hover { background: var(--primary-hover); }

/* ==========================================
   LAYOUT
   ========================================== */
.container.with-sidebar {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -.3px;
}

.page-header {
    padding: 0 0 24px;
    margin-bottom: 8px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 6px;
    font-size: 15px;
}

.page-header .category-desc {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 15px;
}

/* ==========================================
   FEATURED SECTION
   ========================================== */
.featured-section { margin-bottom: 48px; }

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.featured-grid .featured-card:first-child {
    grid-row: 1 / 3;
}

.featured-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.featured-card:first-child img { height: 100%; min-height: 300px; }

.featured-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.featured-content h3 { font-size: 18px; line-height: 1.4; margin: 10px 0 8px; font-weight: 700; }
.featured-content h3 a { color: var(--text); }
.featured-content h3 a:hover { color: var(--primary); }
.featured-content p {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ==========================================
   POST GRID & CARDS
   ========================================== */
.posts-section { margin-bottom: 48px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

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

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-image img { transform: scale(1.03); }
.post-image { overflow: hidden; }

.post-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
    letter-spacing: .2px;
}

.post-content h3 {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 8px;
    font-weight: 700;
}

.post-content h3 a { color: var(--text); }
.post-content h3 a:hover { color: var(--primary); }

.excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ==========================================
   SINGLE POST
   ========================================== */
.single-post {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.post-hero {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.single-header { margin-bottom: 32px; }
.single-header .post-category { margin-bottom: 12px; }

.single-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0 16px;
    letter-spacing: -.4px;
}

.post-body {
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
}

.post-body h1, .post-body h2, .post-body h3 {
    color: var(--text);
    margin: 36px 0 16px;
    font-weight: 700;
}

.post-body h2 { font-size: 26px; letter-spacing: -.2px; }
.post-body h3 { font-size: 21px; }
.post-body p { margin-bottom: 20px; }
.post-body ul, .post-body ol { margin: 16px 0; padding-left: 28px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--text); }
.post-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    background: var(--primary-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-body th, .post-body td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
}

.post-body th { background: var(--bg-secondary); font-weight: 600; color: var(--text); }
.post-body tr:hover td { background: var(--bg-secondary); }

.post-body code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.post-body pre {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
}

.post-body pre code { background: none; padding: 0; color: inherit; }

/* ==========================================
   POST TAGS
   ========================================== */
.post-tags {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==========================================
   LANGUAGE VERSIONS
   ========================================== */
.lang-versions {
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.lang-versions h3 {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.lang-link {
    display: inline-block;
    margin: 4px 8px 4px 0;
    padding: 6px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    transition: all var(--transition);
}

.lang-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==========================================
   COMMENTS
   ========================================== */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.comments-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-meta .comment-author { font-weight: 600; font-size: 15px; color: var(--text); }
.comment-meta .comment-date { font-size: 13px; color: var(--text-muted); }
.comment-body { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.comment-form {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
}

.comment-form h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* ==========================================
   RELATED POSTS
   ========================================== */
.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.related-posts h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.related-card img { width: 100%; height: 140px; object-fit: cover; }

.related-card-content { padding: 14px; }
.related-card-content h4 { font-size: 14px; line-height: 1.4; font-weight: 600; }
.related-card-content h4 a { color: var(--text); }
.related-card-content h4 a:hover { color: var(--primary); }
.related-card-content .post-meta { margin-top: 8px; border: none; padding: 0; font-size: 12px; }

/* ==========================================
   SEARCH
   ========================================== */
.search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto 32px;
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 15px;
    outline: none;
    background: var(--bg);
    transition: border-color var(--transition);
}

.search-form input:focus { border-color: var(--primary); }

.search-form button {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--transition);
}

.search-form button:hover { background: var(--primary-hover); }
.search-info { text-align: center; color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; }

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar-widget {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}

.sidebar-widget h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text);
}

.sidebar-categories li, .sidebar-posts li { list-style: none; }

.sidebar-categories li { margin-bottom: 2px; }
.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 10px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.sidebar-categories a:hover { color: var(--primary); background: var(--primary-light); }
.cat-count { color: var(--text-light); font-size: 12px; font-weight: 500; }

.sidebar-posts li { margin-bottom: 4px; }
.sidebar-posts a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 10px;
    border-radius: var(--radius);
    line-height: 1.4;
    transition: all var(--transition);
}

.sidebar-posts a:hover { color: var(--primary); background: var(--primary-light); }
.post-views, .post-date { display: block; font-size: 12px; color: var(--text-light); padding: 0 10px 6px; }

.sidebar-search { display: flex; }
.sidebar-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.sidebar-search input:focus { border-color: var(--primary); }

.sidebar-search button {
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition);
}

.sidebar-search button:hover { background: var(--primary-hover); }

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    transition: all var(--transition);
}

.page-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-dots { display: inline-flex; align-items: center; color: var(--text-light); padding: 0 4px; }

/* ==========================================
   LANGUAGE SWITCHER DROPDOWN
   ========================================== */
.lang-switcher { position: relative; }
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: all var(--transition);
}

.lang-toggle:hover { background: var(--bg-tertiary); }

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 200;
    list-style: none;
    overflow: hidden;
}

.lang-dropdown.show { display: block; }
.lang-dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text);
    transition: all var(--transition);
}

.lang-dropdown li a:hover { background: var(--primary-light); color: var(--primary); }
.lang-dropdown li a.active { background: var(--primary); color: #fff; }

/* ==========================================
   AUTHOR PAGE
   ========================================== */
.author-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
}

.author-avatar { width: 80px; height: 80px; flex-shrink: 0; }

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

.author-info h1 { font-size: 28px; font-weight: 800; }
.author-bio { color: var(--text-secondary); margin-top: 4px; font-size: 15px; }

/* ==========================================
   POST CARD ANIMATION
   ========================================== */
.post-card, .featured-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s ease, transform .4s ease, box-shadow var(--transition-slow);
}

body.js-ready .post-card.loaded, body.js-ready .featured-card.loaded,
body.js-ready .post-card.fade-in, body.js-ready .featured-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.post-card, .featured-card { opacity: 1; transform: translateY(0); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

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

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

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

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #059669; }
.btn-success:hover { background: #047857; }

/* ==========================================
   ERROR PAGE
   ========================================== */
.error-page { text-align: center; padding: 120px 20px; }
.error-page h1 { font-size: 96px; font-weight: 900; color: var(--primary); opacity: .15; line-height: 1; }
.error-page h2 { font-size: 26px; margin: 8px 0 12px; font-weight: 700; }
.error-page p { color: var(--text-secondary); margin-bottom: 32px; font-size: 16px; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--bg-dark);
    color: #a0aec0;
    padding: 56px 0 28px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
}

.footer-col p { font-size: 14px; line-height: 1.7; }

.footer-col a {
    display: block;
    color: #718096;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #4a5568;
}

/* ==========================================
   ADMIN (kept for admin panel)
   ========================================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--bg-dark);
    color: #a0aec0;
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-sidebar a {
    display: block;
    padding: 10px 24px;
    color: #a0aec0;
    font-size: 14px;
    transition: all var(--transition);
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-content { flex: 1; padding: 32px; background: var(--bg-secondary); }

/* ==========================================
   ADMIN COMPONENTS
   ========================================== */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.content-header h1 { font-size: 24px; font-weight: 800; }

.card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { font-weight: 600; background: var(--bg-secondary); }
.table tr:hover td { background: var(--bg-secondary); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-secondary { background: #e5e7eb; color: #374151; }
.badge-warning { background: #fef3c7; color: #92400e; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.media-item { background: var(--bg-secondary); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); }
.media-item img { width: 100%; height: 140px; object-fit: cover; }
.media-info { padding: 10px; }
.media-name { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-size { display: block; font-size: 11px; color: var(--text-light); margin-top: 2px; }

.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--bg); border-radius: var(--radius-lg); padding: 32px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; }

/* ==========================================
   RTL SUPPORT
   ========================================== */
[dir="rtl"] .main-nav .nav-link { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .post-body { text-align: right; }
[dir="rtl"] .breadcrumb li:not(:last-child)::after { content: '/'; }
