/* /home/exezine.az/public_html/airalo/assets/css/airalo.css */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #22d3ee;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 0 0 0 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--light-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin-top: 30px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Filters Section */
.filters-section {
    background: white;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    top: 56px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-tab:hover {
    background: var(--light-color);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Packages Section */
.packages-section {
    background: var(--light-color);
    min-height: 400px;
}

/* Country Cards */
.country-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.country-card-header {
    position: relative;
    height: 120px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--box-shadow);
}

.country-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.country-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.country-region {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.country-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.packages-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.price-from {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Package Cards in Modal */
.package-card {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.package-card:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.package-card.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.package-card.selected::after {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.package-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.package-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.package-price small {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

.package-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.package-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

.package-detail i {
    color: var(--primary-color);
}

/* Package Summary in Checkout */
.package-summary {
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
}

.package-summary-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.package-summary-title {
    font-weight: 600;
    color: var(--dark-color);
}

.package-summary-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Cart Badge */
#cartBtn {
    position: relative;
}

#cartCount:not(.d-none) {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .package-details {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        padding: 8px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-card {
    animation: fadeIn 0.5s ease-out;
}

/* Special Badges */
.badge-popular {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}