/*
Theme Name: Outdoors Morocco
Description: A professional travel and adventure tourism theme for Morocco tours and experiences. Features responsive design, Elementor compatibility, and modern UI components.
Author: Outdoors Morocco Team
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: outdoors-morocco
Tags: travel, tourism, adventure, morocco, tours, responsive, elementor-ready, custom-post-types
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Import Tailwind CSS */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom CSS Variables */
:root {
  --primary-orange: #f97316;
  --primary-teal: #0d9488;
  --primary-green: #10b981;
  --text-gray: #374151;
  --bg-gray: #f9fafb;
  --border-gray: #e5e7eb;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-gray);
}

/* WordPress Admin Bar Compatibility */
.admin-bar .fixed {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .fixed {
    top: 46px;
  }
}

/* Custom Button Styles */
.btn-primary {
  background-color: var(--primary-orange);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--primary-teal);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #0f766e;
  transform: translateY(-1px);
}

/* Card Styles */
.tour-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.tour-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tour-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tour-card:hover img {
  transform: scale(1.05);
}

/* Rating Stars */
.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star {
  width: 1rem;
  height: 1rem;
  color: #fbbf24;
  fill: currentColor;
}

.star.empty {
  color: #d1d5db;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-bestseller {
  background-color: var(--primary-orange);
  color: white;
}

.badge-new {
  background-color: var(--primary-green);
  color: white;
}

.badge-special {
  background-color: #dc2626;
  color: white;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.8), rgba(13, 148, 136, 0.8));
  color: white;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.main-nav.scrolled {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled .nav-link {
  color: var(--text-gray);
}

.main-nav.scrolled .nav-link:hover {
  color: var(--primary-orange);
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #fed7aa;
}

.nav-link.active {
  color: var(--primary-orange);
}

/* Footer */
.main-footer {
  background-color: #111827;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .tour-card {
    margin-bottom: 1.5rem;
  }
}

/* Elementor Compatibility */
.elementor-widget-container {
  max-width: 100%;
}

.elementor-section {
  position: relative;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

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

/* Print Styles */
@media print {
  .main-nav,
  .main-footer,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
}

