/* Guide Page Styles */

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .header-top .nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }
}

/* Hero Section */
.guide-hero {
  background: linear-gradient(135deg, #1e4da1 0%, #2c5aa0 100%);
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.guide-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.guide-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

/* Guide Content */
.guide-content {
  padding: 2rem 0;
}

.guide-section {
  margin-bottom: 4rem;
}

.guide-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
}

/* Guide Cards */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.guide-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.guide-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.guide-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

.guide-card p {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  text-align: center;
}

.guide-card ul {
  list-style: none;
  padding: 0;
}

.guide-card li {
  padding: 0.5rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 1.5rem;
}

.guide-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e4da1;
  font-weight: bold;
}

/* Feature Guide */
.feature-guide {
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.feature-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-demo {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.demo-search {
  display: flex;
  gap: 0.5rem;
}

.demo-search input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
}

.demo-search button {
  padding: 0.75rem 1.5rem;
  background: #1e4da1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.filter-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-chip.active {
  background: #1e4da1;
  color: white;
  border-color: #1e4da1;
}

.filter-options {
  display: flex;
  gap: 1rem;
}

.filter-options select {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
}

.map-demo {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-mock {
  background: linear-gradient(45deg, #e3f2fd, #bbdefb);
  border-radius: 8px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

.map-pin:nth-child(1) {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.map-pin:nth-child(2) {
  top: 60%;
  right: 25%;
  animation-delay: 0.5s;
}

.map-pin:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 1s;
}

.map-mock p {
  color: #666;
  font-weight: 500;
  z-index: 1;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.feature-tips h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-tips ul {
  list-style: none;
  padding: 0;
}

.feature-tips li {
  padding: 0.5rem 0;
  color: var(--text-color);
  opacity: 0.8;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-3px);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tip-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.tip-card p {
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: rgba(30, 77, 161, 0.05);
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
  flex: 1;
  padding-right: 1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e4da1;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
}

/* Contact */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.contact-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.contact-card p {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.contact-method:hover {
  background: #1e4da1;
  color: white;
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.2rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1e4da1;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(30, 77, 161, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #2c5aa0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 77, 161, 0.4);
}

/* Dark Mode */
[data-theme="dark"] .guide-hero {
  background: linear-gradient(135deg, #1a3d8a 0%, #2a4a8f 100%);
}

[data-theme="dark"] .guide-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .tip-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .contact-card {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-demo,
[data-theme="dark"] .map-demo {
  background: var(--input-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .demo-search input,
[data-theme="dark"] .filter-options select {
  background: var(--input-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .filter-chip {
  background: var(--input-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .filter-chip.active {
  background: #1e4da1;
  color: white;
}

[data-theme="dark"] .contact-method {
  background: var(--input-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .contact-method:hover {
  background: #1e4da1;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .guide-hero h1 {
    font-size: 2.5rem;
  }

  .guide-hero p {
    font-size: 1.1rem;
  }

  .guide-section h2 {
    font-size: 2rem;
  }

  .guide-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
  }

  .scroll-to-top {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .guide-hero {
    padding: 3rem 0;
  }

  .guide-hero h1 {
    font-size: 2rem;
  }

  .guide-card,
  .feature-item,
  .tip-card,
  .faq-item,
  .contact-card {
    padding: 1.5rem;
  }

  .faq-question {
    padding: 1rem;
  }

  .faq-question h3 {
    font-size: 1.1rem;
  }

  .contact-method {
    padding: 0.8rem 1.2rem;
  }
}
