/* Travel Explorer - Production CSS */
/* Save as: public/style.css */

:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.85), rgba(40, 167, 69, 0.75)), 
              url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1920') center/cover;
  color: white;
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Weather Card */
.weather-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
}

.weather-icon {
  width: 80px;
  height: 80px;
}

/* Photo Gallery Grid */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.photo-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--light-gray);
  height: 220px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.photo-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow);
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-expand-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white !important;
  color: #343a40 !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.2s ease;
}

.photo-expand-btn:hover {
  transform: scale(1.2);
  background: var(--primary-color) !important;
  color: white !important;
}

/* Photo Modal */
.photo-modal .modal-dialog {
  max-width: 95vw;
}

.photo-modal .modal-content {
  background: #1a1a1a;
  border: none;
  border-radius: 12px;
}

.photo-modal .modal-header {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.photo-modal .modal-body {
  background: #1a1a1a;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Attraction Cards */
.attraction-card {
  transition: var(--transition);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  height: 100%;
  background: white;
}

.attraction-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-color);
}

.attraction-card .card-body {
  padding: 1.75rem;
}

.attraction-card .card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  background-color: rgba(52, 58, 64, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
  
  .photo-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .photo-item {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .photo-item {
    height: 180px;
  }
  
  .photo-modal .modal-body {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .photo-item {
    height: 150px;
  }
  
  .modal-image {
    max-height: 70vh;
  }
}