/* ==========================================================================
   Metin2 Singleplayer - additions for the guide pages and the language hint.
   Loaded after style.css; uses its variables and components.
   ========================================================================== */

/* Headings that changed level keep the look of the level they had. */
.sub-download-card h3 { font-size: 1.15rem; color: var(--gold-light); margin-bottom: 8px; }
.community-thanks-banner h3 { font-size: 1.2rem; color: var(--gold-light); margin-bottom: 10px; }
.security-callout-content h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold-light); margin-bottom: 6px; font-weight: 700; }
.footer-links-group h3 { font-family: var(--font-serif); color: var(--gold-light); font-size: 1rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* The logo text where the page has an H1 of its own. */
.logo-text-box .logo-title { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; letter-spacing: 1px; text-transform: none; }
.site-footer .logo-text-box .logo-title { color: #fff; }

/* The home page's navigation has eleven entries: they never wrap, and the menu button comes earlier. */
.nav-link, .logo-text-box h1, .logo-text-box .logo-title { white-space: nowrap; }
@media (max-width: 1560px) {
  html[data-page-lang] .nav-links { display: none; }
  html[data-page-lang] .mobile-toggle { display: block; }
  html[data-page-lang] .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; padding: 20px; gap: 14px;
    background: rgba(7,5,3,.98); border-bottom: 1px solid var(--border-gold);
    max-height: calc(100dvh - 190px); overflow-y: auto;
  }
}

/* Language switcher made of links. */
a.lang-btn { text-decoration: none; display: inline-block; line-height: 1.4; }

/* "This page is available in English" bar. */
.lang-hint { position: relative; z-index: 2; text-align: center; padding: 8px 16px; font-size: 0.88rem; background: rgba(42, 115, 201, 0.14); border-bottom: 1px solid rgba(42, 115, 201, 0.35); }
.lang-hint[hidden] { display: none; }
.lang-hint a { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.lang-hint a:hover { text-decoration: underline; }

/* Cards that are links. */
a.feature-card { text-decoration: none; color: inherit; }
a.feature-card .feature-footer-tag { color: var(--gold-main); }
.section-more { text-align: center; margin-top: 32px; }
.section-more a, .footer-lang a { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.section-more a:hover, .footer-lang a:hover { text-decoration: underline; }
.footer-lang { margin-top: 8px; }

/* Guide page: heading block. */
.page-hero { position: relative; padding: 56px 0 8px; text-align: center; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; color: var(--gold-dark); }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-light); }
.page-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 900; line-height: 1.18; margin: 0 auto 18px; max-width: 920px; }
.page-lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--text-secondary); max-width: 780px; margin: 0 auto 30px; }
.page-hero .hero-cta-group { margin-bottom: 0; }

/* Guide page: article. */
.page-body { padding: 48px 0 80px; }
.page-article { max-width: 880px; margin: 0 auto; background: linear-gradient(180deg, rgba(26, 20, 12, 0.9), rgba(16, 12, 7, 0.9)); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 40px; position: relative; }
.page-article::before { content: ''; position: absolute; top: -1px; left: 40px; right: 40px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-main), transparent); }
.page-article h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); color: var(--gold-light); margin: 34px 0 14px; }
.page-article h2:first-child { margin-top: 0; }
.page-article h3 { font-size: 1.12rem; color: var(--text-primary); margin: 22px 0 8px; }
.page-article p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.page-article ul, .page-article ol { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin: 0 0 18px 22px; }
.page-article li { margin-bottom: 8px; }
.page-article li::marker { color: var(--gold-main); font-weight: 700; }
.page-article strong { color: var(--text-primary); }
.page-article a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(233, 182, 75, 0.45); text-underline-offset: 3px; }
.page-article a:hover { color: #fff; }
.page-article .step-code { white-space: nowrap; }
.page-article ol.steps-list { list-style: none; margin-left: 0; counter-reset: step; }
.page-article ol.steps-list > li { counter-increment: step; position: relative; padding: 4px 0 4px 58px; margin-bottom: 18px; min-height: 44px; }
.page-article ol.steps-list > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-btn-gradient); color: #140e05; font-family: var(--font-serif); font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(233, 182, 75, 0.35); }
.page-figure { margin: 28px 0; }
.page-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border-dark); }
.page-figure figcaption { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 8px; }
.page-note { border-left: 4px solid var(--gold-main); background: rgba(30, 22, 12, 0.7); border-radius: var(--radius-sm); padding: 14px 18px; margin: 24px 0 0; font-size: 0.9rem; }
.page-article .page-note { margin-bottom: 0; }

/* FAQ page: questions always open. */
.faq-static { max-width: 880px; }
.faq-static .faq-item .faq-question { cursor: default; font-size: 1.08rem; margin: 0; }
.faq-static .faq-item .faq-question:hover { color: var(--text-primary); }
.faq-static .faq-item .faq-answer { max-height: none; padding-bottom: 22px; }
.faq-static .faq-answer a { color: var(--gold-light); }

/* Guide page: related guides and the closing call to action. */
.related-wrap { max-width: 1200px; margin: 64px auto 0; }
.related-title { text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 28px; }
.page-cta { margin-top: 56px; }
.page-cta.support-banner::before { content: '⚔️'; }

@media (max-width: 600px) {
  .page-article { padding: 24px 18px; }
  .page-article .step-code { white-space: normal; overflow-wrap: anywhere; }
  .navbar .logo-text-box .logo-title { font-size: 1rem; }
}
