/* Custom Help System Styles */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom gradient animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animated {
    background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Search box enhancements */
#search-box:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Card hover effects */
.help-card {
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
}

/* Code blocks styling */
.code-block {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Syntax highlighting */
.code-keyword { color: #9f7aea; }
.code-string { color: #48bb78; }
.code-comment { color: #718096; font-style: italic; }
.code-number { color: #ed8936; }

/* Table of contents */
.toc {
    background-color: #f7fafc;
    border-left: 4px solid #4299e1;
    padding: 1rem;
    margin: 1rem 0;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 0.5rem 0;
}

.toc a {
    color: #4299e1;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Alert boxes */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: #ebf8ff;
    border-color: #4299e1;
    color: #2b6cb0;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #f6ad55;
    color: #c05621;
}

.alert-success {
    background-color: #f0fff4;
    border-color: #48bb78;
    color: #2f855a;
}

.alert-danger {
    background-color: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
}

/* Step-by-step guides */
.step {
    display: flex;
    margin: 2rem 0;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

/* Feature showcase boxes */
.feature-box {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 4px solid;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-box.primary { border-color: #4299e1; }
.feature-box.success { border-color: #48bb78; }
.feature-box.warning { border-color: #f6ad55; }
.feature-box.purple { border-color: #9f7aea; }

/* Premium badge */
.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a202c;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

/* Navigation breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #718096;
}

.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

/* Responsive images */
.help-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

/* Video container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

/* Search result highlighting */
.search-highlight {
    background-color: #fef2e3;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
        margin-right: 0;
        align-self: flex-start;
    }
    
    .help-card {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .feature-box {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}

/* FAQ Specific Styles */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.help-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.help-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.help-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.help-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.help-nav a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

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

.help-section h2 {
    color: #1e40af;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.help-section h2 i {
    margin-right: 0.5rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-item h3 {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-item p, .faq-item ul {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-item ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.faq-item li {
    margin-bottom: 0.25rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.contact-option i {
    color: #3b82f6;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-option h3 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-option p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.help-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.help-footer nav {
    margin-top: 1rem;
}

.help-footer nav a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.help-footer nav a:hover {
    color: #ffffff;
}

/* Step Guide Styling */
.step-guide {
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.step-number {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #4b5563;
    line-height: 1.6;
}

/* Investigation Types */
.investigation-types {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.investigation-type {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.investigation-type:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.investigation-type h3 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.investigation-type h3 i {
    margin-right: 0.5rem;
}

.investigation-type p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.investigation-type ul {
    color: #4b5563;
    line-height: 1.6;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Feature Cards Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

.feature-card i {
    color: #3b82f6;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1e40af;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .help-card {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .feature-box {
        background-color: #2d3748;
        color: #e2e8f0;
    }

    .faq-item {
        background-color: #374151;
        border-color: #4b5563;
    }

    .help-section h2 {
        color: #60a5fa;
        border-color: #4b5563;
    }
}