/*
 * MarkaClick Help Center - Guidex Style
 * Professional Documentation Template
 */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-body: #f8fafc;
    --bg-sidebar: #1e293b;
    --bg-content: #ffffff;
    --bg-card: #ffffff;
    --bg-code: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --sidebar-width: 280px;
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #ffffff;
    --sidebar-active-bg: rgba(99, 102, 241, 0.1);
    --sidebar-active-border: #6366f1;
    --topics-width: 260px;
    --header-height: 64px;
    --header-bg: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-body: #0f172a;
    --bg-sidebar: #0f172a;
    --bg-content: #1e293b;
    --bg-card: #1e293b;
    --bg-code: #0f172a;
    --border-color: #334155;
    --border-light: #1e293b;
    --header-bg: #1e293b;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Header */
.help-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.help-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.theme-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-switch.active {
    background: var(--primary);
}

.theme-toggle-switch.active::after {
    left: 22px;
}

.help-search {
    flex: 1;
    max-width: 400px;
}

.help-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.help-search i.fa-search {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.help-search input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition);
}

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

.help-search input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.search-clear:hover {
    color: var(--text-secondary);
}

.help-breadcrumb-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.help-breadcrumb-header a {
    color: var(--text-secondary);
}

.help-breadcrumb-header a:hover {
    color: var(--primary);
}

.help-breadcrumb-header i {
    font-size: 10px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-admin:hover {
    background: var(--bg-body);
    color: var(--primary);
    border-color: var(--primary);
}

/* Sidebar */
.help-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    overflow-y: auto;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-logo i {
    font-size: 24px;
    color: var(--primary-light);
}

.sidebar-logo span {
    font-weight: 400;
}

.sidebar-logo strong {
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 4px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0 12px;
}

.sidebar-section-header:hover {
    background: rgba(255,255,255,0.05);
}

.sidebar-section.expanded .sidebar-section-header {
    background: rgba(99, 102, 241, 0.1);
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sidebar-text);
    transition: var(--transition);
}

.sidebar-section-title i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    opacity: 0.7;
}

.sidebar-section-header:hover .sidebar-section-title,
.sidebar-section.expanded .sidebar-section-title {
    color: var(--sidebar-text-hover);
}

.sidebar-section-header:hover .sidebar-section-title i,
.sidebar-section.expanded .sidebar-section-title i {
    opacity: 1;
    color: var(--primary-light);
}

.sidebar-arrow {
    font-size: 10px;
    color: var(--sidebar-text);
    opacity: 0.5;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.sidebar-section-header:hover .sidebar-arrow {
    opacity: 0.8;
}

.sidebar-section.expanded .sidebar-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary-light);
}

/* Aktif kategorinin başlığı */
.sidebar-section.active .sidebar-section-title {
    color: var(--primary-light);
    opacity: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.sidebar-item:hover {
    color: var(--sidebar-text-hover);
    background: rgba(255,255,255,0.05);
}

.sidebar-item.active {
    color: var(--sidebar-text-hover);
    background: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active-border);
}

.sidebar-item i:first-child {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

/* Dropdown content */
.sidebar-category {
    padding: 4px 0 8px 0;
    margin: 0 12px;
    border-left: 2px solid rgba(99, 102, 241, 0.3);
    margin-left: 32px;
    overflow: hidden;
}

.sidebar-section.expanded {
    margin-bottom: 8px;
}

.sidebar-subitems {
    padding: 4px 0 8px 0;
    background: rgba(0,0,0,0.1);
}

.sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--sidebar-text);
    font-size: 13px;
    transition: var(--transition);
    position: relative;
    border-radius: 6px;
    margin: 2px 0;
}

.sidebar-subitem::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sidebar-text);
    opacity: 0.4;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-subitem:hover {
    color: var(--sidebar-text-hover);
    background: rgba(255,255,255,0.05);
}

.sidebar-subitem:hover::before {
    opacity: 0.8;
}

.sidebar-subitem.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.15);
    font-weight: 600;
}

.sidebar-subitem.active::before {
    background: var(--primary-light);
    opacity: 1;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px var(--primary-light);
}

.badge-new {
    padding: 2px 6px;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: auto;
}

.badge-featured {
    padding: 2px 6px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: auto;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: var(--sidebar-text);
    opacity: 0.6;
}

/* Main Layout */
.help-layout {
    display: flex;
    min-height: 100vh;
    padding-left: var(--sidebar-width);
}

.help-main {
    flex: 1;
    display: flex;
    padding-top: var(--header-height);
}

