/*
Theme Name: Air Points Theme
Theme URI: https://air-points.online/
Author: Air Points
Author URI: https://air-points.online/
Description: قالب مخصص لشركة Air Points للسياحة والسفر - تصميم عصري داكن مع دعم كامل لـ Elementor و RTL
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: air-points
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, theme-options, translation-ready, one-column, two-columns, right-sidebar, custom-colors, editor-style, full-width-template
*/

/* ============================================
   Air Points Theme - Main Stylesheet
   Color Scheme: Dark Blue (#0B0540) + Teal (#1CA8CB)
   Direction: RTL (Arabic)
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --ap-primary: #0B0540;
    --ap-primary-light: #13134A;
    --ap-secondary: #1CA8CB;
    --ap-secondary-dark: #168ba8;
    --ap-accent: #F59E0B;
    
    /* Background Colors */
    --ap-bg-dark: #0B0540;
    --ap-surface-dark: #0F0F3D;
    --ap-surface-light: #1E1E5F;
    --ap-surface-glass: rgba(30, 30, 95, 0.4);
    
    /* Text Colors */
    --ap-text-dim: #94A3B8;
    --ap-text-light: #E2E8F0;
    --ap-text-white: #ffffff;
    
    /* Special Effects */
    --ap-glow: 0 0 20px rgba(28, 168, 203, 0.15);
    --ap-glow-lg: 0 0 40px rgba(28, 168, 203, 0.25);
    --ap-card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ===== Global Styles ===== */
body,
.elementor-page {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--ap-bg-dark);
    direction: rtl;
    text-align: right;
    color: var(--ap-text-light);
}

/* Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(28, 168, 203, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.08), transparent 25%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    color: var(--ap-text-white);
}

p {
    color: var(--ap-text-dim);
    line-height: 1.8;
}

a {
    color: var(--ap-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #22d3ee;
}

/* ===== Navigation / Header ===== */
.ap-header,
.elementor-location-header,
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(11, 5, 64, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ap-nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #94A3B8;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.ap-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.ap-nav-container {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Primary Button ===== */
.ap-btn-primary,
.elementor-button.ap-btn-primary,
button.ap-btn-primary,
a.ap-btn-primary {
    background-color: var(--ap-secondary) !important;
    color: var(--ap-primary) !important;
    font-weight: 700 !important;
    padding: 12px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(28, 168, 203, 0.3);
    transition: all 0.3s ease !important;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-family: 'Cairo', sans-serif !important;
}

.ap-btn-primary:hover {
    background-color: #22d3ee !important;
    box-shadow: 0 0 20px rgba(28, 168, 203, 0.5);
    transform: translateY(-2px);
}

/* ===== Secondary Button ===== */
.ap-btn-secondary,
.elementor-button.ap-btn-secondary,
button.ap-btn-secondary,
a.ap-btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-family: 'Cairo', sans-serif !important;
}

