/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #10b981;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f97316;
    --purple: #8b5cf6;
    --red: #ef4444;
    --yellow: #fbbf24;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--gray-50);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    background: var(--blue);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.logo-text {
    margin-right: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-800);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--blue);
}

.mobile-menu-btn {
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.mobile-nav-link {
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--blue);
}

/* Hero Section */
.hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
    background: linear-gradient(to left, var(--blue-50), white);
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.text-blue {
    color: var(--blue);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active {
    background: var(--blue);
    color: white;
}

.filter-btn:not(.active) {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* VPN Cards Section */
.vpn-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.vpn-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .vpn-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .vpn-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vpn-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.vpn-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--blue);
}

.vpn-card.featured {
    border-color: var(--green);
}

.featured-badge {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.provider-info {
    display: flex;
    align-items: center;
}

.provider-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    margin-left: 0.75rem;
}

.provider-name {
    font-weight: bold;
    color: var(--gray-900);
}

.rating-stars {
    color: var(--yellow);
    margin-top: 0.25rem;
}

.rating-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.discount-badge {
    background: var(--red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.price-section {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--gray-900);
}

.currency {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.price-note {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-label {
    color: var(--gray-600);
}

.feature-value {
    font-weight: bold;
}

.speed-excellent {
    color: var(--green);
}

.speed-very-good {
    color: #22c55e;
}

.speed-good {
    color: var(--green);
}

.key-features {
    margin-bottom: 1.5rem;
}

.key-features h4 {
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.key-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.expressvpn-btn {
    background: var(--green);
}

.expressvpn-btn:hover {
    background: #0da271;
}

.nordvpn-btn {
    background: var(--blue);
}

.nordvpn-btn:hover {
    background: #2563eb;
}

.surfshark-btn {
    background: var(--orange);
}

.surfshark-btn:hover {
    background: #ea580c;
}

.cyberghost-btn {
    background: var(--purple);
}

.cyberghost-btn:hover {
    background: #7c3aed;
}

.pia-btn {
    background: var(--red);
}

.pia-btn:hover {
    background: #dc2626;
}

.vpn-card.hidden {
    display: none;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.blog-link:hover {
    color: var(--secondary-color);
}

/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.popup-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-900);
}

.popup-close {
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
}

.popup-close:hover {
    color: var(--gray-700);
}

.popup-provider-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.popup-logo {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.5rem;
    margin-left: 0.75rem;
}

.popup-provider-name {
    font-weight: bold;
    color: var(--gray-900);
}

.popup-message {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.popup-timer {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.timer-content {
    display: flex;
    align-items: center;
}

.timer-icon {
    color: #f59e0b;
    margin-left: 0.5rem;
}

.timer-text {
    color: #92400e;
}

.popup-cta-btn {
    display: block;
    width: 100%;
    background: var(--green);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.popup-cta-btn:hover {
    background: #0da271;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-about {
    margin-bottom: 2rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    background: var(--blue);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.footer-logo-text {
    margin-right: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-description {
    color: var(--gray-400);
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-social {
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    background: var(--gray-800);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background: var(--blue);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    color: var(--gray-500);
    font-size: 0.875rem;
}
/* تحسينات للفلتر */
.filter-btn.active {
    background-color: var(--blue) !important;
    color: white !important;
}

.filter-btn:not(.active) {
    background-color: var(--gray-200) !important;
    color: var(--gray-700) !important;
}

/* إصلاح عرض البطاقات عند التصفية */
.vpn-cards-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

@media (min-width: 1024px) {
    .vpn-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1280px) {
    .vpn-cards-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* إصلاح البوب أب */
.popup-overlay {
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.popup-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* تحسين ظهور/اختفاء البطاقات */
.hidden {
    display: none !important;
}

/* تحسين التمرير السلس */
html {
    scroll-behavior: smooth;
}