/**
 * Q&A Component Styles
 * Styling for the Q&A tab content
 */

.qa-tab-content {
    min-height: 400px;
}

/* Loading State */
.qa-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.qa-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-salmon, #ff5757);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.qa-loading p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

/* Error State */
.qa-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.qa-error svg {
    color: var(--primary-salmon, #ff5757);
    margin-bottom: 20px;
}

.qa-error h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 20px;
}

.qa-error p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0;
}

.qa-error .retry-button {
    padding: 10px 24px;
    background: var(--primary-salmon, #ff5757);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qa-error .retry-button:hover {
    background: #ff3d3d;
    transform: translateY(-2px);
}

/* Empty State */
.qa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.qa-empty svg {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.qa-empty p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

/* Q&A Container */
.qa-container {
    padding: 20px 0;
}

.qa-header {
    margin-bottom: 32px;
    text-align: center;
}

.qa-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #fff;
}

.qa-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Q&A List */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Q&A Item */
.qa-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.qa-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Question Section */
.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.qa-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-icon-question {
    background: rgba(255, 87, 87, 0.15);
    color: var(--primary-salmon, #ff5757);
}

.qa-icon-answer {
    background: rgba(255, 165, 0, 0.15);
    color: var(--secondary-orange, #ffa500);
}

.qa-text {
    flex: 1;
    line-height: 1.6;
}

.qa-text strong {
    color: #fff;
    font-weight: 600;
    margin-right: 8px;
}

.qa-question .qa-text {
    font-size: 18px;
    color: #fff;
}

/* Answer Section */
.qa-answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 8px;
}

.qa-answer .qa-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
    .qa-container {
        padding: 10px 0;
    }

    .qa-header h2 {
        font-size: 24px;
    }

    .qa-subtitle {
        font-size: 14px;
    }

    .qa-item {
        padding: 16px;
    }

    .qa-question .qa-text {
        font-size: 16px;
    }

    .qa-answer .qa-text {
        font-size: 14px;
    }

    .qa-icon {
        width: 32px;
        height: 32px;
    }

    .qa-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Tablet */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .qa-container {
        padding: 15px 0;
    }

    .qa-header h2 {
        font-size: 26px;
    }
}

/* Animation for items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-item {
    animation: fadeInUp 0.5s ease forwards;
}

.qa-item:nth-child(1) { animation-delay: 0.1s; }
.qa-item:nth-child(2) { animation-delay: 0.2s; }
.qa-item:nth-child(3) { animation-delay: 0.3s; }
.qa-item:nth-child(4) { animation-delay: 0.4s; }
.qa-item:nth-child(5) { animation-delay: 0.5s; }
.qa-item:nth-child(n+6) { animation-delay: 0.6s; }
