/* Custom styles for VPN Compare Theme */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #10b981;
}

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
}

.vpn-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vpn-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.rating-stars {
    color: #fbbf24;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    flex-shrink: 0;
}

/* Ensure proper RTL */
.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* Fix spacing for RTL */
.space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* Mobile menu animation */
#mobile-menu {
    display: none;
}

/* Container fixes */
.max-w-7xl {
    max-width: 80rem !important;
}

/* Ensure all text is properly aligned */
* {
    text-align: inherit;
}

/* Popup Styles - إضافة هذه الأنماط الجديدة */
.popup-overlay {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.popup-content {
    animation: slideInDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Ensure popup is above everything */
.popup-overlay {
    z-index: 9999 !important;
}

/* Responsive popup */
@media (max-width: 640px) {
    .popup-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* تحسينات إضافية للـ Popup */
.popup-close {
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: scale(1.1);
}

.featured-vpn-popup .vpn-features .feature {
    transition: transform 0.3s ease;
}

.featured-vpn-popup .vpn-features .feature:hover {
    transform: translateY(-2px);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 480px) {
    .popup-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .featured-vpn-popup .vpn-features {
        flex-direction: column;
        gap: 1rem;
    }
}