/**
 * FAQ Page Specific Styles
 * Contains all styles specific to the FAQ page
 */

/* ==========================================================================
   FAQ Layout Styles
   ========================================================================== */

.faq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow: visible;
}

.faq-hero {
    background: linear-gradient(to bottom right, #f8fafc, #e2e8f0);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==========================================================================
   FAQ Grid Layout
   ========================================================================== */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    min-height: auto;
    overflow: visible;
}

.faq-nav-col {
    order: 1;
    overflow: visible;
}

.faq-content-col {
    order: 2;
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   FAQ Navigation Styles
   ========================================================================== */

.faq-nav {
    position: sticky;
    top: 6rem;
    z-index: 20;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    overflow-x: visible;
}

.faq-nav h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.faq-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    border-left: 3px solid transparent;
    white-space: nowrap;
    min-width: fit-content;
}

.faq-nav a:hover {
    background: #f3f4f6;
    color: #7c3aed;
    transform: translateX(4px);
    border-left-color: #e5e7eb;
}

.faq-nav a.active {
    background: #f3f4f6;
    color: #7c3aed;
    border-left-color: #7c3aed;
    font-weight: 600;
}

.faq-nav a .icon-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

/* Navigation icon colors */
.faq-nav a[href="#getting-started"] .icon-circle { background: #9333ea; }
.faq-nav a[href="#features"] .icon-circle { background: #2563eb; }
.faq-nav a[href="#subscription"] .icon-circle { background: #16a34a; }
.faq-nav a[href="#technical"] .icon-circle { background: #dc2626; }

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */

.faq-section {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.faq-section:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.faq-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-section .section-icon {
    background: linear-gradient(to bottom right, #ede9fe, #ddd6fe);
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* ==========================================================================
   FAQ Accordion Styles
   ========================================================================== */

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.faq-button {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.faq-button:hover {
    background: #f9fafb;
}

.faq-button:focus {
    outline: 2px solid #7c3aed;
    outline-offset: -2px;
}

.faq-button span {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.faq-icon {
    color: #7c3aed;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    display: none;
    background: white;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.faq-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-content p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.faq-content .info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.faq-content .info-box.warning {
    background: #fef3c7;
    border-color: #fcd34d;
}

.faq-content .info-box.success {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.faq-content .info-box p {
    color: #1e3a8a;
    font-size: 0.875rem;
    margin: 0;
}

.faq-content .info-box.warning p { color: #92400e; }
.faq-content .info-box.success p { color: #065f46; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (min-width: 1024px) {
    .faq-grid {
        grid-template-columns: 320px 1fr;
        gap: 3rem;
    }
    
    .faq-nav {
        position: sticky;
        top: 6rem;
    }
    
    .faq-nav-col { order: 1; }
    .faq-content-col { order: 2; }
}

@media (max-width: 1023px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-nav {
        position: static;
        margin-bottom: 2rem;
        z-index: auto;
        max-height: none;
        overflow-y: visible;
    }
    
    .faq-nav-col { order: 1; }
    .faq-content-col { order: 2; }
}

@media (max-width: 768px) {
    .faq-container {
        padding: 0 1rem;
    }
    
    .faq-hero {
        padding: 2rem 1rem;
    }
    
    .faq-hero h1 {
        font-size: 2.25rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-button {
        padding: 1rem;
    }
    
    .faq-button span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 1.875rem;
    }
    
    .faq-section h2 {
        font-size: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .faq-nav a {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .faq-nav a .icon-circle {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    text-decoration: none;
}

/* Active page styling in footer */
footer a.tw-font-semibold {
    color: #7c3aed !important;
    font-weight: 600;
}


/* ==========================================================================
   Header Logo and App Name Styles
   ========================================================================== */

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-app-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-app-name:hover {
    color: #7c3aed;
}


/* Responsive behavior - hide app name on mobile */
@media (max-width: 1023px) {
    .header-app-name {
        display: none;
    }
}

/* ==========================================================================
   Privacy Page Layout Fixes
   ========================================================================== */

.sidebar-nav {
    z-index: 20;
    background: white;
    border-right: 1px solid #e5e7eb;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: visible;
}

.sidebar-nav .nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #4b5563;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    background-color: #f3f4f6;
    color: #7c3aed;
}


/* Privacy page specific grid layout */
.privacy-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .privacy-content-grid.lg\:tw-grid-cols-5 {
        grid-template-columns: 320px 1fr !important;
    }
    
    .sidebar-nav {
        position: sticky;
        top: 60px;
        height: calc(100vh - 60px);
    }
}

@media (max-width: 1023px) {
    .sidebar-nav {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}


/* ==========================================================================
   Mobile Sidebar Fix - Ensure sidebar doesn't block content on small screens
   ========================================================================== */

@media (max-width: 1023px) {
    .sidebar-nav {
        display: none !important;
    }
    
    .privacy-content-grid {
        grid-template-columns: 1fr !important;
    }
    
    .privacy-content-grid main {
        padding: 1rem !important;
    }
}
