/**
 * Help Pages CSS
 * Styles for individual help pages (not the main index)
 */

/* Use template CSS variables with fallbacks */
:root {
    --help-border: var(--color-border, #e5e7eb);
    --help-foreground: var(--color-text, #1a1f3a);
    --help-muted-foreground: var(--color-text-muted, #6b7280);
    --help-card: var(--color-bg-light, #ffffff);
    --help-primary: var(--color-primary, #F98E13);
    --help-primary-foreground: var(--color-text, #ffffff);
    --help-muted: var(--color-bg-light, #f5f5f5);
    --help-accent: var(--color-bg-light, #fff5e6);
}

.help-page {
    padding: 2rem 0;
}

.help-page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--help-border);
}

.help-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--help-foreground);
    margin-bottom: 1rem;
}

.help-page-description {
    font-size: 1.125rem;
    color: var(--help-muted-foreground);
    line-height: 1.7;
}

.help-section {
    margin-bottom: 3rem;
}

.help-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--help-foreground);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--help-border);
}

.help-step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: hsl(var(--help-card));
    border: 1px solid hsl(var(--help-border));
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.help-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--help-primary));
    color: hsl(var(--help-primary-foreground));
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.help-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--help-foreground));
    margin-bottom: 0.75rem;
}

.help-step-content {
    color: hsl(var(--help-muted-foreground));
    line-height: 1.7;
}

.help-step-content ul,
.help-step-content ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.help-step-content li {
    margin-bottom: 0.5rem;
}

.help-image-placeholder {
    margin: 1.5rem 0;
    padding: 3rem 2rem;
    background: var(--help-muted);
    border: 2px dashed var(--help-border);
    border-radius: 0.5rem;
    text-align: center;
}

.help-image-placeholder .placeholder-content i {
    font-size: 3rem;
    color: var(--help-muted-foreground);
    margin-bottom: 1rem;
}

.help-image-placeholder .placeholder-content p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--help-foreground);
    margin-bottom: 0.5rem;
}

.help-image-placeholder .placeholder-content small {
    color: var(--help-muted-foreground);
}

.help-tip {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--help-accent);
    border-left: 4px solid var(--help-primary);
    border-radius: 0.375rem;
}

.help-tip-title {
    font-weight: 600;
    color: var(--help-foreground);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-tip-title i {
    color: var(--help-primary);
}

.help-tip-content {
    color: var(--help-muted-foreground);
    line-height: 1.7;
}

.help-related-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--help-border);
}

.help-related-links-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--help-foreground);
    margin-bottom: 1rem;
}

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

.help-related-links-list li {
    margin-bottom: 0.75rem;
}

.help-related-links-list a {
    color: var(--help-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.help-related-links-list a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.help-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--help-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.help-navigation.mb-4 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--help-border);
    margin-bottom: 2rem !important;
}

.help-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--help-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.help-nav-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.help-nav-link i {
    font-size: 1.25rem;
}

/* Modal specific styles */
#helpModal .modal-content {
    background-color: var(--color-bg-light, #ffffff) !important;
    color: var(--color-text, #1a1f3a) !important;
    border-color: var(--color-border, #e5e7eb) !important;
}

#helpModal .modal-header {
    background-color: var(--color-bg-light, #ffffff) !important;
    border-bottom-color: var(--color-border, #e5e7eb) !important;
    color: var(--color-text, #1a1f3a) !important;
}

#helpModal .modal-header .modal-title {
    color: var(--color-text, #1a1f3a) !important;
}

#helpModal .modal-body {
    background-color: var(--color-bg-light, #ffffff) !important;
    color: var(--color-text, #1a1f3a) !important;
}

#helpModal .modal-footer {
    background-color: var(--color-bg-light, #f8f9fa) !important;
    border-top-color: var(--color-border, #e5e7eb) !important;
}

#helpModalContent {
    padding: 1.5rem !important;
    background-color: var(--color-bg-light, #ffffff) !important;
    color: var(--color-text, #1a1f3a) !important;
}

#helpModalContent .help-page {
    padding: 0;
}

#helpModalContent .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

#helpModalContent .help-page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid hsl(var(--help-border));
}

#helpModalContent .help-page-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

#helpModalContent .help-page-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

#helpModalContent .help-section {
    margin-bottom: 1.5rem;
}

#helpModalContent .help-section-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

#helpModalContent .help-step {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 0.375rem;
}

#helpModalContent .help-step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#helpModalContent .help-step-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#helpModalContent .help-step-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

#helpModalContent .help-image-placeholder {
    padding: 1.5rem 1rem;
    margin: 0.75rem 0;
}

#helpModalContent .help-image-placeholder .placeholder-content i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

#helpModalContent .help-image-placeholder .placeholder-content p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

#helpModalContent .help-image-placeholder .placeholder-content small {
    font-size: 0.8rem;
}

#helpModalContent .help-tip {
    margin: 1rem 0;
    padding: 0.875rem;
}

#helpModalContent .help-tip-title {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
}

#helpModalContent .help-tip-content {
    font-size: 0.875rem;
}

#helpModalContent .help-related-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

#helpModalContent .help-related-links-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

#helpModalContent .help-related-links-list {
    font-size: 0.9rem;
}

#helpModalContent .help-navigation {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--help-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#helpModalContent .help-nav-link {
    font-size: 0.85rem;
    padding: 0.375rem 0;
}

#helpModalContent .help-nav-link i {
    font-size: 0.9rem;
}

/* Ensure proper spacing in modal */
#helpModalContent .help-step-content ul,
#helpModalContent .help-step-content ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
}

#helpModalContent .help-step-content li {
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
}

/* Remove container padding in modal */
#helpModalContent .container.py-4 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .help-page-title {
        font-size: 2rem;
    }

    .help-section-title {
        font-size: 1.5rem;
    }

    .help-step {
        padding: 1rem;
    }

    .help-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .help-nav-link {
        justify-content: center;
    }
}
