/* Clean FAQ Design */

.faq-frontend-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    box-sizing: border-box;
}

.faq-main-background {
    max-width: 1140px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    margin: 20px auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(67, 97, 238, 0.2);
    position: relative;
    z-index: 1;
}

.faq-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.faq-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0 0 25px 0;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.faq-search-container {
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faq-search-box {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.faq-search-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.faq-search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
}

.faq-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Category chips */
.faq-chips { 
    display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top: 6px; 
}
.faq-chip {
    appearance:none; border:1px solid #e9ecef !important; background:#f8f9fa !important; color:#333 !important;
    padding:8px 12px; border-radius:999px; font-weight:600; font-size:12px; cursor:pointer;
    transition:background .2s ease, border-color .2s ease, color .2s ease, transform .08s ease;
}
.faq-chip:hover { background:#e9ecef !important; }
.faq-chip:active { transform:translateY(1px); }
.faq-chip.active { background:#333 !important; color:#fff !important; border-color:#333 !important; }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

/* Geniş ekranlarda 2 sütun */
@media (min-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.faq-item {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(0);
    margin-bottom: 8px;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.faq-item.active::before {
    transform: scaleX(1);
}

.faq-question {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px 25px;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 1;
    border-radius: 14px 14px 0 0;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-question h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    flex: 1;
    padding-right: 15px;
}

.faq-toggle-icon {
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(135deg);
    background: #666;
    color: white;
}

.faq-answer {
    padding: 0 25px;
    color: #495057;
    font-size: 15px;
    line-height: 1.7;
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
}

.faq-answer.active {
    display: block;
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.faq-answer a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #007bff;
    transition: width 0.3s ease;
}

.faq-answer a:hover {
    color: #3a0ca3;
}

.faq-answer a:hover::after {
    width: 100%;
}

.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-style: italic;
    display: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin-top: 20px;
}

.faq-no-results p {
    margin: 0;
    font-size: 18px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-frontend-container {
        padding: 20px 15px;
        background: transparent;
    }
    
    .faq-main-background {
        padding: 30px 20px;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .faq-title {
        font-size: 2.2rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 17px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-answer-content {
        padding: 20px 0;
    }
    
    .faq-search-input {
        padding: 15px 50px 15px 20px;
        font-size: 15px;
    }
    
    .faq-search-icon {
        right: 20px;
        font-size: 18px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-frontend-container {
        padding: 20px 15px;
    }
    
    .faq-main-background {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
    }
    
    .faq-search-input {
        padding: 14px 45px 14px 18px;
        font-size: 14px;
    }
    
    .faq-search-icon {
        right: 16px;
        font-size: 15px;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .faq-question h3 {
        font-size: 16px;
        padding-right: 12px;
    }
    
    .faq-answer {
        padding: 0 20px;
        font-size: 14px;
    }
    
    .faq-answer.active {
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .faq-main-background {
        padding: 25px 15px;
        margin: 10px;
    }
    
    .faq-title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 15px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 0 16px;
        font-size: 14px;
    }
    
    .faq-answer.active {
        padding: 16px;
    }
    
    .faq-toggle-icon {
        font-size: 14px;
        width: 18px;
        height: 18px;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 991px) {
    .faq-main-background {
        max-width: 768px;
        padding: 35px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
