/* ============================================
   Variables & Base Styles
   ============================================ */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-tertiary: #666;
    --text-muted: #999;
    --border-color: #e0e0e0;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --bg-gradient-reverse: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(102, 126, 234, 0.3);
    --shadow-xl: 0 8px 24px rgba(102, 126, 234, 0.4);
    --transition: all 0.3s ease;
}

/* ============================================
   Container & Layout
   ============================================ */
.faq-container {
    max-width: 700px;
}

/* ============================================
   Navigation
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-4px);
}

.back-link::before {
    content: "←";
    margin-right: 8px;
    font-size: 18px;
}

/* ============================================
   Header Section
   ============================================ */
.faq-header {
    text-align: center;
    margin-bottom: 30px;
}

.faq-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-header p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.update-date {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   First Time Box
   ============================================ */
.first-time-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.first-time-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.first-time-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.first-time-step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.step-number-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-text {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.first-time-link {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.first-time-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   Search Section
   ============================================ */
.search-container {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 16px;
    background: #fff;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-results {
    display: none;
    margin-bottom: 30px;
}

.search-results.active {
    display: block;
}

.search-results-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ============================================
   FAQ Category
   ============================================ */
.faq-category {
    margin-bottom: 30px;
}

.faq-category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

/* ============================================
   FAQ Item
   ============================================ */
.faq-item {
    background: var(--bg-gradient);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
    background: var(--bg-gradient-reverse);
}

/* ============================================
   FAQ Question
   ============================================ */
.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

/* ============================================
   FAQ Answer
   ============================================ */
.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding-top: 12px;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.contact-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-section p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.contact-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 640px) {
    .faq-container {
        padding: 30px 20px;
    }

    .faq-header h1 {
        font-size: 24px;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-question {
        font-size: 15px;
    }

    .first-time-box {
        padding: 20px;
    }

    .first-time-title {
        font-size: 18px;
    }

    .first-time-step {
        padding: 12px;
    }

    .step-text {
        font-size: 14px;
    }
}
