/**
 * Hurghada Tours Hub - Custom Styling
 * Theme: Astra
 * Color Palette: "Red Sea Sunset"
 * Target Audience: European Travelers
 * 
 * Color Reference:
 * - Deep Turquoise: #0891B2 (Primary - Red Sea)
 * - Coral Orange: #F97316 (CTA - Coral Reefs)
 * - Desert Gold: #F59E0B (Accent - Sahara)
 * - Azure Blue: #0E7490 (Links)
 * - Deep Teal: #115E59 (Footer)
 */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
    /* Primary Colors */
    --hurghada-turquoise: #0891B2;
    --hurghada-coral: #F97316;
    --hurghada-gold: #F59E0B;
    
    /* Secondary Colors */
    --hurghada-azure: #0E7490;
    --hurghada-coral-warm: #FB923C;
    --hurghada-teal: #115E59;
    --hurghada-desert-amber: #D97706;
    
    /* Neutral Colors */
    --hurghada-warm-white: #FEF3C7;
    --hurghada-sand: #F5DEB3;
    --hurghada-sand-soft: #E8D5B7;
    --hurghada-charcoal: #1F2937;
    --hurghada-gray-light: #F3F4F6;
    
    /* Pure Colors */
    --hurghada-white: #FFFFFF;
    --hurghada-black: #000000;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

/* ============================================
   Typography - Google Fonts Import
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ============================================
   Global Typography Overrides
   ============================================ */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--hurghada-charcoal);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: var(--hurghada-teal);
    line-height: 1.3;
}

h1, .entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-sm);
}

/* Special heading style for featured sections */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--hurghada-teal);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--hurghada-coral), var(--hurghada-gold));
    margin: var(--space-sm) auto 0;
    border-radius: var(--radius-full);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header,
