/**
 * PWA Features Section - Clean & Professional
 * تصميم نظيف واحترافي بدون بهرجة
 */

/* ==================== PWA Features Section ==================== */
.pwa-features-section {
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 50%, #F5F5F5 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* Background Decorations - Subtle */
.pwa-features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Container */
.pwa-features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header - Clean & Minimal */
.pwa-features-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pwa-features-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    color: #1F2937;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.02em;
}

.pwa-features-badge i {
    font-size: 0.875rem;
    color: var(--primary);
}

.pwa-features-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.pwa-features-subtitle {
    font-size: clamp(0.9375rem, 1.75vw, 1.125rem);
    color: #4B5563;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Grid - Infinite Marquee Container */
.pwa-features-grid {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

/* Marquee Track - حاوية الحركة */
.pwa-features-track {
    display: flex;
    gap: clamp(2rem, 4vw, 4rem);
    animation: marquee 30s linear infinite;
    will-change: transform;
}

/* Pause on hover */
.pwa-features-grid:hover .pwa-features-track {
    animation-play-state: paused;
}

/* Marquee Animation - حركة لا نهائية */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Feature Item - Minimal & Clean */
.pwa-feature-item {
    display: flex;
    align-items: center;
    gap: clamp(0.375rem, 1vw, 0.5rem);
    color: #374151;
    font-size: clamp(0.6875rem, 1.5vw, 0.9375rem);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.pwa-feature-item:hover {
    color: #111827;
    transform: translateY(-2px);
}

/* Feature Icon - Simple SVG Style */
.pwa-feature-icon {
    width: clamp(16px, 2.5vw, 24px);
    height: clamp(16px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pwa-feature-item:hover .pwa-feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.pwa-feature-icon svg {
    width: 100%;
    height: 100%;
}

/* Feature Text */
.pwa-feature-text {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Install CTA Section - Clean & Professional */
.pwa-install-cta {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.2);
}

.pwa-install-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.1) 35px,
            rgba(255, 255, 255, 0.1) 70px);
}

.pwa-install-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pwa-install-icon i {
    font-size: 1.75rem;
    color: var(--text-inverse);
}

.pwa-install-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--text-inverse);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pwa-install-description {
    font-size: clamp(0.9375rem, 1.75vw, 1.0625rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Install Button - Clean Design */
.pwa-install-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: var(--bg-primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pwa-install-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.pwa-install-button:hover::before {
    width: 300px;
    height: 300px;
}

.pwa-install-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pwa-install-button:active {
    transform: translateY(-2px);
}

.pwa-install-button i {
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.pwa-install-button span {
    position: relative;
    z-index: 1;
}

/* Already Installed State */
.pwa-install-button.installed {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
    cursor: default;
    pointer-events: none;
}

.pwa-install-button.installed i {
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Install Helper Text */
.pwa-install-helper {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pwa-install-helper i {
    font-size: 0.875rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .pwa-features-section {
        padding: 3rem 0 2.5rem;
    }

    .pwa-features-grid {
        gap: clamp(0.625rem, 1.5vw, 1.5rem);
    }
}

@media (max-width: 768px) {
    .pwa-features-section {
        padding: 2.5rem 0 2rem;
    }

    .pwa-features-header {
        margin-bottom: 2rem;
    }

    .pwa-features-track {
        gap: 1.5rem;
        animation-duration: 25s;
    }

    .pwa-feature-item {
        font-size: 0.625rem !important;
    }

    .pwa-feature-icon {
        width: 14px !important;
        height: 14px !important;
    }

    .pwa-install-cta {
        padding: 2rem 1.5rem;
    }

    .pwa-install-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
    }

    .pwa-install-icon i {
        font-size: 1.5rem;
    }

    .pwa-install-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .pwa-features-section {
        padding: 2rem 0 1.5rem;
    }

    .pwa-features-container {
        padding: 0 1rem;
    }

    .pwa-features-header {
        margin-bottom: 1.5rem;
    }

    .pwa-features-track {
        gap: 1rem;
        animation-duration: 20s;
    }

    .pwa-feature-item {
        font-size: 0.5625rem !important;
        gap: 0.25rem;
    }

    .pwa-feature-icon {
        width: 12px !important;
        height: 12px !important;
    }

    .pwa-install-cta {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .pwa-install-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 1rem;
    }

    .pwa-install-icon i {
        font-size: 1.375rem;
    }

    .pwa-install-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .pwa-install-button i {
        font-size: 1rem;
    }

    .pwa-install-helper {
        font-size: 0.75rem;
        margin-top: 1rem;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .pwa-features-section {
        display: none;
    }
}

/* ==================== Accessibility ==================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}