/**
 * Public-facing styles for Venue FAQ Generator
 */

.venue-faqs-wrapper {
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 8px;
}

.venue-faqs-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.venue-faq-category {
    margin-bottom: 2rem;
}

.venue-faq-category:last-child {
    margin-bottom: 0;
}

.venue-faq-category-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.venue-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.venue-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.venue-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.venue-faq-question {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 1.25rem;
    background: #f7fafc;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: background-color 0.2s ease;
}

.venue-faq-question:hover {
    background: #edf2f7;
}

.venue-faq-question:focus {
    outline: 2px solid #4299e1;
    outline-offset: -2px;
}

.venue-faq-question[aria-expanded="true"] {
    background: #edf2f7;
    border-bottom: 1px solid #e2e8f0;
}

.venue-faq-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.venue-faq-icon::before,
.venue-faq-icon::after {
    content: '';
    position: absolute;
    background: #2d3748;
    transition: transform 0.3s ease;
}

.venue-faq-icon::before {
    width: 16px;
    height: 2px;
}

.venue-faq-icon::after {
    width: 2px;
    height: 16px;
}

.venue-faq-question[aria-expanded="true"] .venue-faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.venue-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.venue-faq-answer.active {
    max-height: 2000px;
    transition: max-height 0.5s ease;
}

.venue-faq-answer-content {
    padding: 1.25rem;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.venue-faq-answer-content p {
    margin-bottom: 0.75rem;
}

.venue-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.venue-faq-answer-content ul,
.venue-faq-answer-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.venue-faq-answer-content li {
    margin-bottom: 0.5rem;
}

.venue-faq-answer-content a {
    color: #4299e1;
    text-decoration: underline;
}

.venue-faq-answer-content a:hover {
    color: #2b6cb0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .venue-faqs-wrapper {
        padding: 1.5rem;
    }

    .venue-faqs-title {
        font-size: 1.5rem;
    }

    .venue-faq-question {
        font-size: 1rem;
        padding: 1rem 2.5rem 1rem 1rem;
    }

    .venue-faq-icon {
        right: 1rem;
    }

    .venue-faq-answer-content {
        padding: 1rem;
        font-size: 0.9375rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .venue-faqs-wrapper {
        background: #2d3748;
    }

    .venue-faqs-title {
        color: #f7fafc;
    }

    .venue-faq-category-title {
        color: #f7fafc;
        border-bottom-color: #4a5568;
    }

    .venue-faq-item {
        border-color: #4a5568;
    }

    .venue-faq-question {
        background: #374151;
        color: #f7fafc;
    }

    .venue-faq-question:hover,
    .venue-faq-question[aria-expanded="true"] {
        background: #4a5568;
    }

    .venue-faq-icon::before,
    .venue-faq-icon::after {
        background: #f7fafc;
    }

    .venue-faq-answer-content {
        color: #e2e8f0;
    }
}