.main-header-bar {
    background: linear-gradient(135deg, var(--hurghada-turquoise) 0%, var(--hurghada-azure) 100%) !important;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo styling */
.site-title a,
.site-description {
    color: var(--hurghada-white) !important;
}

.site-title a {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-description {
    font-size: 0.875rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Main navigation */
.main-navigation a,
.main-header-menu .menu-item > a {
    color: var(--hurghada-white) !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    padding: 0.75rem 1rem;
}

.main-navigation a:hover,
.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a {
    color: var(--hurghada-coral) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

/* Dropdown menus */
.main-navigation .sub-menu {
    background-color: var(--hurghada-white) !important;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    border-top: 3px solid var(--hurghada-coral);
}

.main-navigation .sub-menu a {
    color: var(--hurghada-charcoal) !important;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
}

.main-navigation .sub-menu a:hover {
    background-color: var(--hurghada-warm-white);
    color: var(--hurghada-turquoise) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    background-color: var(--hurghada-coral) !important;
    color: var(--hurghada-white) !important;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background-color: var(--hurghada-coral-warm) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section,
.banner-section,
.ast-advanced-header {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section::before,
.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 94, 89, 0.7) 0%, rgba(8, 145, 178, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--hurghada-white);
    max-width: 900px;
    padding: var(--space-xl) var(--space-lg);
}

.hero-content h1 {
    color: var(--hurghada-white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    color: var(--hurghada-warm-white);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero CTA Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons & Call-to-Actions
   ============================================ */

/* Primary Button (Coral Orange) */
.btn-primary,
.ast-button,
.button,
input[type="submit"],
button[type="submit"],
.wp-block-button__link {
    display: inline-block;
    background-color: var(--hurghada-coral);
    color: var(--hurghada-white) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover,
.ast-button:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--hurghada-coral-warm);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Secondary Button (Desert Gold) */
.btn-secondary {
    background-color: var(--hurghada-gold);
    color: var(--hurghada-white) !important;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--hurghada-desert-amber);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--hurghada-white) !important;
    font-weight: 700;
    padding: 1rem 2rem;
    border: 2px solid var(--hurghada-white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--hurghada-white);
    color: var(--hurghada-turquoise) !important;
    transform: translateY(-3px);
}

/* ============================================
   Links
   ============================================ */
a {
    color: var(--hurghada-azure);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--hurghada-coral);
}

.entry-content a {
    color: var(--hurghada-azure);
    text-decoration: underline;
    text-decoration-color: var(--hurghada-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--hurghada-coral);
    text-decoration-color: var(--hurghada-coral);
}

/* ============================================
   Category Cards & Featured Sections
   ============================================ */
.category-card,
.featured-card,
.service-card {
    background-color: var(--hurghada-sand-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.category-card:hover,
.featured-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--hurghada-gold);
}

.category-card h3,
.featured-card h3,
.service-card h3 {
    color: var(--hurghada-teal);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.category-card p,
.featured-card p,
.service-card p {
    color: var(--hurghada-charcoal);
    line-height: 1.7;
}

/* Category Icon */
.category-icon,
.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--hurghada-coral);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.75rem;
    color: var(--hurghada-white);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Blog Posts & Archive Pages
   ============================================ */
.ast-article-single,
.ast-article-post,
article {
    background-color: var(--hurghada-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
    transition: all var(--transition-normal);
}

.ast-article-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Featured Image */
.post-thumbnail img,
.wp-post-image {
    border-radius: var(--radius-md);
    transition: all var(--transition-slow);
}

.post-thumbnail img:hover {
    transform: scale(1.05);
}

/* Post Title */
.entry-title a {
    color: var(--hurghada-teal);
    transition: color var(--transition-fast);
}

.entry-title a:hover {
    color: var(--hurghada-coral);
}

/* Post Meta */
.entry-meta,
.post-meta {
    color: var(--hurghada-azure);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.entry-meta a {
    color: var(--hurghada-azure);
}

.entry-meta a:hover {
    color: var(--hurghada-coral);
}

/* Read More Link */
.ast-read-more,
.more-link {
    color: var(--hurghada-coral) !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.ast-read-more:hover,
.more-link:hover {
    color: var(--hurghada-gold) !important;
    transform: translateX(5px);
}

/* ============================================
   Sidebar & Widgets
   ============================================ */
.widget {
    background-color: var(--hurghada-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    color: var(--hurghada-teal);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--hurghada-coral);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--hurghada-gray-light);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--hurghada-charcoal);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget ul li a:hover {
    color: var(--hurghada-coral);
    padding-left: 0.5rem;
}

.widget ul li a::before {
    content: '→';
    color: var(--hurghada-gold);
    font-weight: bold;
}

/* ============================================
   Affiliate Widgets & Comparison Tables
   ============================================ */
.affiliate-widget,
.comparison-table-wrapper {
    background-color: var(--hurghada-warm-white);
    border: 3px solid var(--hurghada-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-md);
}

.affiliate-widget h3,
.comparison-table-wrapper h3 {
    color: var(--hurghada-teal);
    margin-bottom: var(--space-md);
}

.affiliate-cta {
    background-color: var(--hurghada-coral);
    color: var(--hurghada-white) !important;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-align: center;
    display: inline-block;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.affiliate-cta:hover {
    background-color: var(--hurghada-coral-warm);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.ast-breadcrumbs,
.breadcrumb {
    background-color: var(--hurghada-warm-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
}

.ast-breadcrumbs a {
    color: var(--hurghada-azure);
    text-decoration: none;
}

.ast-breadcrumbs a:hover {
    color: var(--hurghada-coral);
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.site-footer,
.footer-sml-layout {
    background-color: var(--hurghada-teal) !important;
    color: var(--hurghada-warm-white) !important;
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hurghada-coral), var(--hurghada-gold), var(--hurghada-turquoise));
}

.footer-widget-area {
    margin-bottom: var(--space-xl);
}

.footer-widget-area h2,
.footer-widget-area .widget-title {
    color: var(--hurghada-white) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget-area a {
    color: var(--hurghada-gold) !important;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-widget-area a:hover {
    color: var(--hurghada-coral) !important;
    padding-left: 0.5rem;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
}

.footer-widget-area ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-area ul li:last-child {
    border-bottom: none;
}

/* Copyright Bar */
.ast-small-footer {
    background-color: rgba(0, 0, 0, 0.2) !important;
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--hurghada-warm-white) !important;
}

.ast-small-footer a {
    color: var(--hurghada-gold) !important;
}

.ast-small-footer a:hover {
    color: var(--hurghada-coral) !important;
}

/* ============================================
   Search & Forms
   ============================================ */input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 2px solid var(--hurghada-gray-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--hurghada-white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--hurghada-turquoise);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Search Form */
.ast-search-menu-icon form,
.search-form {
    position: relative;
}

.search-form input[type="search"] {
    padding-right: 3rem;
}

.search-form button[type="submit"],
.search-form input[type="submit"] {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--hurghada-coral);
    border: none;
    padding: 0.5rem 1rem;
}

/* ============================================
   Blockquotes & Special Elements
   ============================================ */
blockquote {
    background-color: var(--hurghada-warm-white);
    border-left: 5px solid var(--hurghada-coral);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--hurghada-charcoal);
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--hurghada-gold);
    font-family: Georgia, serif;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

/* ============================================
   Pagination
   ============================================ */
.ast-pagination,
.pagination {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-xl) 0;
}

.ast-pagination a,
.ast-pagination span,
.page-numbers {
    background-color: var(--hurghada-white);
    color: var(--hurghada-charcoal);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 2px solid var(--hurghada-gray-light);
    font-weight: 600;
}

.ast-pagination a:hover,
.page-numbers:hover {
    background-color: var(--hurghada-turquoise);
    color: var(--hurghada-white);
    border-color: var(--hurghada-turquoise);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ast-pagination .current,
.page-numbers.current {
    background-color: var(--hurghada-coral);
    color: var(--hurghada-white);
    border-color: var(--hurghada-coral);
}

/* ============================================
   Responsive Utilities
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --space-xl: 2.5rem;
        --space-2xl: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
    }
    
    .hero-section,
    .banner-section {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .category-card,
    .featured-card,
    .service-card {
        margin-bottom: var(--space-lg);
    }
    
    .site-title a {
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--hurghada-coral);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: var(--hurghada-coral);
    color: var(--hurghada-white);
    padding: 1rem;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion for Users Who Prefer It */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .widget,
    .affiliate-widget,
    .hero-buttons,
    .ast-pagination {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}

/* ============================================
   Performance Optimizations
   ============================================ */

/* GPU Acceleration for Transforms */
.category-card,
.featured-card,
.service-card,
.ast-article-post,
.btn-primary,
.btn-secondary,
.btn-outline {
    will-change: transform;
}

/* Lazy Loading Images Placeholder */
img[loading="lazy"] {
    background-color: var(--hurghada-sand-soft);
}

/* ============================================
   END OF CUSTOM STYLES
   ============================================ */
