/**
 * Help Center Styles
 *
 * Two-column layout with sidebar navigation and article content.
 * Uses existing CSS variables from styles.css for consistency.
 */

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.help-container {
    display: flex;
    min-height: calc(100vh - 180px); /* Account for nav and footer */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.help-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--bg-white);
    border-right: 1px solid #E5E5E5;
    padding: 40px 0;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
}

.help-sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 16px;
}

.help-sidebar-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.help-sidebar-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.help-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-nav-item {
    margin: 0;
}

.help-nav-link {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

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

.help-nav-link.active {
    background: var(--warm-peach);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Mobile sidebar toggle button */
.help-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    margin-bottom: 20px;
    text-align: left;
}

.help-sidebar-toggle::after {
    content: '▼';
    float: right;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.help-sidebar-toggle.open::after {
    transform: rotate(180deg);
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.help-content {
    flex: 1;
    padding: 40px 60px;
    max-width: 900px;
    background: var(--bg-white);
}

.help-article {
    display: none;
}

.help-article.active {
    display: block;
}

.help-article h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
    line-height: 1.2;
}

.help-article-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--secondary-color);
}

.help-article h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 40px 0 16px;
}

.help-article h2:first-of-type {
    margin-top: 0;
}

.help-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 28px 0 12px;
}

.help-article p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.help-article ul,
.help-article ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.help-article li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 8px;
}

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

.help-article a:hover {
    text-decoration: none;
}

/* Highlight boxes for important information */
.help-highlight {
    background: var(--warm-amber);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.help-highlight p {
    margin: 0;
}

.help-highlight strong {
    color: var(--primary-color);
}

/* Info boxes (blue tint) */
.help-info {
    background: #E8F4FD;
    border-left: 4px solid #2196F3;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.help-info p {
    margin: 0;
}

/* Tip boxes (green tint) */
.help-tip {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.help-tip p {
    margin: 0;
}

/* ============================================
   PRICING TABLE
   ============================================ */

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.pricing-table th,
.pricing-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
}

.pricing-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table .price {
    font-weight: 600;
    color: var(--primary-color);
}

.pricing-table .best-value {
    background: var(--warm-peach);
}

.pricing-table .best-value td:first-child::after {
    content: ' ★';
    color: var(--primary-color);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-section {
    margin: 24px 0;
}

.faq-item {
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #EFEFEF;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-light);
    transition: transform 0.3s ease, background 0.2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--primary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 20px;
    border-top: 1px solid #E5E5E5;
}

.faq-answer-content p {
    margin: 0 0 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   STEP-BY-STEP GUIDES
   ============================================ */

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.steps-list li {
    position: relative;
    padding-left: 56px;
    margin-bottom: 24px;
    counter-increment: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.steps-list li strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
}

.feature-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-card {
    background: linear-gradient(135deg, var(--warm-peach) 0%, var(--warm-coral) 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 32px 0;
}

.contact-card h3 {
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 0 20px;
}

.contact-email {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s ease;
}

.contact-email:hover {
    background: #C04018;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .help-sidebar {
        width: 240px;
        min-width: 240px;
    }

    .help-content {
        padding: 32px 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .help-container {
        flex-direction: column;
        min-height: auto;
    }

    .help-sidebar {
        width: 100%;
        min-width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #E5E5E5;
        padding: 20px;
        max-height: none;
    }

    .help-sidebar-header {
        display: none;
    }

    .help-sidebar-toggle {
        display: block;
    }

    .help-nav {
        display: none;
        background: var(--bg-light);
        border-radius: 8px;
        padding: 8px 0;
        margin-top: 12px;
    }

    .help-nav.open {
        display: block;
    }

    .help-nav-link {
        padding: 14px 20px;
        border-left: none;
        border-radius: 0;
    }

    .help-nav-link.active {
        border-left: none;
        background: var(--warm-peach);
    }

    .help-content {
        padding: 24px 20px;
    }

    .help-article h1 {
        font-size: 28px;
    }

    .help-article h2 {
        font-size: 20px;
    }

    .pricing-table {
        font-size: 14px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
    }

    .steps-list li {
        padding-left: 48px;
    }

    .steps-list li::before {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .help-content {
        padding: 20px 16px;
    }

    .help-article h1 {
        font-size: 24px;
    }

    .faq-question {
        padding: 14px 16px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .contact-card {
        padding: 24px 20px;
    }
}
