/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: #2563eb;
}

.logo-text {
  color: #1f2937;
}

/* Navigation */
.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #4b5563;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #f3f4f6;
  color: #2563eb;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

/* Featured Webcam */
.featured-webcam {
  padding: 4rem 0;
  background: #f9fafb;
}

.featured-webcam h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.webcam-container {
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.webcam-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.webcam-description {
  text-align: center;
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Content Blocks */
.content-blocks {
  padding: 4rem 0;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.content-block {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.content-block:hover {
  transform: translateY(-5px);
}

.block-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.content-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.content-block p {
  color: #6b7280;
  line-height: 1.7;
}

/* Cities Preview */
.cities-preview {
  padding: 4rem 0;
  background: #f9fafb;
}

.cities-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.city-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.city-card:hover {
  transform: translateY(-5px);
}

.city-card.featured {
  border: 2px solid #2563eb;
}

.city-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.city-info {
  padding: 2rem;
}

.city-info h2,
.city-info h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.city-info p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.city-features {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.feature {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Webcam Page */
.webcam-page {
  padding: 2rem 0;
}

.webcam-header {
  text-align: center;
  margin-bottom: 3rem;
}

.webcam-header h1 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.webcam-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
}

.webcam-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.content-main h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.content-main h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #1f2937;
}

.content-main p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #4b5563;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-box {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.info-box h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-box li:last-child {
  border-bottom: none;
}

.related-webcams h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  transition: background-color 0.3s;
}

.related-item:hover {
  background: #e5e7eb;
}

.related-item img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

/* Places Page */
.places-grid {
  padding: 2rem 0;
}

.info-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.info-content h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.info-content > p {
  text-align: center;
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.feature-item p {
  color: #6b7280;
  line-height: 1.7;
}

/* Contact Page */
.contact-content {
  padding: 2rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2,
.contact-additional h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.contact-info p,
.contact-additional p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #4b5563;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.contact-item a {
  color: #2563eb;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-additional h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #1f2937;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
}

.faq-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.faq-item p {
  margin: 0;
  color: #6b7280;
}

/* Legal Pages */
.legal-content {
  padding: 2rem 0;
}

.legal-text {
  max-width: 800px;
  margin: 0 auto;
}

.legal-text h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: #1f2937;
}

.legal-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #4b5563;
}

.legal-text ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-text li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Footer */
.footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #60a5fa;
}

.footer-section .logo {
  color: #60a5fa;
  margin-bottom: 1rem;
}

.footer-section .logo-text {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    box-shadow: none;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    justify-content: flex-start;
    align-items: stretch;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    margin: 0;
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f9fafb;
    margin-top: 0;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 400px;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .dropdown-menu a:hover {
    background-color: #e5e7eb;
  }

  /* Close button for mobile menu */
  .nav-menu::before {
    content: "✕";
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    z-index: 1001;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .webcam-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }

  .blocks-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .webcam-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .featured-webcam,
  .content-blocks,
  .cities-preview {
    padding: 2rem 0;
  }

  .city-info {
    padding: 1.5rem;
  }

  .content-block {
    padding: 1.5rem;
  }
}
