/* ===========================
   Help & Support Page Styles
   (Authenticated Users Only)
=========================== */

/* Hero Section */
.help-hero-section {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid var(--border-primary);
    box-shadow: none;
}

.help-hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.help-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero buttons container - centered in card */
.help-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Primary: View Features and App Guide - solid purple */
.help-feature-tour-btn {
    background-color: var(--brand-purple-dark);
    color: var(--white);
    border: none;
    border-radius: 0;
    padding: 14px 28px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: none;
}

.help-feature-tour-btn:hover {
    background-color: var(--brand-purple-hover);
    transform: translateY(-1px);
    box-shadow: var(--card-hover-shadow);
}

.help-feature-tour-btn:active {
    transform: translateY(0);
}

/* Secondary: Redo Guided Tour - outline style */
.help-restart-tour-btn {
    background-color: transparent;
    color: var(--brand-purple-dark);
    border: 2px solid var(--brand-purple-dark);
    border-radius: 0;
    padding: 12px 26px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.help-restart-tour-btn:hover {
    background-color: var(--brand-purple-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.help-restart-tour-btn:active {
    transform: translateY(0);
}

/* Section Cards */
/* Section container - handles max-width and padding */
.help-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Desktop padding */
}

.help-section-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-subtle, var(--border-primary));
    border-radius: 0;
    box-shadow: none;
    padding: 32px;
    margin-bottom: 32px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.help-section-card:hover {
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(180, 100, 255, 0.3);
}

.help-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.help-section-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Bank Guides Section */
.help-bank-guide-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-bank-guide-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(180, 100, 255, 0.3);
}

.help-bank-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.help-bank-guide-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
}

.help-bank-guide-icon {
    font-size: 1.125rem;
    color: var(--brand-purple);
    transition: transform 0.2s ease;
}

.help-bank-guide-icon.expanded {
    transform: rotate(180deg);
}

.help-bank-guide-steps {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-secondary);
}

.help-bank-guide-steps ol {
    margin: 0;
    padding-left: 24px;
}

.help-bank-guide-steps li {
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.6;
}

.help-bank-guide-support-link {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-secondary);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.help-bank-guide-support-link a {
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 500;
}

.help-bank-guide-support-link a:hover {
    text-decoration: underline;
}

/* Contact Support Section */
.help-contact-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.help-contact-btn {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 0;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.help-contact-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--brand-purple);
    transform: translateY(-1px);
    box-shadow: var(--card-hover-shadow);
}

.help-contact-btn-primary {
    background-color: var(--brand-purple-dark);
    color: var(--white);
    border-color: var(--brand-purple-dark);
}

.help-contact-btn-primary:hover {
    background-color: var(--brand-purple-hover);
    border-color: var(--brand-purple-hover);
    color: var(--white);
}

.help-contact-btn-icon {
    font-size: 1.125rem;
}

/* What's New Section */
.whats-new-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.whats-new-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-style: italic;
}

.whats-new-releases {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Show more release content before scrolling */
.whats-new-releases-scroll {
    max-height: 26rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.whats-new-releases-scroll::-webkit-scrollbar {
    width: 6px;
}

.whats-new-releases-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.whats-new-releases-scroll::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 3px;
}

.whats-new-release {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.whats-new-release:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.whats-new-release:first-child {
    padding-top: 0;
}

.whats-new-release-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.whats-new-version-badge {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0;
    padding: 3px 10px;
}

.whats-new-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-purple-dark);
    background-color: color-mix(in srgb, var(--brand-purple) 12%, transparent);
    border-radius: 0;
    padding: 2px 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.02em;
}

.whats-new-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.whats-new-change-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 4px;
}

.whats-new-change-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.whats-new-change-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    min-width: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-hero-section {
        padding: 40px 24px;
    }
    
    .help-hero-title {
        font-size: 1.75rem;
    }
    
    .help-hero-subtitle {
        font-size: 1rem;
    }
    
    /* Remove container padding on mobile for full-width cards */
    .help-section-container {
        padding: 0 !important;
    }
    
    .help-section-card {
        padding: 20px;
        border-radius: 0; /* Edge-to-edge on mobile */
        border-left: none;
        border-right: none;
    }
    
    .help-section-title {
        font-size: 1.5rem;
    }
    
    .help-contact-buttons {
        flex-direction: column;
    }
    
    .help-contact-btn {
        width: 100%;
        justify-content: center;
    }

    .whats-new-title {
        font-size: 1.5rem;
    }

    .whats-new-release {
        padding: 16px 0;
    }

    .whats-new-change-item {
        font-size: 0.9rem;
    }

    .whats-new-releases-scroll {
        max-height: 22rem;
    }
}

