/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *

 */

:root {
  --primary-color: #98ee99; /* Mint Green from mockup */
  --primary-hover: #7cd97d;
  --secondary-color: #00a8cc;
  --text-color: #111111;
  --text-muted: #555555;
  --bg-color: #ffffff;
  --bg-alt: #f0f8ff; /* Light blue-ish for background sections */
  --border-color: #eeeeee;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-family: 'Outfit', sans-serif;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #111;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(152, 238, 153, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: #333;
  color: #333;
}

.btn-outline:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  height: 90px;
  display: flex;
  align-items: center;
  background: #fff;
  z-index: 1000;
  position: relative;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  color: var(--text-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  width: 30px;
  height: 3px;
  background: #111;
  border-radius: 3px;
}

/* Hero Section */
.hero {
  display: flex;
  min-height: 600px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero-map-container {
  flex: 1.2;
  height: 600px;
  z-index: 1;
}

#map {
  height: 100% !important;
  width: 100%;
}

.hero-content {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}

/* Decorative Waves at top of content */
.hero-decor-waves {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 120px;
  z-index: 0;
  pointer-events: none;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Big Wave Divider below hero */
.hero-bottom-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 10;
  pointer-events: none;
}

.hero-bottom-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Features Section */
.features {
  padding: 120px 0 100px;
  background-color: var(--bg-alt); /* Light blue background for features */
  text-align: center;
  position: relative;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-card {
  padding: 40px 30px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.feature-icon {
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon img, .feature-icon svg {
  max-width: 100%;
  max-height: 100%;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Static Pages (About, Contact, etc.) */
.static-page {
  padding-bottom: 80px;
}

.static-hero {
  background-color: var(--bg-alt);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.static-hero h1 {
  font-size: 3rem;
  margin-bottom: 0;
}

.static-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
}

.static-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.static-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.static-content ul, .static-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.static-content li {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.static-content strong {
  color: var(--text-color);
}

.static-content-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Playground Detail Page */
.playground-show {
  padding-bottom: 80px;
}

.playground-hero {
  background-color: var(--bg-alt);
  padding: 60px 0 40px;
  margin-bottom: 40px;
}

.playground-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.playground-title-area h1 {
  font-size: 2.75rem;
  margin-bottom: 10px;
}

.playground-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rating-badge {
  background: var(--primary-color);
  color: #111;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.playground-main-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.playground-visual-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.satellite-embed-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.satellite-embed-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.playground-description-card {
  padding: 30px;
  border-top: 1px solid var(--border-color);
}

.playground-description-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.playground-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

/* Comments Section */
.comments-section {
  margin-top: 20px;
}

.comment-card {
  padding: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comment-user {
  font-weight: 700;
  font-size: 1.05rem;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-rating {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  background: #fff9c4;
  padding: 3px 8px;
  border-radius: 5px;
}

.comment-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Comment Form */
.comment-form-card {
  background: #fcfcfc;
  padding: 30px;
  border-radius: 20px;
  border: 2px dashed var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.admin-actions {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
}

@media (max-width: 992px) {
  .playground-main-grid {
    grid-template-columns: 1fr;
  }
  
  .playground-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .satellite-embed-container {
    height: 400px;
  }
  
  .playground-title-area h1 {
    font-size: 2.25rem;
  }
}

/* Flash Messages */
.flash {
  padding: 15px 25px;
  margin: 20px 0;
  border-radius: 10px;
  font-weight: 600;
}

.flash-notice {
  background-color: #e8f5e9;
  color: #2e7d32;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.1);
}

.flash-alert {
  background-color: #ffebee;
  color: #c62828;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.1);
}

/* Footer */
.footer {
  padding: 60px 0;
  background-color: #fff;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--primary-hover);
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .navbar {
    height: 80px;
  }
  
  .navbar-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 30px 20px;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    z-index: 999;
  }

  .navbar-nav.active {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-auth {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
  }

  .nav-auth .btn {
    width: 100%;
  }
  
  .navbar-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
  }

  .hero-map-container {
    height: 350px;
    width: 100%;
    flex: none;
  }

  .hero-content {
    padding: 60px 20px 100px;
    flex: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-decor-waves {
    height: 80px;
  }

  .features {
    padding-top: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 10px;
  }

  .feature-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 30px;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
  }

  .feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  .footer-inner {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}
