/* ============================================
   HalalScreen - Enhanced Features CSS
   Screenshots, Testimonials, FAQ, Newsletter, Video Modal
   ============================================ */

/* ============================================
   SCREENSHOTS CAROUSEL SECTION
   ============================================ */
.screenshots {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.screenshots-container {
    max-width: var(--container-xl, 1280px);
    width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    padding: 2rem;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.screenshot-caption {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.screenshot-caption h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white, #ffffff);
}

.screenshot-caption p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white, #ffffff);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--emerald, #10b981);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -28px;
}

.carousel-btn-next {
    right: -28px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.carousel-indicator.current-slide {
    background: var(--emerald, #10b981);
    width: 32px;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .screenshot-caption {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        padding: 1rem 1.5rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
}

.testimonials-container {
    max-width: var(--container-xl, 1280px);
    width: 100%;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.testimonial-rating {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gold, #fbbf24);
}

.testimonial-card blockquote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--emerald, #10b981);
    font-family: Georgia, serif;
    line-height: 0;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--emerald, #10b981);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white, #ffffff);
    font-style: normal;
}

.author-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.faq-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.faq-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.faq-item[open] {
    border-color: var(--emerald, #10b981);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white, #ffffff);
    list-style: none;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--emerald-bright, #34d399);
}

.faq-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--emerald, #10b981);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.8;
    animation: fadeIn 0.3s ease-in-out;
}

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

.faq-answer p {
    margin: 0;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.newsletter-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content > p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-group:focus-within {
    border-color: var(--emerald, #10b981);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white, #ffffff);
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group .btn {
    flex-shrink: 0;
    padding: 1rem 2rem;
    min-width: auto;
}

.error-message,
.success-message {
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: none;
}

.error-message {
    color: var(--red, #ef4444);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
    color: var(--emerald-bright, #34d399);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.error-message.show,
.success-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

.newsletter-privacy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 640px) {
    .form-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-group .btn {
        width: 100%;
    }
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: -1;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    background: #0a0a14;
    border-radius: 32px;
    padding: 2rem;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white, #ffffff);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close:hover {
    background: var(--red, #ef4444);
    border-color: var(--red, #ef4444);
    transform: rotate(90deg);
}

.modal-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
}

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

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 24px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   ENHANCED FEATURES UTILITIES
   ============================================ */
.features-container,
.screenshots-container,
.testimonials-container,
.faq-container,
.newsletter-container {
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .features-container,
    .screenshots-container,
    .testimonials-container,
    .faq-container,
    .newsletter-container {
        padding: 0 2rem;
    }
}
