/* 
    PAPIRA Basımevi - SSS (FAQ) SAYFASI PREMİUM TASARIM
    2026 DESIGN SYSTEM - MINIMAL ACCORDION WITH LIVE SEARCH & CATEGORIES
*/

.subpage-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    margin-bottom: 40px;
}

.faq-intro h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    background: var(--light-cyan);
    padding: 6px 16px;
    border-radius: 20px;
}

.faq-intro p {
    font-size: 16px;
    color: #526058;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Box Styles */
.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.faq-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 6px 20px;
    box-shadow: 0 10px 30px rgba(0, 39, 49, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 10px 35px rgba(0, 180, 230, 0.12);
    transform: translateY(-2px);
}

.faq-search-box input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 10px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background: transparent;
}

.faq-search-box input::placeholder {
    color: #94a3b8;
}

.search-icon {
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-search-box:focus-within .search-icon {
    color: var(--accent);
}

.search-clear-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    color: var(--text-dark);
    background: #f1f5f9;
}

/* FAQ Categories */
.faq-category-block {
    margin-bottom: 50px;
}

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

.faq-category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-category-title i {
    color: var(--accent);
    font-size: 18px;
}

/* Accordion Items */
.faq-item {
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.faq-item:first-of-type {
    border-top: 1px solid #f1f5f9;
}

.faq-header {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: all 0.3s ease;
}

.faq-header h4 {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.5;
    padding-right: 25px;
    transition: all 0.3s ease;
}

.faq-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.faq-item:hover .faq-header h4,
.faq-item.active .faq-header h4 {
    color: var(--accent);
}

.faq-header:focus-visible h4 {
    color: var(--accent);
    text-decoration: underline;
}

.faq-item:hover .faq-icon {
    border-color: var(--accent);
    color: var(--accent);
}

.faq-item.active .faq-icon {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: rotate(45deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.faq-content {
    padding: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    border-top: none;
}

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

.faq-content p {
    margin-bottom: 12px;
}

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

/* No Results Fallback */
.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-cyan);
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin: 40px auto 0 auto;
    max-width: 600px;
}

.no-results-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.faq-no-results h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.faq-no-results p {
    font-size: 15px;
    color: #64748b;
    max-width: 420px;
    margin: 0 auto 24px auto;
}

/* Responsive Optimizations */
@media (max-width: 768px) {
    .subpage-section {
        padding: 50px 0;
    }
    
    .faq-intro {
        margin-bottom: 30px;
    }

    .faq-intro h2 {
        font-size: 28px;
    }

    .faq-search-wrapper {
        margin-bottom: 35px;
    }

    .faq-search-box {
        padding: 4px 16px;
    }

    .faq-search-box input {
        padding: 10px 8px;
        font-size: 14px;
    }

    .faq-category-block {
        margin-bottom: 40px;
    }

    .faq-category-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .faq-header {
        padding: 20px 0;
    }

    .faq-header h4 {
        font-size: 15px;
    }

    .faq-content {
        padding: 0 0 20px 0;
        font-size: 14px;
    }
}