/* Python Geolocation API Tutorial Page Styles */

.header {
  background-color: white !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* ============================================================
   HERO
   ============================================================ */

.py-hero-section {
  background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 100%);
  padding: 64px 0 56px;
}

.py-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.py-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 24px;
}

.py-breadcrumb-link {
  color: var(--primary-500);
  text-decoration: none;
}

.py-breadcrumb-link:hover {
  text-decoration: underline;
}

.py-breadcrumb-sep {
  color: var(--text-muted);
}

.py-breadcrumb-current {
  color: var(--text-muted);
}

.py-hero-badge {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary-500);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(55, 125, 255, 0.2);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.py-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 20px;
}

.py-hero-code {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 36px;
  background: var(--primary-50);
  color: var(--primary-500);
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(55, 125, 255, 0.2);
}

.py-hero-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.py-hero-description code {
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 15px;
  color: var(--text-color);
}

.py-hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.py-hero-button-primary {
  display: inline-block;
  background: var(--primary-500);
  color: white;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.py-hero-button-primary:hover {
  background: var(--primary-600, #2563eb);
  transform: translateY(-1px);
}

.py-hero-button-secondary {
  display: inline-block;
  background: white;
  color: var(--primary-500);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--primary-500);
  transition: background 0.2s ease, transform 0.15s ease;
}

.py-hero-button-secondary:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
}

/* Checklist */
.py-hero-checklist {
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.py-hero-checklist-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.py-hero-checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.py-hero-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-color);
}

.py-hero-checklist-item svg {
  color: #22c55e;
  flex-shrink: 0;
}


/* Table of Contents */
.py-toc {
  border-left: 3px solid var(--primary-500);
  padding: 16px 20px;
  background: white;
  border-radius: 0 8px 8px 0;
}

.py-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.py-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.py-toc-link {
  color: var(--primary-500);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.py-toc-link:hover {
  text-decoration: underline;
}

/* ============================================================
   TUTORIAL
   ============================================================ */

.py-tutorial-section {
  padding: 72px 0;
  background: white;
}

.py-tutorial-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Prerequisites */
.py-prerequisites {
  background: var(--background-50, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 56px;
}

.py-prerequisites-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.py-prerequisites-list {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--text-muted);
}

.py-prerequisites-list code {
  background: rgba(55, 125, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-500);
}

/* Step */
.py-step {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}

.py-step:last-child {
  margin-bottom: 0;
}

.py-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.py-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-500);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.py-step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.py-step-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.py-step-description-spaced {
  margin-top: 20px;
}

.py-step-description code {
  background: rgba(55, 125, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-500);
}

.py-tutorial-container pre {
  border-radius: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.py-tutorial-container pre code {
  font-size: 13.5px;
  line-height: 1.65;
}

/* Callouts */
.py-callout {
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 16px;
}

.py-callout code {
  background: rgba(0,0,0,0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
}

.py-callout a.py-inline-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.py-callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.py-callout-tip {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #166534;
}

.py-inline-link {
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 500;
}

.py-inline-link:hover {
  text-decoration: underline;
}

/* ============================================================
   FIELD REFERENCE
   ============================================================ */

.py-reference-section {
  padding: 72px 0;
  background: var(--background-50, #f8fafc);
  scroll-margin-top: 80px;
}

.py-reference-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.py-reference-header {
  margin-bottom: 36px;
}

.py-reference-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.py-reference-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.py-reference-subtitle code {
  background: rgba(55, 125, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--primary-500);
}

/* Response example card */
.py-reference-example {
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}

.py-reference-example-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.py-reference-method {
  background: #22c55e;
  color: #000;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.py-reference-endpoint {
  color: #94a3b8;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 12px;
  word-break: break-all;
}

.py-reference-example pre {
  margin: 0;
  border-radius: 0;
}

.py-reference-example pre code {
  font-size: 13px;
  line-height: 1.65;
}

/* Field tables */
.py-reference-group-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 14px;
  margin-top: 40px;
}

.py-reference-group-title code {
  background: rgba(55, 125, 255, 0.1);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 15px;
  color: var(--primary-500);
}

.py-reference-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: white;
}

.py-reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.py-reference-table thead {
  background: var(--background-50, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.py-reference-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.py-reference-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-color);
  line-height: 1.5;
  vertical-align: top;
}

.py-reference-table tr:last-child td {
  border-bottom: none;
}

.py-reference-table td code {
  background: rgba(55, 125, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--primary-500);
  white-space: nowrap;
}

/* ============================================================
   FAQ
   ============================================================ */

.py-faq-section {
  padding: 72px 0;
  background: white;
}

.py-faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.py-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.py-faq-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.py-faq-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.py-faq-list {
  display: flex;
  flex-direction: column;
}

.py-faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.py-faq-item:last-child {
  border-bottom: none;
}

.py-faq-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 14px;
  line-height: 1.4;
}

.py-faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.py-faq-answer p {
  margin-bottom: 12px;
}

.py-faq-answer p:last-child {
  margin-bottom: 0;
}

.py-faq-answer code {
  background: rgba(55, 125, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-500);
}

.py-faq-answer pre {
  border-radius: 7px;
  margin: 12px 0;
  overflow-x: auto;
}

.py-faq-answer pre code {
  font-size: 13px;
  line-height: 1.6;
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .py-hero-section {
    padding: 40px 0;
  }

  .py-hero-title {
    font-size: 28px;
  }

  .py-hero-code {
    font-size: 24px;
  }

  .py-hero-buttons {
    flex-direction: column;
  }

  .py-hero-button-primary,
  .py-hero-button-secondary {
    text-align: center;
  }

  .py-step-title {
    font-size: 18px;
  }

  .py-reference-title,
  .py-faq-title {
    font-size: 24px;
  }
}
