/* ====================================================
   Timer Help Center - Page Styles
   A Timer-worthy knowledge base experience
   ==================================================== */

/* ===== Reset & Base ===== */
.timer-help-page {
    margin: 0;
    padding: 0;
    background: #fafbfc;
    min-height: 100vh;
    color: var(--timer-gray-700);
}

.timer-help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.timer-help-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--timer-gray-100);
    z-index: var(--timer-z-fixed);
}

.timer-help-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-help-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--timer-gray-800);
}

.timer-help-logo img {
    height: 32px;
    width: auto;
}

.timer-help-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.timer-help-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--timer-gray-600);
    transition: color 0.2s ease;
}

.timer-help-nav a:hover,
.timer-help-nav a.active {
    color: var(--timer-primary);
}

.timer-help-login-btn {
    padding: 8px 20px;
    background: var(--timer-primary);
    color: white !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.timer-help-login-btn:hover {
    background: var(--timer-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(157, 62, 245, 0.3);
}

/* ===== Main Content ===== */
.timer-help-main {
    padding-top: 64px;
}

/* ===== Hero Section (Home) ===== */
.timer-help-hero {
    position: relative;
    padding: 80px 24px;
    text-align: center;
    overflow: hidden;
}

.timer-help-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(157, 62, 245, 0.08) 0%,
        rgba(78, 205, 196, 0.05) 50%,
        rgba(99, 102, 241, 0.08) 100%);
    z-index: 0;
}

.timer-help-hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 62, 245, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.timer-help-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.timer-help-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--timer-gray-900);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.timer-help-hero p {
    font-size: 18px;
    color: var(--timer-gray-600);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.timer-help-search-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.timer-help-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--timer-gray-400);
    font-size: 18px;
}

.timer-help-search-box input {
    width: 100%;
    padding: 18px 24px 18px 54px;
    font-size: 16px;
    border: 2px solid var(--timer-gray-200);
    border-radius: 16px;
    background: white;
    color: var(--timer-gray-800);
    transition: all 0.25s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.timer-help-search-box input:focus {
    outline: none;
    border-color: var(--timer-primary);
    box-shadow: 0 8px 32px rgba(157, 62, 245, 0.12);
}

.timer-help-search-box input::placeholder {
    color: var(--timer-gray-400);
}

/* ===== Categories Section ===== */
.timer-help-categories {
    padding: 60px 0;
}

.timer-help-categories h2,
.timer-help-popular h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--timer-gray-800);
    margin: 0 0 28px 0;
}

.timer-help-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.timer-help-category-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: white;
    border: 1px solid var(--timer-gray-100);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-help-category-card:hover {
    border-color: var(--timer-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(157, 62, 245, 0.12);
}

.timer-help-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.timer-help-category-icon i {
    font-size: 24px;
    color: white;
}

.timer-help-category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--timer-gray-800);
    margin: 0 0 8px 0;
}

.timer-help-category-card p {
    font-size: 14px;
    color: var(--timer-gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ===== Popular Articles ===== */
.timer-help-popular {
    padding: 0 0 80px 0;
}

.timer-help-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timer-help-article-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: white;
    border: 1px solid var(--timer-gray-100);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.timer-help-article-item:hover {
    border-color: var(--timer-primary);
    background: rgba(157, 62, 245, 0.02);
}

.timer-help-article-item i:first-child {
    font-size: 18px;
    color: var(--timer-primary);
}

.timer-help-article-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--timer-gray-700);
}

.timer-help-article-item i:last-child {
    font-size: 12px;
    color: var(--timer-gray-400);
    transition: transform 0.2s ease;
}

.timer-help-article-item:hover i:last-child {
    transform: translateX(4px);
    color: var(--timer-primary);
}

/* ===== Topic Page Styles ===== */
.timer-help-breadcrumb {
    padding: 16px 0;
    background: white;
    border-bottom: 1px solid var(--timer-gray-100);
}

.timer-help-breadcrumb .timer-help-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.timer-help-breadcrumb a {
    color: var(--timer-gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.timer-help-breadcrumb a:hover {
    color: var(--timer-primary);
}

.timer-help-breadcrumb i {
    font-size: 10px;
    color: var(--timer-gray-400);
}

.timer-help-breadcrumb span {
    color: var(--timer-gray-700);
    font-weight: 500;
}

/* Topic Header */
.timer-help-topic-header {
    padding: 48px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.timer-help-topic-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.timer-help-topic-header .timer-help-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.timer-help-topic-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-help-topic-icon i {
    font-size: 28px;
}

.timer-help-topic-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.timer-help-topic-header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
}

/* Content Wrapper (Sidebar + Article) */
.timer-help-content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding: 48px 0 80px 0;
}

/* Sidebar TOC */
.timer-help-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
}

.timer-help-toc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timer-help-toc a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--timer-gray-600);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.timer-help-toc a:hover {
    background: var(--timer-gray-50);
    color: var(--timer-gray-800);
}

.timer-help-toc a.active {
    background: rgba(157, 62, 245, 0.08);
    color: var(--timer-primary);
    border-left-color: var(--timer-primary);
    font-weight: 500;
}

