/* NovaSupport Help Center Styles */

/* CSS Variables */
:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --secondary: #1E293B;
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --background: #FFFFFF;
    --background-alt: #F8FAFC;
    --border: #E2E8F0;
    --text: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    color: var(--secondary);
}

.logo-text span {
    color: var(--primary);
}

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

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--border);
}

.search-btn .shortcut {
    background: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-links a {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-link {
    color: var(--text);
}

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

.signup-link {
    background: var(--primary);
    color: var(--white);
}

.signup-link:hover {
    background: var(--primary-dark);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.sidebar {
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
    padding: 0 20px;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 12px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 2px;
}

.sidebar-links a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    transition: all 0.15s ease;
}

.sidebar-links a:hover {
    background: var(--background-alt);
    color: var(--primary);
}

.sidebar-links a.active {
    background: var(--primary);
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 40px 48px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 48px 0 60px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
}

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

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

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

/* Info Section */
.info-section {
    padding: 32px 0;
}

.info-section h2 {
    margin-bottom: 16px;
}

.info-section p {
    color: var(--text-light);
    max-width: 700px;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 16px;
}

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

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #94A3B8;
    font-size: 0.875rem;
    margin-top: 16px;
    max-width: 280px;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CBD5E1;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    text-align: center;
    color: #64748B;
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    margin: 5px 0;
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        display: block;
        transform: translateX(0);
    }
    
    .main-content {
        padding: 24px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 16px;
    }
    
    .search-btn .shortcut {
        display: none;
    }
    
    .auth-links a {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 32px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #14B8A6;
    --primary-dark: #0D9488;
    --primary-light: #2DD4BF;
    --secondary: #F1F5F9;
    --accent: #60A5FA;
    --accent-light: #93C5FD;
    --background: #0F172A;
    --background-alt: #1E293B;
    --border: #334155;
    --text: #E2E8F0;
    --text-light: #94A3B8;
    --white: #1E293B;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Dark Mode Header */
[data-theme="dark"] .header {
    background: var(--background);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .logo-text {
    color: var(--secondary);
}

[data-theme="dark"] .search-btn {
    background: var(--background-alt);
    border-color: var(--border);
    color: var(--text-light);
}

[data-theme="dark"] .search-btn:hover {
    background: var(--border);
}

[data-theme="dark"] .search-btn .shortcut {
    background: var(--background);
}

[data-theme="dark"] .login-link {
    color: var(--text);
}

[data-theme="dark"] .login-link:hover {
    color: var(--primary);
}

/* Dark Mode Sidebar */
[data-theme="dark"] .sidebar {
    background: var(--background);
    border-right-color: var(--border);
}

[data-theme="dark"] .sidebar-links a:hover {
    background: var(--background-alt);
}

[data-theme="dark"] .sidebar-links a.active {
    background: var(--primary);
    color: var(--white);
}

/* Dark Mode Main Content */
[data-theme="dark"] .hero {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .hero h1 {
    color: var(--secondary);
}

[data-theme="dark"] .hero p {
    color: var(--text-light);
}

[data-theme="dark"] .hero-badge {
    background: var(--background-alt);
    border-color: var(--border);
}

[data-theme="dark"] .quick-link {
    background: var(--background-alt);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .quick-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .info-section h2 {
    color: var(--secondary);
}

[data-theme="dark"] .info-section p {
    color: var(--text-light);
}

/* Dark Mode Article Page */
[data-theme="dark"] .article-header {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .article-meta {
    color: var(--text-light);
}

[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3 {
    color: var(--secondary);
}

[data-theme="dark"] .article-content p {
    color: var(--text-light);
}

[data-theme="dark"] .article-content ul,
[data-theme="dark"] .article-content ol {
    color: var(--text-light);
}

[data-theme="dark"] .article-content code {
    background: var(--background-alt);
    border-color: var(--border);
}

[data-theme="dark"] .article-content pre {
    background: var(--background-alt);
    border-color: var(--border);
}

[data-theme="dark"] .article-content blockquote {
    background: var(--background-alt);
    border-left-color: var(--primary);
}

[data-theme="dark"] .article-content img {
    border-color: var(--border);
}

/* Dark Mode Footer */
[data-theme="dark"] .footer {
    background: #020617;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--background-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Article Page Styles */
.article-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s ease;
}

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

.article-header h1 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-name {
    font-weight: 500;
    color: var(--text);
}

.article-author-role {
    color: var(--text-light);
}

.article-content {
    max-width: 720px;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-light);
    line-height: 1.7;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content code {
    background: var(--background-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    border: 1px solid var(--border);
}

.article-content pre {
    background: var(--background-alt);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.article-content pre code {
    background: none;
    padding: 0;
    border: none;
}

.article-content blockquote {
    background: var(--background-alt);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    border: 1px solid var(--border);
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

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

.article-cta {
    margin-top: 48px;
    padding: 24px;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.article-cta h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.article-cta p {
    margin-bottom: 16px;
}

/* Responsive adjustments for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}