/**
 * SmarterGerman FAQ Widget Styles
 * Loaded only when FAQ widget is active
 */

.sg-faq-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    padding: 14px 28px;
    background: #FFC519;
    color: #333;
    border: none;
    border-radius: 50px;
    font-family: Inter, -apple-system, sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.3s;
    z-index: 9998;
}

.sg-faq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}

.sg-faq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 20px;
    overflow-y: auto;
}

.sg-faq-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.sg-faq-modal {
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    background: #f5f0e8;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.sg-faq-overlay.open .sg-faq-modal {
    transform: scale(1) translateY(0);
}

.sg-faq-header {
    background: #00838f;
    color: #fff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sg-faq-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.sg-faq-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-faq-close:hover {
    background: rgba(255,255,255,0.3);
}

.sg-faq-search {
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e8e3db;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-faq-search svg {
    width: 22px;
    height: 22px;
    fill: #00838f;
    flex-shrink: 0;
}

.sg-faq-search input {
    flex: 1;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    font-family: Inter, -apple-system, sans-serif;
}

.sg-faq-search input::placeholder {
    color: #aaa;
}

.sg-faq-filters {
    padding: 12px 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid #e8e3db;
}

.sg-faq-chip {
    padding: 7px 16px;
    background: #f5f0e8;
    border: 1px solid #e0dbd3;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    font-family: Inter, -apple-system, sans-serif;
}

.sg-faq-chip:hover {
    border-color: #00838f;
    color: #00838f;
}

.sg-faq-chip.active {
    background: #00838f;
    color: #fff;
    border-color: #00838f;
}

.sg-faq-results {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.sg-faq-item {
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0ebe3;
}

.sg-faq-item:hover {
    background: #faf8f5;
}

.sg-faq-item.expanded {
    background: #f5f0e8;
    box-shadow: inset 0 0 0 1px rgba(0,131,143,0.2), 0 4px 12px rgba(0,0,0,0.08);
    margin: 8px 12px;
    border-radius: 12px;
    border-bottom: none;
}

.sg-faq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.sg-faq-question {
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.sg-faq-item.expanded .sg-faq-question {
    color: #00838f;
}

.sg-faq-cat {
    padding: 4px 12px;
    background: #f5f0e8;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #00838f;
    flex-shrink: 0;
}

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

.sg-faq-item.expanded .sg-faq-answer {
    max-height: 800px;
}

.sg-faq-answer-inner {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px dashed #e0dbd3;
}

.sg-faq-answer-inner strong {
    color: #00838f;
}

.sg-faq-answer-inner a {
    color: #E91E63;
}

.sg-faq-highlight {
    background: #FFC519;
    padding: 1px 4px;
    border-radius: 3px;
}

.sg-faq-empty {
    padding: 60px 24px;
    text-align: center;
}

.sg-faq-empty svg {
    width: 56px;
    height: 56px;
    fill: #ddd;
    margin-bottom: 16px;
}

.sg-faq-empty h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.sg-faq-footer {
    padding: 16px 24px;
    background: #00838f;
    text-align: center;
}

.sg-faq-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

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

/* Mobile responsive */
@media (max-width: 600px) {
    .sg-faq-overlay {
        padding: 4vh 10px;
    }

    .sg-faq-modal {
        max-height: 92vh;
    }

    .sg-faq-filters {
        gap: 6px;
    }

    .sg-faq-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .sg-faq-item.expanded {
        margin: 4px 8px;
    }
}