.timer-help-toc a.toc-h3 {
    padding-left: 28px;
    font-size: 13px;
}

/* Article Content */
.timer-help-article {
    background: white;
    border: 1px solid var(--timer-gray-100);
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.timer-help-section {
    margin-bottom: 48px;
}

.timer-help-section:last-child {
    margin-bottom: 0;
}

.timer-help-article h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--timer-gray-800);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--timer-gray-100);
}

.timer-help-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--timer-gray-800);
    margin: 32px 0 12px 0;
}

.timer-help-article p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--timer-gray-600);
    margin: 0 0 16px 0;
}

.timer-help-article ul,
.timer-help-article ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.timer-help-article li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--timer-gray-600);
    margin-bottom: 8px;
}

.timer-help-article li strong {
    color: var(--timer-gray-700);
}

/* Highlight Box */
.timer-help-highlight {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(157, 62, 245, 0.08), rgba(99, 102, 241, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--timer-primary);
    margin: 24px 0;
}

.timer-help-highlight > i {
    font-size: 20px;
    color: var(--timer-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.timer-help-highlight strong {
    display: block;
    color: var(--timer-gray-800);
    margin-bottom: 4px;
}

.timer-help-highlight p {
    margin: 0;
    font-size: 14px;
}

/* Features Grid */
.timer-help-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.timer-help-feature {
    padding: 20px;
    background: var(--timer-gray-50);
    border-radius: 12px;
    text-align: center;
}

.timer-help-feature i {
    font-size: 24px;
    color: var(--timer-primary);
    margin-bottom: 12px;
}

.timer-help-feature h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--timer-gray-800);
    margin: 0 0 6px 0;
}

.timer-help-feature p {
    font-size: 13px;
    color: var(--timer-gray-500);
    margin: 0;
}

/* Steps List */
.timer-help-steps {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    counter-reset: none;
}

.timer-help-steps li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--timer-gray-100);
    margin: 0;
}

.timer-help-steps li:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--timer-primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--timer-gray-800);
    margin: 0 0 6px 0;
}

.step-content p {
    margin: 0;
    font-size: 14px;
}

/* Templates Grid */
.timer-help-templates-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.timer-help-template {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--timer-gray-50);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.timer-help-template:hover {
    background: var(--timer-gray-100);
}

.template-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template-icon i {
    font-size: 18px;
    color: white;
}

.template-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--timer-gray-800);
    margin: 0 0 2px 0;
}

.template-info p {
    font-size: 13px;
    color: var(--timer-gray-500);
    margin: 0;
}

/* Tips */
.timer-help-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timer-help-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
}

.timer-help-tip i {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.timer-help-tip p {
    margin: 0;
    font-size: 14px;
}

/* FAQ */
.timer-help-faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timer-help-faq-item {
    padding: 20px 24px;
    background: var(--timer-gray-50);
    border-radius: 12px;
}

.timer-help-faq-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--timer-gray-800);
    margin: 0 0 10px 0;
}

.timer-help-faq-item h4 i {
    color: var(--timer-primary);
    font-size: 16px;
}

.timer-help-faq-item p {
    margin: 0;
    font-size: 14px;
    padding-left: 26px;
}

/* ===== Footer ===== */
.timer-help-footer {
    background: var(--timer-gray-900);
    color: white;
    padding: 60px 0 0 0;
}

.timer-help-footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-help-footer-brand {
    max-width: 280px;
}

.timer-help-footer-brand img {
    height: 36px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.timer-help-footer-brand p {
    font-size: 14px;
    color: var(--timer-gray-400);
    line-height: 1.6;
    margin: 0;
}

.timer-help-footer-links {
    display: flex;
    gap: 80px;
}

.timer-help-footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-help-footer-col a {
    display: block;
    font-size: 14px;
    color: var(--timer-gray-400);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.timer-help-footer-col a:hover {
    color: white;
}

.timer-help-footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.timer-help-footer-bottom p {
    font-size: 13px;
    color: var(--timer-gray-500);
    margin: 0;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
    .timer-help-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timer-help-content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .timer-help-sidebar {
        position: static;
        display: none;
    }

    .timer-help-article {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .timer-help-header-inner {
        padding: 0 16px;
    }

    .timer-help-nav a:not(.timer-help-login-btn) {
        display: none;
    }

    .timer-help-hero {
        padding: 60px 16px;
    }

    .timer-help-hero h1 {
        font-size: 28px;
    }

    .timer-help-hero p {
        font-size: 16px;
    }

    .timer-help-search-box input {
        padding: 16px 20px 16px 48px;
        font-size: 15px;
    }

    .timer-help-categories-grid {
        grid-template-columns: 1fr;
    }

    .timer-help-topic-header {
        padding: 32px 16px;
    }

    .timer-help-topic-header h1 {
        font-size: 24px;
    }

    .timer-help-article {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .timer-help-article h2 {
        font-size: 20px;
    }

    .timer-help-features-grid {
        grid-template-columns: 1fr;
    }

    .timer-help-footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .timer-help-footer-links {
        flex-direction: column;
        gap: 32px;
    }
}