/* Content */
.help-content {
    flex: 1;
    min-width: 0;
    padding: 32px 48px;
    max-width: calc(100% - var(--topics-width));
}

/* Page Title */
.page-title {
    margin-bottom: 32px;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-title p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Article Container */
.article-container {
    background: var(--bg-content);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.article-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
}

.article-section:last-child {
    border-bottom: none;
}

.article-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.article-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.expand-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.expand-btn:hover {
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* Info Box */
.info-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
}

.info-box-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-box-row:last-child {
    border-bottom: none;
}

.info-box-label {
    width: 140px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-box-value {
    color: var(--text-secondary);
}

/* Article Content */
.article-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-primary);
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.article-content code {
    padding: 2px 6px;
    background: var(--bg-code);
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--primary);
}

.article-content pre {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-content th {
    background: var(--bg-body);
    font-weight: 600;
    color: var(--text-primary);
}

.article-content td {
    color: var(--text-secondary);
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Topics Sidebar */
.help-topics {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    width: var(--topics-width);
    height: fit-content;
    padding: 0 24px 32px 0;
    flex-shrink: 0;
}

.topics-box {
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.topics-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.topics-list {
    list-style: none;
}

.topics-list li {
    margin-bottom: 4px;
}

.topics-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.topics-list a:hover {
    color: var(--text-primary);
    background: var(--bg-body);
}

.topics-list a.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    border-left-color: var(--primary);
}

/* Home Page */
.home-hero {
    text-align: center;
    padding: 48px 0;
    margin-bottom: 48px;
}

.home-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.home-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition);
    cursor: pointer;
}

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

.category-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.category-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.article-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.article-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.article-list-content {
    flex: 1;
    min-width: 0;
}

.article-list-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.article-list-content p {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-list-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.article-list-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured Section */
.featured-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.featured-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.featured-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.featured-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.featured-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.featured-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Core Features */
.core-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.core-feature {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.core-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-feature-icon i {
    font-size: 40px;
}

.core-feature h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Search Results */
.search-results-header {
    margin-bottom: 24px;
}

.search-results-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-results-header p {
    color: var(--text-secondary);
}

.search-result-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--primary);
}

.search-result-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-result-item h3 a {
    color: var(--text-primary);
}

.search-result-item h3 a:hover {
    color: var(--primary);
}

.search-result-item p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Breadcrumb */
.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.help-breadcrumb a {
    color: var(--text-secondary);
}

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

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

.help-breadcrumb i {
    font-size: 10px;
    color: var(--text-muted);
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.difficulty-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.difficulty-kolay {
    background: #dcfce7;
    color: #166534;
}

.difficulty-orta {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-ileri {
    background: #fee2e2;
    color: #991b1b;
}

/* Article Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.article-nav-item {
    padding: 20px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.article-nav-item:hover {
    border-color: var(--primary);
}

.article-nav-item.prev {
    text-align: left;
}

.article-nav-item.next {
    text-align: right;
}

.article-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.article-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 300;
    box-shadow: var(--shadow-lg);
}

.sidebar-close {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1280px) {
    .help-topics {
        display: none;
    }
    .help-content {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }
    .help-content {
        padding: 24px 32px;
    }
    .core-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .help-layout {
        padding-left: 0;
    }
    .help-header {
        left: 0;
        padding: 0 16px;
    }
    .help-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .help-sidebar.open {
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 6px;
        color: white;
        cursor: pointer;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .help-content {
        padding: 20px 16px;
    }
    .page-title h1 {
        font-size: 24px;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .article-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-list-meta {
        margin-top: 12px;
    }
    .core-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .article-nav {
        grid-template-columns: 1fr;
    }
    .help-search {
        display: none;
    }
    .btn-admin span {
        display: none;
    }
    .back-to-top {
        bottom: 90px;
    }
}

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

.bg-primary { background: var(--primary); }
.bg-success { background: #10b981; }
.bg-warning { background: #f59e0b; }
.bg-danger { background: #ef4444; }
.bg-info { background: #3b82f6; }
.bg-purple { background: #8b5cf6; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Alert Boxes */
.alert-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-box i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-box-content {
    flex: 1;
}

.alert-box-content strong {
    display: block;
    margin-bottom: 4px;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background: #fefce8;
    border: 1px solid #fde047;
    color: #a16207;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Steps */
.steps {
    counter-reset: step;
    margin: 24px 0;
}

.step {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    counter-increment: step;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-number::before {
    content: counter(step);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.quick-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quick-link i {
    color: var(--text-muted);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.image-gallery img {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.image-gallery img:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}
