/* AZ Travel - Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #ff6b6b;
    --neutral-color: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    --dark: #212529;
    --light-gray: #6c757d;
    --border-color: #dee2e6;
    
    /* Fonts */
    --font-arabic: 'Noto Sans Arabic', sans-serif;
    --font-english: 'Inter', 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-arabic);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* RTL/LTR Support */
[dir="rtl"] {
    font-family: var(--font-arabic);
}

[dir="ltr"] {
    font-family: var(--font-english);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 1000;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 120px 0 80px;
    color: white;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: none;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.navbar-brand img {
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Language Selector */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--neutral-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-background {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    color: var(--white);
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Search Form */
.search-form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.flight-search-form {
    width: 100%;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.trip-type {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.trip-type input[type="radio"] {
    display: none;
}

.trip-type label {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.trip-type input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--neutral-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: var(--white);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Popular Destinations */
.popular-destinations {
    padding: var(--section-padding);
}

.destination-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 300px;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.destination-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.destination-card:hover .destination-image img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
}

.destination-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.destination-overlay p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.destination-overlay .price {
    background: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--neutral-color);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: var(--section-padding);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0;
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 1rem 2rem;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: var(--section-padding);
}

.footer-brand p {
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info p {
    color: #adb5bd;
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: var(--accent-color);
    margin-left: 0.5rem;
    width: 20px;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.payment-methods img {
    opacity: 0.7;
    transition: var(--transition);
}

.payment-methods img:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .search-form-container {
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trip-type {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-methods {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-form-container {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .destination-card {
        height: 250px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .newsletter {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}