/* =====================================================
   FAQ STYLES - Premium Platform Premium Level
   ===================================================== */

.faq {
    padding: 100px 0;
    background: white;
}

/* =====================================================
   MOBILE RESPONSIVE - Premium Platform Standard
   ===================================================== */

/* STANDARD MOBİL (768px ve altı) */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq-content {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .faq-categories {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .category-filter {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .category-filter:hover {
        transform: none;
    }
    
    .faq-list {
        max-width: 100%;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        gap: 0.75rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .faq-toggle {
        width: 32px;
        height: 32px;
    }
    
    .faq-toggle i {
        font-size: 0.8rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* KÜÇÜK MOBİL (480px ve altı) */
@media (max-width: 480px) {
    .faq {
        padding: 40px 0;
    }
    
    .faq-content {
        padding: 0 0.75rem;
    }
    
    .faq-categories {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .category-filter {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
        text-align: left;
        width: 100%;
    }
    
    .faq-toggle {
        width: 30px;
        height: 30px;
        align-self: flex-end;
        margin-top: -2rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* ÇOK KÜÇÜK EKRANLAR (360px ve altı) */
@media (max-width: 360px) {
    .faq-content {
        padding: 0 0.5rem;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
    }
    
    .faq-question h4 {
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .faq-answer p {
        font-size: 0.8rem;
    }
}

.faq-content {
    margin-top: 4rem;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.category-count {
    font-size: 0.8rem;
    opacity: 0.8;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-item.active .faq-question {
    background: var(--primary-light);
    color: var(--primary-color);
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.faq-item.active .faq-question h4 {
    color: var(--primary-color);
}

.faq-toggle {
    width: 35px;
    height: 35px;
    background: var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    color: var(--on-primary, white);
    transform: rotate(180deg);
}

.faq-toggle i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.faq-item.open .faq-answer {
    max-height: 500px !important;
    opacity: 1;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-contact {
    margin-top: 4rem;
    text-align: center;
}

.contact-card {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.contact-btn.primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.contact-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.contact-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Search Box (if needed) */
.faq-search {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.faq-search i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

/* Animation Delays */
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }

/* =====================================================
   RESPONSIVE DESIGN - TÜM MOBİL CİHAZLAR İÇİN
   Premium Platform/Viator Seviyesi FAQ Mobile Experience
   ===================================================== */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .faq {
        padding: 80px 0;
    }
    
    .faq-content {
        margin-top: 3rem;
    }
    
    .faq-categories {
        margin-bottom: 2.5rem;
    }
    
    .contact-card {
        padding: 2.5rem;
    }
}

/* STANDARD MOBİL (768px ve altı) */
@media (max-width: 768px) {
    .faq {
        padding: 50px 0; /* Daha kompakt */
    }
    
    /* SECTION HEADER MOBİL UYUMLU */
    .section-header {
        text-align: center;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem; /* Küçült */
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* FAQ CATEGORIES MOBİL UYUMLU */
    .faq-categories {
        gap: 0.75rem;
        margin-bottom: 2rem;
        justify-content: flex-start;
        overflow-x: auto; /* Horizontal scroll */
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 1rem 1rem;
        scroll-snap-type: x mandatory;
    }
    
    .category-filter {
        padding: 0.75rem 1.25rem; /* Touch-friendly */
        font-size: 0.85rem;
        min-height: 44px; /* Apple/Google guidelines */
        white-space: nowrap;
        flex-shrink: 0; /* Don't shrink */
        border-radius: 22px;
        scroll-snap-align: start;
        transition: all 0.2s ease;
    }
    
    .category-filter:hover,
    .category-filter:active {
        transform: translateY(-1px);
    }
    
    /* FAQ LIST MOBİL UYUMLU */
    .faq-list {
        padding: 0 1rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
        border-radius: 14px;
    }
    
    .faq-item:hover {
        transform: translateY(-2px); /* Küçült hover effect */
    }
    
    /* FAQ QUESTION MOBİL UYUMLU */
    .faq-question {
        padding: 1.25rem 1.5rem; /* Touch-friendly */
        gap: 1rem;
        min-height: 60px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(25,118,210,0.1);
    }
    
    .faq-question h4 {
        font-size: 1rem; /* Küçült: 1.1rem → 1rem */
        line-height: 1.4;
        margin: 0;
        flex: 1;
    }
    
    .faq-toggle {
        width: 36px; /* Touch-friendly: 35px → 36px */
        height: 36px;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }
    
    .faq-toggle:hover {
        transform: scale(1.05);
    }
    
    .faq-toggle i {
        font-size: 0.9rem;
    }
    
    /* FAQ ANSWER MOBİL UYUMLU */
    .faq-answer p {
        padding: 0 1.5rem 1.25rem; /* Küçült: 1.5rem → 1.25rem */
        font-size: 0.9rem; /* Küçült: 0.95rem → 0.9rem */
        line-height: 1.6;
        color: var(--text-light);
    }
    
    /* FAQ SEARCH MOBİL UYUMLU */
    .faq-search {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .faq-search input {
        padding: 1rem 1rem 1rem 3.5rem;
        min-height: 48px; /* Touch-friendly */
        font-size: 1rem; /* Prevent iOS zoom */
        border-radius: 24px;
    }
    
    .faq-search i {
        left: 1.5rem;
        font-size: 1.1rem;
    }
    
    /* CONTACT CARD MOBİL UYUMLU */
    .faq-contact {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem; /* Küçült: 3rem → 2rem */
        border-radius: 20px;
        max-width: 100%;
    }
    
    .contact-card h3 {
        font-size: 1.5rem; /* Küçült: 1.8rem → 1.5rem */
        margin-bottom: 1rem;
    }
    
    .contact-card p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* CONTACT BUTTONS MOBİL UYUMLU */
    .contact-buttons {
        flex-direction: column; /* Dikey stack */
        align-items: center;
        gap: 1rem;
    }
    
    .contact-btn {
        width: 100%; /* Full width mobile */
        max-width: 300px;
        padding: 1rem 1.5rem; /* Touch-friendly */
        min-height: 48px;
        justify-content: center;
        font-size: 1rem;
        border-radius: 24px;
        min-width: 200px;
    }
    
    .contact-btn:hover {
        transform: translateY(-2px);
    }
}

/* KÜÇÜK MOBİL (480px ve altı) */
@media (max-width: 480px) {
    .faq {
        padding: 40px 0; /* Daha da kompakt */
    }
    
    .section-header {
        padding: 0 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem; /* Daha küçük */
    }
    
    /* FAQ CATEGORIES KÜÇÜK MOBİL */
    .faq-categories {
        padding: 0.5rem 0.75rem 1rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    /* Custom scrollbar for mobile */
    .faq-categories::-webkit-scrollbar {
        height: 4px;
    }
    
    .faq-categories::-webkit-scrollbar-track {
        background: var(--border-light);
        border-radius: 2px;
    }
    
    .faq-categories::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .category-filter {
        padding: 0.625rem 1rem; /* Daha kompakt */
        font-size: 0.8rem;
        min-height: 42px;
        border-radius: 21px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* FAQ LIST KÜÇÜK MOBİL */
    .faq-list {
        padding: 0 0.75rem;
    }
    
    .faq-item {
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem; /* Daha kompakt: 1.25rem → 1rem */
        min-height: 56px;
        gap: 0.75rem;
    }
    
    .faq-question h4 {
        font-size: 0.95rem; /* Daha küçük */
        line-height: 1.3;
    }
    
    .faq-toggle {
        width: 34px; /* Daha küçük ama touch-friendly */
        height: 34px;
    }
    
    .faq-toggle i {
        font-size: 0.85rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem; /* Daha kompakt */
        font-size: 0.85rem; /* Daha küçük */
    }
    
    /* FAQ SEARCH KÜÇÜK MOBİL */
    .faq-search {
        padding: 0 0.75rem;
    }
    
    .faq-search input {
        padding: 0.875rem 0.875rem 0.875rem 3rem;
        min-height: 46px;
        font-size: 0.95rem;
    }
    
    .faq-search i {
        left: 1.25rem;
    }
    
    /* CONTACT KÜÇÜK MOBİL */
    .faq-contact {
        padding: 0 0.75rem;
        margin-top: 2.5rem;
    }
    
    .contact-card {
        padding: 1.5rem 1.25rem; /* Daha kompakt */
        border-radius: 16px;
    }
    
    .contact-card h3 {
        font-size: 1.3rem; /* Daha küçük */
        margin-bottom: 0.875rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-btn {
        padding: 0.875rem 1.25rem;
        min-height: 46px;
        font-size: 0.95rem;
        border-radius: 23px;
        max-width: 280px;
        min-width: 180px;
    }
}

/* ÇOK KÜÇÜK EKRANLAR (360px ve altı) */
@media (max-width: 360px) {
    .faq {
        padding: 30px 0;
    }
    
    .section-header {
        padding: 0 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.25;
    }
    
    .faq-categories {
        padding: 0.5rem 0.5rem 1rem;
    }
    
    .faq-list {
        padding: 0 0.5rem;
    }
    
    .faq-question {
        padding: 0.875rem;
        min-height: 52px;
    }
    
    .faq-question h4 {
        font-size: 0.9rem;
    }
    
    .faq-toggle {
        width: 32px;
        height: 32px;
    }
    
    .faq-answer p {
        padding: 0 0.875rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .faq-search {
        padding: 0 0.5rem;
    }
    
    .faq-search input {
        min-height: 44px;
        font-size: 0.9rem;
    }
    
    .faq-contact {
        padding: 0 0.5rem;
    }
    
    .contact-card {
        padding: 1.25rem 1rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-btn {
        padding: 0.75rem 1rem;
        min-height: 44px;
        font-size: 0.9rem;
        min-width: 160px;
    }
}

/* LANDSCAPE ORİENTASYON (Yatay tutma) */
@media (max-height: 500px) and (orientation: landscape) {
    .faq {
        padding: 20px 0;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-categories {
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }
    
    .category-filter {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    .faq-list {
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .faq-question {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }
    
    .faq-question h4 {
        font-size: 0.9rem;
    }
    
    .faq-toggle {
        width: 28px;
        height: 28px;
    }
    
    .faq-toggle i {
        font-size: 0.8rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 0.75rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .faq-contact {
        margin-top: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        max-width: 500px;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .contact-buttons {
        flex-direction: row; /* Yatay geri */
        gap: 0.75rem;
    }
    
    .contact-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
        min-width: 140px;
        max-width: 160px;
    }
}

/* CROSS-BROWSER MOBİL UYUMLULUK */
/* iOS Safari özel düzeltmeler */
@supports (-webkit-touch-callout: none) {
    .faq-question,
    .category-filter,
    .contact-btn {
        -webkit-tap-highlight-color: rgba(25,118,210,0.2);
    }
    
    .faq-toggle {
        -webkit-tap-highlight-color: rgba(25,118,210,0.3);
    }
    
    /* iOS safe area için ek padding */
    @media screen and (max-height: 812px) and (max-width: 414px) {
        .faq {
            padding-bottom: calc(50px + env(safe-area-inset-bottom));
        }
    }
    
    /* iOS input zoom prevention */
    .faq-search input {
        font-size: 16px !important; /* Prevent zoom */
    }
}

/* Android WebView özel düzeltmeler */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    .faq-question {
        min-height: 60px; /* Android için daha büyük */
    }
    
    .category-filter {
        min-height: 48px;
    }
    
    .contact-btn {
        min-height: 48px;
    }
    
    .faq-search input {
        min-height: 48px;
    }
    
    /* Android touch feedback */
    .faq-question:active,
    .category-filter:active {
        background: rgba(25,118,210,0.05);
    }
}