/* Help Page Styles */

/* CSS Variables for Help Page */
:root {
    --font-family: 'Vazirmatn', sans-serif;
    
    /* Light Theme */
    --bg-color-light: #fdf2f2;
    --header-bg-light: rgba(255, 255, 255, 0.7);
    --card-bg-light: #ffffff;
    --text-primary-light: #333333;
    --text-secondary-light: #555555;
    --text-tertiary-light: #777777;
    --accent-color-light: #c9184a;
    --accent-hover-light: #a0153a;
    --accent-secondary-light: #e91e63;
    --bg-tertiary-light: #f8f9fa;
    --accent-glow-light: rgba(201, 24, 74, 0.1);
    --border-color-light: #fde0e0;
    --hover-bg-light: #f8f9fa;
    --success-color-light: #22c55e;
    --info-color-light: #3b82f6;
    --warning-color-light: #f59e0b;
    --error-color-light: #ef4444;

    /* Dark Theme */
    --bg-color-dark: #121212;
    --header-bg-dark: rgba(33, 37, 41, 0.8);
    --card-bg-dark: #1e1e1e;
    --text-primary-dark: #e9ecef;
    --text-secondary-dark: #adb5bd;
    --text-tertiary-dark: #6c757d;
    --accent-color-dark: #f77f00;
    --accent-hover-dark: #d96a00;
    --accent-secondary-dark: #ff6b35;
    --bg-tertiary-dark: #2d3748;
    --accent-glow-dark: rgba(247, 127, 0, 0.15);
    --border-color-dark: #343a40;
    --hover-bg-dark: #2d3748;
    --success-color-dark: #22c55e;
    --info-color-dark: #3b82f6;
    --warning-color-dark: #f59e0b;
    --error-color-dark: #ef4444;
}

/* Base Variables */
:root {
    --bg-color: var(--bg-color-light);
    --header-bg: var(--header-bg-light);
    --card-bg: var(--card-bg-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-tertiary: var(--text-tertiary-light);
    --accent-color: var(--accent-color-light);
    --accent-hover: var(--accent-hover-light);
    --accent-secondary: var(--accent-secondary-light);
    --bg-tertiary: var(--bg-tertiary-light);
    --accent-glow: var(--accent-glow-light);
    --border-color: var(--border-color-light);
    --hover-bg: var(--hover-bg-light);
    --success-color: var(--success-color-light);
    --info-color: var(--info-color-light);
    --warning-color: var(--warning-color-light);
    --error-color: var(--error-color-light);
}

body[data-theme='dark'] {
    --bg-color: var(--bg-color-dark);
    --header-bg: var(--header-bg-dark);
    --card-bg: var(--card-bg-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-tertiary: var(--text-tertiary-dark);
    --accent-color: var(--accent-color-dark);
    --accent-hover: var(--accent-hover-dark);
    --accent-secondary: var(--accent-secondary-dark);
    --bg-tertiary: var(--bg-tertiary-dark);
    --accent-glow: var(--accent-glow-dark);
    --border-color: var(--border-color-dark);
    --hover-bg: var(--hover-bg-dark);
    --success-color: var(--success-color-dark);
    --info-color: var(--info-color-dark);
    --warning-color: var(--warning-color-dark);
    --error-color: var(--error-color-dark);
}

/* Base Body Styles */
body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

/* Portal Container */
.portal-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .portal-container {
        padding-bottom: 0;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
}

.page-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.header-text {
    text-align: center;
    margin-top: 1rem;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.header-actions {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.back-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    opacity: 0.9;
    visibility: visible;
}

#page-theme-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

#page-theme-toggle:hover {
    background: var(--accent-hover-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 127, 0.3);
}

body[data-theme='dark'] #page-theme-toggle:hover {
    background: var(--accent-hover-dark);
}

#page-theme-toggle i {
    font-size: 1.1rem;
}

#page-theme-toggle .fa-moon {
    display: none;
}

body[data-theme='dark'] #page-theme-toggle .fa-sun {
    display: none;
}

body[data-theme='dark'] #page-theme-toggle .fa-moon {
    display: inline-block;
}

.back-btn:hover {
    background: var(--accent-hover-light) !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 127, 0.3);
}

body[data-theme='dark'] .back-btn:hover {
    background: var(--accent-hover-dark) !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
}

/* Platform Overview */
.platform-overview {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.platform-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.overview-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.overview-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--hover-bg);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Help Navigation */
.help-nav {
    margin-bottom: 2rem;
}

.nav-tabs {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
    overflow-x: auto;
    gap: 0.5rem;
}

.nav-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-tab:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 127, 0.3);
}

/* Help Content */
.help-content {
    position: relative;
}

.help-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.help-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Help Steps */
.help-steps {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.step-item:hover::before {
    opacity: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(220, 38, 127, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-tips {
    background: var(--hover-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-right: 4px solid var(--accent-color);
}

.step-tips h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-tips ul, .step-tips ol {
    margin: 0;
    padding-right: 1.5rem;
}

.step-tips li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.step-tips strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Simple Header */
.simple-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.theme-toggle {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.theme-toggle:hover {
    background: var(--accent-hover-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 127, 0.3);
}

body[data-theme='dark'] .theme-toggle:hover {
    background: var(--accent-hover-dark);
}

.theme-toggle i {
    font-size: 1.1rem;
}

.theme-toggle .fa-moon {
    display: none;
}

body[data-theme='dark'] .theme-toggle .fa-sun {
    display: none;
}

body[data-theme='dark'] .theme-toggle .fa-moon {
    display: inline-block;
}

/* Footer Styles */
.copyright-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info p {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.contact-info strong {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.footer-bottom strong {
    color: var(--text-primary);
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-hover-light);
}

body[data-theme='dark'] .footer-link:hover {
    color: var(--accent-hover-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .header-actions {
        position: static;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .header-content {
        padding: 0 1rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .platform-overview {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .overview-content h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .nav-tab {
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .step-item {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        align-self: center;
    }

    .step-content h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .step-tips {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.step-item {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }
