/* ==========================================================================
   FAQ Section - "Mirror Panels" Accordion
   ========================================================================== */

.ts-faq-section {
    background: #0f0f0f;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ts-faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 67, 147, 0.3), transparent);
}

.ts-faq-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Category Card */
.ts-faq-category {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ts-faq-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
}

.ts-faq-category::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.ts-faq-category:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.05);
}

/* Category Header */
.ts-faq-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.ts-faq-category-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(232, 67, 147, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(232, 67, 147, 0.1);
}

.ts-faq-category-icon svg {
    color: #e84393;
    filter: drop-shadow(0 0 5px rgba(232, 67, 147, 0.5));
}

.ts-faq-category-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--ts-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* FAQ Items Container */
.ts-faq-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

/* Individual Question Item */
.ts-faq-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ts-faq-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.ts-faq-item.active {
    background: rgba(232, 67, 147, 0.05);
    border-color: rgba(232, 67, 147, 0.4);
    box-shadow: 0 0 15px rgba(232, 67, 147, 0.1);
}

/* Question Button - FIXED: No layout shift */
.ts-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--ts-white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.ts-faq-question:hover {
    color: #e84393;
}

.ts-faq-item.active .ts-faq-question {
    color: #e84393;
}

.ts-faq-question span {
    flex: 1;
    line-height: 1.5;
}

/* Arrow Icon */
.ts-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ts-faq-icon svg {
    width: 16px;
    height: 16px;
    color: var(--ts-silver);
    transition: transform 0.3s ease, color 0.3s ease;
}

.ts-faq-item.active .ts-faq-icon {
    background: #e84393;
    border-color: #e84393;
}

.ts-faq-item.active .ts-faq-icon svg {
    transform: rotate(180deg);
    color: #fff;
}

/* ==========================================================================
   ANSWER - SMOOTH ACCORDION (No layout shift)
   ========================================================================== */

.ts-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.ts-faq-item.active .ts-faq-answer {
    grid-template-rows: 1fr;
}

.ts-faq-answer > div {
    overflow: hidden;
}

.ts-faq-answer p {
    color: var(--ts-silver);
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 0;
    padding: 0 1.5rem 1.25rem 1.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ts-faq-item.active .ts-faq-answer p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* ==========================================================================
   CTA Footer
   ========================================================================== */

.ts-faq-cta {
    background: linear-gradient(135deg, #e84393 0%, #c93675 50%, #a82960 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(232, 67, 147, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ts-faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    animation: cta-shine 8s ease-in-out infinite;
}

@keyframes cta-shine {
    0%, 90% { left: -100%; }
    95%, 100% { left: 150%; }
}

.ts-faq-cta-content {
    position: relative;
    z-index: 2;
}

.ts-faq-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ts-faq-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    max-width: 700px;
    line-height: 1.6;
}

.ts-faq-cta .ts-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 700;
}

.ts-faq-cta .ts-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .ts-faq-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (Fixed CTA + Smooth Animation)
   ========================================================================== */

@media (max-width: 768px) {
    .ts-faq-section {
        padding: 3rem 0;
    }
    
    .ts-faq-categories {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .ts-faq-category {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .ts-faq-category-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .ts-faq-category-header h3 {
        font-size: 1.15rem;
    }
    
    .ts-faq-category-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .ts-faq-category-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .ts-faq-items {
        gap: 0.5rem;
    }
    
    .ts-faq-item {
        border-radius: 10px;
    }
    
    /* Question - Mobile */
    .ts-faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
        gap: 0.75rem;
    }
    
    .ts-faq-icon {
        width: 26px;
        height: 26px;
    }
    
    .ts-faq-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Answer - Mobile */
    .ts-faq-answer p {
        font-size: 0.85rem;
        padding: 0 1.25rem 1rem 1.25rem;
        line-height: 1.6;
    }
    
    /* CTA - Mobile Fixed */
    .ts-faq-cta {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin: 0 -0.5rem; /* Slight bleed for full-width feel */
    }
    
    .ts-faq-cta h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .ts-faq-cta p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .ts-faq-cta .ts-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        white-space: normal;
        line-height: 1.4;
        text-align: center;
    }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {
    .ts-faq-category {
        padding: 1rem;
    }
    
    .ts-faq-category-header h3 {
        font-size: 1.05rem;
    }
    
    .ts-faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
    }
    
    .ts-faq-answer p {
        font-size: 0.8rem;
        padding: 0 1rem 0.875rem 1rem;
    }
    
    .ts-faq-cta {
        padding: 1.5rem 1.25rem;
        margin: 0;
        border-radius: 14px;
    }
    
    .ts-faq-cta h3 {
        font-size: 1.25rem;
    }
    
    .ts-faq-cta p {
        font-size: 0.875rem;
    }
    
    .ts-faq-cta .ts-btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.4;
    }
}