/* ===== Pages Shared Styles ===== */

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 124, 247, 0.1) 0%, transparent 70%);
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.content-card h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 124, 247, 0.3);
}

.content-card h3 {
    color: var(--primary-light);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-card ul,
.content-card ol {
    margin-bottom: 20px;
    padding-right: 25px;
}

.content-card li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-card ul li::marker {
    color: var(--primary);
}

.content-card ol li::marker {
    color: var(--primary);
    font-weight: 600;
}

/* Contact Info Box */
.contact-info {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 8px;
}

/* Info Boxes */
.info-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 20px 0;
    border-right: 4px solid var(--primary);
}

.info-box.warning {
    border-right-color: var(--warning);
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Policy Table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.policy-table th,
.policy-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.policy-table td {
    color: var(--text-secondary);
}

.policy-table tr:hover td {
    background: rgba(139, 124, 247, 0.05);
}

/* Steps List */
.steps-list {
    margin: 30px 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.step-item:hover {
    transform: translateX(-5px);
    background: rgba(139, 124, 247, 0.1);
}

.step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.step-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== FAQ Styles ===== */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.faq-cat {
    padding: 12px 25px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

.faq-cat:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.faq-cat.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: right;
}

.faq-question:hover {
    background: rgba(139, 124, 247, 0.1);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    stroke: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-card);
}

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

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 20px;
    margin: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-right: 40px;
}

/* CTA Card */
.cta-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 124, 247, 0.1), rgba(0, 206, 201, 0.1));
}

.cta-card h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.cta-card p {
    margin-bottom: 25px;
}

/* ===== Help Center Styles ===== */
.help-search {
    padding: 0 0 40px;
    margin-top: -30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 15px 25px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

.search-box button svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Help Grid */
.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.help-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.help-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 124, 247, 0.3);
    background: rgba(139, 124, 247, 0.05);
}

.help-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(139, 124, 247, 0.2), rgba(0, 206, 201, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.help-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-light);
}

.help-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.help-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Help Articles */
.help-article {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.help-article:last-child {
    border-bottom: none;
}

.help-article h3 {
    margin-top: 0;
}

.help-article .note {
    background: rgba(253, 203, 110, 0.1);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--warning);
    color: var(--warning);
    font-size: 0.9rem;
}

/* Support Options */
.support-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.support-option {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.support-option:hover {
    background: rgba(139, 124, 247, 0.1);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.support-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-light);
}

.support-icon.whatsapp {
    background: #25D366;
}

.support-icon.whatsapp svg {
    fill: white;
    width: 30px;
    height: 30px;
}

.support-option h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.support-option p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.support-option .availability {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 40px;
    }

    .content-card {
        padding: 25px;
    }

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

    .support-options {
        grid-template-columns: 1fr;
    }

    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .faq-cat {
        white-space: nowrap;
    }

    .policy-table {
        font-size: 0.9rem;
    }

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

@media (max-width: 480px) {
    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .search-box input {
        text-align: center;
    }

    .search-box button {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}
