/* ========================================
   Product FAQ - Frontend Styles
   CSS Variables ile dinamik renk desteği
   ======================================== */

/* Varsayılan renkler (CSS Variables ile override edilir) */
:root {
    --pfaq-primary: #2563eb;
    --pfaq-primary-to: #1d4ed8;
    --pfaq-hover-bg: #eff6ff;
    --pfaq-active-bg: #dbeafe;
    --pfaq-border: #bfdbfe;
    --pfaq-active-border: #60a5fa;
    --pfaq-arrow-bg: #eff6ff;
    --pfaq-icon-text: #ffffff;
}

/* Section Wrapper */
.pfaq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

/* Başlık */
.pfaq-header {
    margin-bottom: 24px;
}

.pfaq-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8f0;
    line-height: 1.3;
}

.pfaq-icon {
    flex-shrink: 0;
    color: var(--pfaq-primary);
}

/* Akordeon */
.pfaq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tek FAQ öğesi */
.pfaq-accordion .pfaq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pfaq-accordion .pfaq-item:hover {
    border-color: var(--pfaq-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pfaq-accordion .pfaq-item.pfaq-active {
    border-color: var(--pfaq-active-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Soru butonu */
.pfaq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    transition: background 0.2s ease;
    font-family: inherit;
}

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

.pfaq-active .pfaq-question {
    background: var(--pfaq-active-bg);
}

/* Soru ikonu */
.pfaq-q-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--pfaq-primary), var(--pfaq-primary-to));
    color: var(--pfaq-icon-text);
    font-size: 14px;
    font-weight: 800;
    border-radius: 8px;
}

.pfaq-q-text {
    flex: 1;
}

/* Ok ikonu */
.pfaq-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pfaq-arrow-bg);
    color: #64748b;
    transition: all 0.3s ease;
}

.pfaq-arrow svg {
    transition: transform 0.3s ease;
}

.pfaq-active .pfaq-arrow {
    background: var(--pfaq-primary);
    color: #fff;
}

.pfaq-active .pfaq-arrow svg {
    transform: rotate(180deg);
}

/* Cevap */
.pfaq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.pfaq-active .pfaq-answer {
    max-height: 600px;
}

.pfaq-a-content {
    padding: 0 20px 20px 66px;
    font-size: 14px;
    line-height: 1.75;
    color: #475569;
}

.pfaq-a-content p {
    margin: 0 0 10px 0;
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .pfaq-section {
        margin: 24px auto;
    }

    .pfaq-title {
        font-size: 18px;
    }

    .pfaq-question {
        padding: 14px 16px;
        font-size: 14px;
        gap: 10px;
    }

    .pfaq-q-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .pfaq-a-content {
        padding: 0 16px 16px 54px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pfaq-a-content {
        padding-left: 16px;
    }
}
