/* ========================================
   FAQ Builder Page - Modern UI/UX Design
   ======================================== */

.ezd-faq-builder-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ========================================
   Header Section
   ======================================== */

.ezd-faq-header {
    background: linear-gradient(135deg, #4C4CF1 0%, #6B5BFF 50%, #3A3AF0 100%);
    color: white;
    padding: 60px 50px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 20px 60px rgba(76, 76, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.ezd-faq-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ezd-faq-header h1 {
    font-size: 44px;
    margin: 0 0 18px 0;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.ezd-faq-header p {
    font-size: 19px;
    margin: 0;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.ezd-faq-logo {
    max-width: 120px;
    margin: 0 auto 28px;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* ========================================
   Section Containers
   ======================================== */

.ezd-section {
    background: white;
    padding: 45px;
    margin-bottom: 35px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ezd-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.ezd-section h2 {
    font-size: 30px;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ezd-section > p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.ezd-section-icon {
    font-size: 34px;
    margin-right: 15px;
    background: linear-gradient(135deg, #4C4CF1 0%, #3A3AF0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Features Grid
   ======================================== */

.ezd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 25px;
}

.ezd-feature-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ezd-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4C4CF1 0%, #6B5BFF 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ezd-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(76, 76, 241, 0) 0%, rgba(76, 76, 241, 0.3) 50%, rgba(76, 76, 241, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ezd-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(76, 76, 241, 0.15);
    border-color: #4C4CF1;
}

.ezd-feature-card:hover::before {
    transform: scaleX(1);
}

.ezd-feature-card:hover::after {
    opacity: 1;
}

.ezd-feature-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.ezd-feature-card p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ========================================
   Screenshots Gallery
   ======================================== */

.ezd-screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 25px;
}

.ezd-screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.ezd-screenshot-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(76, 76, 241, 0.2);
}

.ezd-screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.ezd-screenshot-item:hover img {
    transform: scale(1.05);
}

.ezd-screenshot-item p {
    padding: 18px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    font-weight: 600;
    border-top: 2px solid #e5e7eb;
}

/* ========================================
   CTA Section
   ======================================== */

.ezd-cta-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 35px 0;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.ezd-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(76, 76, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.ezd-cta-section h2 {
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
}

.ezd-cta-section p {
    color: #4b5563;
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
    position: relative;
}

/* ========================================
   Install Button
   ======================================== */

.ezd-btn-installer {
    background: linear-gradient(135deg, #4C4CF1 0%, #3A3AF0 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(76, 76, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.ezd-btn-installer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ezd-btn-installer:hover::before {
    left: 100%;
}

.ezd-btn-installer:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(76, 76, 241, 0.4);
    color: white;
}

.ezd-btn-installer:active {
    transform: translateY(-1px);
}

.ezd-btn-installer:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(156, 163, 175, 0.2);
}

.ezd-btn-installer .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    visibility: visible;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   CTA Buttons Layout
   ======================================== */

.ezd-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0 20px 0;
}

.ezd-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #4C4CF1;
    background: rgba(76, 76, 241, 0.1);
    border: 2px solid #4C4CF1;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 76, 241, 0.15);
    position: relative;
    overflow: hidden;
}

.ezd-btn-secondary:hover {
    background: #4C4CF1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 76, 241, 0.3);
    text-decoration: none;
}

.ezd-btn-secondary:active {
    transform: translateY(0);
}

/* ========================================
   Response Messages
   ======================================== */

#ezd-installer-response {
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-block;
    animation: fadeInUp 0.5s ease;
}

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

.ezd-response-success {
    color: #047857;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.ezd-response-error {
    color: #dc2626;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

/* ========================================
   Video Container
   ======================================== */

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

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

@media (max-width: 768px) {
    .ezd-faq-builder-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }

    .ezd-faq-header {
        padding: 40px 30px;
        margin-bottom: 30px;
    }

    .ezd-faq-header h1 {
        font-size: 32px;
    }

    .ezd-faq-header p {
        font-size: 16px;
    }

    .ezd-section {
        padding: 30px 25px;
        margin-bottom: 25px;
    }

    .ezd-section h2 {
        font-size: 24px;
    }

    .ezd-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ezd-screenshots {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ezd-cta-section {
        padding: 35px 25px;
    }

    .ezd-cta-section h2 {
        font-size: 26px;
    }

    .ezd-btn-installer {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ezd-faq-header h1 {
        font-size: 28px;
    }

    .ezd-section h2 {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ezd-section-icon {
        margin-bottom: 10px;
    }
}

/* ========================================
   Smooth Animations
   ======================================== */

.ezd-faq-builder-wrapper > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.ezd-faq-builder-wrapper > *:nth-child(1) { animation-delay: 0.1s; }
.ezd-faq-builder-wrapper > *:nth-child(2) { animation-delay: 0.2s; }
.ezd-faq-builder-wrapper > *:nth-child(3) { animation-delay: 0.3s; }
.ezd-faq-builder-wrapper > *:nth-child(4) { animation-delay: 0.4s; }
.ezd-faq-builder-wrapper > *:nth-child(5) { animation-delay: 0.5s; }

