/* Field Guide Page Styles
 * Scoped under .field-guide-page to prevent conflicts with main site styles
 */

/* Base text color for Field Guide pages */
.field-guide-page {
  color: #2d3d2d;
}

/* Hero Section (main marketing page) */
.field-guide-page .fg-hero {
  position: relative;
  text-align: center;
  padding: 160px 20px 220px;
  background-color: #3d4d3d;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: white;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -120px;
  margin-bottom: 40px;
  width: 100vw;
}

.field-guide-page .fg-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 93, 74, 0.75) 0%, rgba(61, 77, 61, 0.8) 100%);
}

.field-guide-page .fg-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .field-guide-page .fg-hero {
    margin-top: -80px;
  }
}

.field-guide-page .fg-hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.field-guide-page .fg-hero .fg-tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 30px;
}

/* Header Section (support/privacy pages) */
.field-guide-page .fg-header {
  position: relative;
  text-align: center;
  padding: 160px 20px 220px;
  background-color: #3d4d3d;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: white;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -120px;
  margin-bottom: 40px;
  width: 100vw;
}

@media (max-width: 768px) {
  .field-guide-page .fg-header {
    margin-top: -80px;
  }
}

.field-guide-page .fg-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-guide-page .fg-header p {
  opacity: 0.9;
}

.field-guide-page .fg-header a {
  color: white;
  text-decoration: underline;
}

.field-guide-page .fg-header a:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .field-guide-page .fg-hero h1,
  .field-guide-page .fg-header h1 {
    font-size: 1.8rem;
  }
}

/* App Store Badge */
.field-guide-page .fg-app-store-badge {
  display: inline-block;
  background: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.field-guide-page .fg-app-store-badge:hover {
  background: #333;
}

/* Container */
.field-guide-page .fg-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.field-guide-page .fg-container-narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Sections */
.field-guide-page .fg-section {
  margin-bottom: 50px;
}

.field-guide-page .fg-section h2 {
  font-size: 1.5rem;
  color: #3d4d3d;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4a5d4a;
}

.field-guide-page .fg-section p {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.6;
}

/* Feature Grid */
.field-guide-page .fg-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Feature Card */
.field-guide-page .fg-feature-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.field-guide-page .fg-feature-card h3 {
  color: #3d4d3d;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.field-guide-page .fg-feature-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Content List (two-column arrow list) */
.field-guide-page .fg-content-list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  margin-top: 16px;
  padding: 0;
}

.field-guide-page .fg-content-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  break-inside: avoid;
}

.field-guide-page .fg-content-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: #4a5d4a;
}

@media (max-width: 600px) {
  .field-guide-page .fg-content-list {
    columns: 1;
  }
}

/* Highlight Box */
.field-guide-page .fg-highlight-box {
  background: #f0f4f0;
  border-left: 4px solid #4a5d4a;
  padding: 20px 24px;
  margin: 24px 0;
}

.field-guide-page .fg-highlight-box p {
  margin: 0;
  font-style: italic;
}

/* Specs Box */
.field-guide-page .fg-specs {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.field-guide-page .fg-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.field-guide-page .fg-spec-item {
  text-align: center;
  padding: 16px;
}

.field-guide-page .fg-spec-item .fg-number {
  font-size: 2rem;
  font-weight: 700;
  color: #4a5d4a;
}

.field-guide-page .fg-spec-item .fg-label {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* FAQ Item */
.field-guide-page .fg-faq-item {
  background: white;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.field-guide-page .fg-faq-item h3 {
  color: #3d4d3d;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.field-guide-page .fg-faq-item p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

/* Contact Box */
.field-guide-page .fg-contact-box {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.field-guide-page .fg-contact-box h3 {
  color: #3d4d3d;
  margin-bottom: 12px;
}

.field-guide-page .fg-contact-box a {
  color: #4a5d4a;
  font-weight: 500;
  text-decoration: none;
}

.field-guide-page .fg-contact-box a:hover {
  text-decoration: underline;
}

.field-guide-page .fg-contact-box p {
  margin-bottom: 8px;
}

/* Tip Box */
.field-guide-page .fg-tip-box {
  background: #f0f4f0;
  border-left: 4px solid #4a5d4a;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.field-guide-page .fg-tip-box strong {
  color: #3d4d3d;
}

/* Steps (numbered list) */
.field-guide-page .fg-steps {
  counter-reset: step-counter;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.field-guide-page .fg-steps li {
  counter-increment: step-counter;
  padding: 12px 0 12px 50px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.field-guide-page .fg-steps li:last-child {
  border-bottom: none;
}

.field-guide-page .fg-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  background: #4a5d4a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Version Info */
.field-guide-page .fg-version-info {
  background: #f5f5f5;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
}

/* Privacy Content Box */
.field-guide-page .fg-content-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .field-guide-page .fg-content-box {
    padding: 24px;
  }
}

.field-guide-page .fg-content-box h2 {
  font-size: 1.2rem;
  color: #3d4d3d;
  margin: 30px 0 12px 0;
}

.field-guide-page .fg-content-box h2:first-of-type {
  margin-top: 0;
}

.field-guide-page .fg-content-box p {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.7;
}

.field-guide-page .fg-content-box ul {
  margin: 0 0 16px 24px;
  color: #444;
}

.field-guide-page .fg-content-box li {
  margin-bottom: 8px;
}

.field-guide-page .fg-updated {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

/* Screenshot Gallery */
.field-guide-page .fg-screenshot-gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.field-guide-page .fg-screenshot {
  flex: 0 1 auto;
  max-width: 200px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
}

.field-guide-page .fg-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .field-guide-page .fg-screenshot-gallery {
    flex-wrap: wrap;
    gap: 16px;
  }

  .field-guide-page .fg-screenshot {
    max-width: 160px;
  }
}

@media (max-width: 500px) {
  .field-guide-page .fg-screenshot {
    max-width: 140px;
  }
}

/* Screenshot Grid (for desktop screenshots) */
.field-guide-page .fg-screenshot-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.field-guide-page .fg-screenshot-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.field-guide-page .fg-screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.field-guide-page .fg-screenshot-caption {
  padding: 12px 16px;
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  background: #f9f9f9;
}

/* Blue overlay variant for Milky Way Planner */
.field-guide-page.mwp-page .fg-hero-overlay,
.field-guide-page.mwp-page .fg-header .fg-hero-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.8) 0%, rgba(20, 40, 70, 0.85) 100%);
}

/* Background color for Field Guide pages */
.field-guide-page {
  background: #fafafa;
  margin: 0 -9999px;
  padding: 0 9999px;
}