.ap-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ===== Glass Card Effect ===== */
.glass-card,
.ap-glass-card {
    background: rgba(19, 19, 74, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-nav {
    background: rgba(11, 5, 64, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Gradient Text ===== */
.gradient-text,
.ap-gradient-text {
    background: linear-gradient(135deg, #E2E8F0 0%, #1CA8CB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero Section ===== */
.ap-hero-section {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.ap-hero-section::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    width: 600px;
    height: 600px;
    background: rgba(28, 168, 203, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.6;
}

.ap-hero-section::after {
    content: '';
    position: absolute;
    top: 160px;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.4;
}

.hero-glow {
    background: radial-gradient(circle at 50% 0%, rgba(28, 168, 203, 0.15) 0%, rgba(11, 5, 64, 0) 60%);
}

/* Hero Badge */
.ap-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(30, 30, 95, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
}

.ap-hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ap-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Title */
.ap-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: white !important;
    margin-bottom: 24px !important;
}

/* Hero Image Card */
.ap-hero-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(11, 5, 64, 0.8);
}

.ap-hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 5, 64, 0.9), rgba(11, 5, 64, 0.2), transparent);
    pointer-events: none;
}

/* Floating Cards */
.ap-floating-card {
    position: absolute;
    background: rgba(15, 15, 61, 0.9);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Partners Section ===== */
.ap-partners-section {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.ap-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.ap-partners-logos:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ===== Features Section ===== */
.ap-features-section {
    padding: 96px 0;
    position: relative;
}

.ap-features-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(28, 168, 203, 0.05);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.ap-section-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--ap-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.ap-section-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

/* Feature Cards */
.ap-feature-card,
.elementor-widget-icon-box.ap-feature-card {
    background: rgba(19, 19, 74, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 32px !important;
    transition: all 0.3s ease !important;
}

.ap-feature-card:hover {
    background: rgba(30, 30, 95, 0.3) !important;
    transform: translateY(-4px);
}

.ap-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    transition: transform 0.3s ease;
    font-size: 32px;
}

.ap-feature-card:hover .ap-feature-icon {
    transform: scale(1.1) rotate(3deg);
}

.ap-feature-icon.blue { color: #60A5FA; }
.ap-feature-icon.teal { color: var(--ap-secondary); }
.ap-feature-icon.purple { color: #A78BFA; }

.feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

/* ===== Statistics Section ===== */
.ap-stats-section {
    padding: 64px 0;
    background: var(--ap-surface-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.ap-stat-item {
    text-align: center;
    padding: 16px;
}

.ap-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.ap-stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ap-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== How It Works Section ===== */
.ap-how-section {
    padding: 96px 0;
    position: relative;
}

.ap-step-card {
    text-align: center;
    position: relative;
}

.ap-step-circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--ap-surface-light);
    border: 8px solid var(--ap-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.ap-step-card:hover .ap-step-circle {
    transform: scale(1.05);
}

.ap-step-number {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
    background: var(--ap-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-primary);
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 10px 20px -5px rgba(28, 168, 203, 0.4);
    border: 4px solid var(--ap-bg-dark);
}

/* ===== Testimonial Section ===== */
.ap-testimonial-card {
    background: linear-gradient(135deg, #1E1E5F, #13134A);
    border-radius: 32px;
    padding: 40px 64px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ap-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 32px;
    right: 40px;
    font-size: 180px;
    font-family: serif;
    color: white;
    opacity: 0.1;
    line-height: 1;
}

.ap-testimonial-highlight {
    color: var(--ap-secondary);
    background: rgba(28, 168, 203, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
}

/* ===== CTA Section ===== */
.ap-cta-section {
    padding: 96px 0;
    background: var(--ap-surface-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.ap-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: rgba(28, 168, 203, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

/* ===== Footer ===== */
.ap-footer,
footer.site-footer {
    background: var(--ap-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0 32px;
}

.ap-footer-title {
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.ap-footer-link {
    color: var(--ap-text-dim);
    font-size: 14px;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

.ap-footer-social {
    display: flex;
    gap: 16px;
}

.ap-footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: all 0.3s ease;
}

.ap-footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===== Trips Section (Dynamic) ===== */
.ap-trips-section {
    padding: 96px 0;
}

.ap-trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .ap-trips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ap-trips-grid {
        grid-template-columns: 1fr;
    }
}

.ap-trip-card {
    background: rgba(19, 19, 74, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ap-trip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(28, 168, 203, 0.3);
}

.ap-trip-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.ap-trip-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--ap-secondary);
    color: var(--ap-primary);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 9999px;
}

.ap-trip-content {
    padding: 24px;
}

.ap-trip-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.ap-trip-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ap-text-dim);
    font-size: 14px;
    margin-bottom: 16px;
}

.ap-trip-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-trip-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--ap-secondary);
}

.ap-trip-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--ap-text-dim);
}

.ap-trip-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ap-text-dim);
    font-size: 14px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
    .ap-hero-section {
        padding: 100px 0 60px;
    }
    
    .ap-testimonial-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .ap-hero-title {
        font-size: 2.25rem !important;
    }
    
    .ap-section-title {
        font-size: 1.75rem;
    }
    
    .ap-stat-number {
        font-size: 1.75rem;
    }
    
    .ap-floating-card {
        display: none;
    }
    
    .ap-testimonial-card {
        padding: 24px;
    }
    
    .ap-testimonial-card::before {
        font-size: 100px;
    }
}

/* ===== Elementor Specific Overrides ===== */
.elementor-section.ap-dark-section {
    background-color: var(--ap-bg-dark) !important;
}

.elementor-section.ap-surface-section {
    background-color: var(--ap-surface-dark) !important;
}

.elementor-heading-title {
    color: white !important;
}

.elementor-widget-text-editor {
    color: var(--ap-text-dim) !important;
}

.elementor-icon-list-text {
    color: var(--ap-text-dim) !important;
}

/* Fix for RTL in Elementor */
.elementor-widget-wrap {
    direction: rtl;
}

.elementor-container {
    direction: rtl;
}

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

/* Selection Color */
::selection {
    background: var(--ap-secondary);
    color: var(--ap-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ap-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--ap-surface-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ap-secondary);
}

/* ===== WooCommerce Integration (Optional) ===== */
.woocommerce .products .product {
    background: rgba(19, 19, 74, 0.4);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.woocommerce .products .product .price {
    color: var(--ap-secondary) !important;
}

/* ===== WordPress Defaults ===== */
.wp-block-button__link {
    background-color: var(--ap-secondary);
    color: var(--ap-primary);
    border-radius: 12px;
    font-weight: 700;
}

.wp-block-button__link:hover {
    background-color: #22d3ee;
}

/* Entry Content */
.entry-content {
    color: var(--ap-text-light);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: white;
}

/* Comments */
.comments-area {
    background: rgba(19, 19, 74, 0.4);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-form input,
.comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--ap-secondary);
    outline: none;
}
