/* =============================================================================
   RPG World - Fantasy Marketing Page Styles

   Shared styles for all public/marketing pages using the fantasy theme.
   Used by: Home, Login, Register, About, Contact, Privacy, Terms, Pricing.

   Requires: themes.css (loaded first for base CSS custom properties)
============================================================================= */

/* =========================================================================
   Fantasy Accent Palette (extends theme tokens)
========================================================================= */
:root {
    --gold: #c9a84c;
    --gold-light: #e0c97a;
    --gold-dark: #9e7b2f;
    --emerald: #2d8a5e;
    --deep-purple: #1a0a2e;
    --midnight: #0d0815;
    --parchment: #f4eee4;
    --parchment-dark: #e6ddd0;
    --ink: #1c1714;
}

/* =========================================================================
   Fantasy Heading Font
========================================================================= */
.fantasy-heading {
    font-family: Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.02em;
}

/* =========================================================================
   Smooth Scroll & Accessibility
========================================================================= */
html.fantasy-page {
    scroll-behavior: smooth;
}

.fantasy-page a:focus-visible,
.fantasy-page button:focus-visible,
.fantasy-page .btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* =========================================================================
   Full-Width Content Override
   When ViewData["FullWidth"] is true, the layout skips the container wrapper.
   This removes the default padding from .main-content.
========================================================================= */
.main-content.full-width-content {
    padding: 0;
}

/* =========================================================================
   HERO SECTION (dark atmospheric)
========================================================================= */
.fantasy-hero {
    position: relative;
    background: linear-gradient(
        160deg,
        var(--midnight) 0%,
        var(--deep-purple) 35%,
        #2a1245 60%,
        #1a0f2e 100%
    );
    padding: 7rem 0 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Radial glow */
.fantasy-hero::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(107, 70, 193, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Star-like dots */
.fantasy-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 70% 50%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 85% 30%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1.5px 1.5px at 20% 85%, rgba(201,168,76,0.3), transparent),
        radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(201,168,76,0.2), transparent);
    pointer-events: none;
}

.fantasy-hero .hero-content {
    position: relative;
    z-index: 1;
}

/* Compact hero variant (for inner pages) */
.fantasy-hero.hero-compact {
    min-height: auto;
    padding: 4rem 0 3.5rem;
}

.fantasy-hero .hero-icon {
    font-size: 4.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.3));
}

.fantasy-hero.hero-compact .hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fantasy-hero .hero-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #f4eee4;
    margin-bottom: 0.5rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.fantasy-hero.hero-compact .hero-title {
    font-size: 2.75rem;
}

.fantasy-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(228, 220, 208, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.fantasy-hero.hero-compact .hero-subtitle {
    margin-bottom: 1.5rem;
}

.fantasy-hero .hero-date {
    font-size: 0.85rem;
    color: rgba(228, 220, 208, 0.5);
    font-style: italic;
}

.fantasy-hero .hero-divider {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 0.6em;
    margin-bottom: 1rem;
    opacity: 0.6;
}

@media (max-width: 767.98px) {
    .fantasy-hero { padding: 5rem 0 4rem; min-height: auto; }
    .fantasy-hero .hero-title { font-size: 2.25rem; }
    .fantasy-hero.hero-compact .hero-title { font-size: 2rem; }
    .fantasy-hero .hero-subtitle { font-size: 1.05rem; }
    .fantasy-hero .hero-icon { font-size: 3.5rem; }
    .fantasy-hero.hero-compact .hero-icon { font-size: 2.5rem; }
}

/* =========================================================================
   ORNAMENTAL DIVIDERS
========================================================================= */
.section-ornament {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gold-dark);
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    opacity: 0.5;
}

.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 2.5rem;
    max-width: 300px;
}
.ornament-line::before,
.ornament-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}
.ornament-line i {
    color: var(--gold-dark);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* =========================================================================
   PARCHMENT SECTIONS
========================================================================= */
.parchment-section {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
    position: relative;
}

.parchment-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 119, 90, 0.015) 2px,
            rgba(139, 119, 90, 0.015) 4px
        );
    pointer-events: none;
}

/* =========================================================================
   SECTION TITLES
========================================================================= */
.fantasy-section-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.fantasy-section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .fantasy-section-title { font-size: 1.75rem; }
}

/* =========================================================================
   FANTASY BUTTONS
========================================================================= */
.btn-quest {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--ink) !important;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}
.btn-quest:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--ink) !important;
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.35);
    transform: translateY(-1px);
}

.btn-explore {
    color: var(--gold-light) !important;
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    background: transparent;
}
.btn-explore:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background: rgba(201, 168, 76, 0.08);
}

/* =========================================================================
   GAME SYSTEM CARDS
========================================================================= */
.system-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.system-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 40, 37, 0.12);
}

.system-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.system-card.pf1e::before {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.system-card.pf2e::before {
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}

.system-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.system-card.pf1e .system-icon { background: rgba(201, 168, 76, 0.12); color: var(--gold-dark); }
.system-card.pf2e .system-icon { background: rgba(45, 138, 94, 0.1); color: var(--emerald); }

.system-card .system-label {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.system-card h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.system-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.system-tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    margin: 0.15rem;
    border: 1px solid var(--border-light);
}

/* =========================================================================
   FANTASY FEATURE CARDS
========================================================================= */
.fantasy-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.fantasy-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 40, 37, 0.1);
}

.feature-icon-wrap {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(107, 70, 193, 0.08);
    color: var(--brand-primary);
}

.fantasy-feature-card h4 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.fantasy-feature-card .feature-flavor {
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-style: italic;
    margin-bottom: 0.65rem;
    font-family: Georgia, "Times New Roman", Times, serif;
}
.fantasy-feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Feature icon color variants */
.feat-sheets .feature-icon-wrap { background: rgba(107, 70, 193, 0.08); color: var(--brand-primary); }
.feat-campaign .feature-icon-wrap { background: rgba(201, 168, 76, 0.1); color: var(--gold-dark); }
.feat-initiative .feature-icon-wrap { background: rgba(185, 45, 58, 0.08); color: var(--status-danger); }
.feat-effects .feature-icon-wrap { background: rgba(8, 145, 178, 0.08); color: var(--status-info); }
.feat-messaging .feature-icon-wrap { background: rgba(26, 122, 74, 0.08); color: var(--emerald); }
.feat-reference .feature-icon-wrap { background: rgba(107, 70, 193, 0.08); color: var(--brand-primary); }

/* =========================================================================
   SCREENSHOT SHOWCASE
========================================================================= */
.showcase-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.showcase-frame {
    background: var(--card-bg);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.showcase-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 40, 37, 0.1);
}

/* Ornamental corners */
.showcase-frame::before,
.showcase-frame::after {
    content: "";
    position: absolute;
    width: 24px; height: 24px;
    border-color: var(--gold-dark);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}
.showcase-frame::before { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; border-color: inherit; }
.showcase-frame::after { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; border-color: inherit; }

.showcase-placeholder {
    height: 220px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 0.5rem;
    color: var(--text-muted);
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 119, 90, 0.03) 10px, rgba(139, 119, 90, 0.03) 20px);
}
.showcase-placeholder i { font-size: 2rem; opacity: 0.4; }
.showcase-placeholder span { font-size: 0.85rem; font-weight: 600; }

.showcase-label {
    text-align: center;
    padding: 0.75rem;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--border-light);
    background: var(--bg-elevated);
}

@media (max-width: 767.98px) {
    .showcase-placeholder { height: 160px; }
}

/* =========================================================================
   CTA SECTION (dark atmospheric)
========================================================================= */
.fantasy-cta {
    position: relative;
    background: linear-gradient(160deg, var(--midnight) 0%, #1a0f2e 40%, var(--deep-purple) 100%);
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}
.fantasy-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(107, 70, 193, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.fantasy-cta .cta-content { position: relative; z-index: 1; }
.fantasy-cta h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.25rem; font-weight: 700;
    color: var(--parchment);
    margin-bottom: 0.75rem;
}
.fantasy-cta p {
    color: rgba(228, 220, 208, 0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
}

@media (max-width: 767.98px) {
    .fantasy-cta { padding: 3.5rem 0; }
    .fantasy-cta h2 { font-size: 1.75rem; }
}

/* =========================================================================
   FANTASY FOOTER (extends site-footer in site.css)
========================================================================= */
.fantasy-page .site-footer {
    background: var(--nav-bg);
    color: rgba(228, 220, 208, 0.6);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding: 2.5rem 0 1.5rem;
}
.fantasy-page .site-footer a {
    color: rgba(228, 220, 208, 0.6);
}
.fantasy-page .site-footer a:hover {
    color: var(--gold-light);
}

/* Scoped to .fantasy-page — the global footer in site.css owns the regular
   site footer styling. Without this scope the rule below was bleeding onto
   every page and setting color: var(--nav-text) (#e8e3dc) which is the same
   value as --bg-secondary (#e8e3dc), making the brand text invisible on the
   regular footer. */
.fantasy-page .footer-brand {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 700; font-size: 1.1rem;
    color: var(--nav-text);
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.fantasy-page .footer-brand i { color: var(--gold); }

.fantasy-page .footer-divider {
    border-top: 1px solid rgba(228, 220, 208, 0.1);
    margin: 1.5rem 0 1rem;
}

/* =========================================================================
   FANTASY NAVBAR OVERRIDES
========================================================================= */
.fantasy-page .navbar {
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.fantasy-page .navbar-brand {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.fantasy-page .navbar-brand i {
    color: var(--gold);
}

.btn-nav-login {
    color: var(--nav-text) !important;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.875rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    background: transparent;
}
.btn-nav-login:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
}
.btn-nav-register {
    background: var(--brand-primary);
    color: #fff !important;
    border: none;
    font-size: 0.875rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-nav-register:hover {
    background: var(--brand-primary-hover);
    color: #fff !important;
}

/* =========================================================================
   FANTASY FORM STYLES (for login, register, contact)
========================================================================= */
.fantasy-form-card {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.fantasy-form-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.fantasy-form-card .form-control:focus,
.fantasy-form-card .form-select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(201, 168, 76, 0.18) !important;
}

.fantasy-form-header {
    text-align: center;
    padding: 2rem 2rem 0;
}

.fantasy-form-header .form-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.2));
}

.fantasy-form-header h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.fantasy-form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fantasy-form-body {
    padding: 1.5rem 2rem 2rem;
}

.fantasy-form-footer {
    text-align: center;
    padding: 0 2rem 2rem;
}

/* Social login buttons */
.btn-social-facebook {
    background: #1877f2;
    color: #fff !important;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-social-facebook:hover {
    background: #166fe5;
    color: #fff !important;
}

.btn-social-google {
    background: var(--bg-elevated);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-medium);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-social-google:hover {
    background: var(--bg-secondary);
    color: var(--text-primary) !important;
}

/* Divider with text */
.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* =========================================================================
   FANTASY CONTENT PAGE STYLES (Privacy, Terms, About)
========================================================================= */
.fantasy-prose {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.fantasy-prose h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.fantasy-prose h2 i {
    color: var(--brand-primary);
    margin-right: 0.5rem;
}

.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.summary-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Promise / feature list items */
.promise-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}
.promise-item:last-child { border-bottom: none; }
.promise-item i { margin-top: 0.2rem; flex-shrink: 0; }

/* Policy tables */
.fantasy-prose .table {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.fantasy-prose .table thead th {
    background: var(--card-header-bg);
}

/* Check list */
.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
}
.check-list li i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Mission cards (About page) */
.mission-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.mission-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 40, 37, 0.1);
}
.mission-card .mission-icon-wrap {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-dark);
}
.mission-card h4 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.mission-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =========================================================================
   PRICING CARDS
========================================================================= */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 40, 37, 0.12);
}
.pricing-card.featured {
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.12);
}
.pricing-card.featured::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pricing-card .price {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.pricing-card .price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}
.pricing-card .price-annual {
    font-size: 0.8rem;
    color: var(--gold-dark);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.pricing-features li i {
    color: var(--emerald);
    flex-shrink: 0;
}

/* Pricing card icon */
.pricing-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.25rem;
    background: rgba(107, 70, 193, 0.08);
    color: var(--brand-primary);
}

/* Tier label */
.pricing-card .tier-label {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* Tier name heading */
.pricing-card h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Save badge inside annual price */
.pricing-card .save-badge {
    color: var(--status-success);
    font-weight: 600;
}

/* --- Tier-specific icon colors --- */
.pricing-card.tier-free .pricing-card-icon {
    background: rgba(156, 148, 140, 0.12);
    color: var(--text-muted);
}
.pricing-card.tier-adventurer .pricing-card-icon {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-dark);
}
.pricing-card.tier-legend .pricing-card-icon {
    background: rgba(107, 70, 193, 0.1);
    color: var(--brand-primary);
}

/* --- Featured tier (Adventurer) card border & glow --- */
.pricing-card.tier-adventurer {
    border-color: var(--gold);
    border-width: 2px;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.12), var(--shadow-sm);
}
.pricing-card.tier-adventurer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.pricing-card.tier-adventurer:hover {
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.2);
}

/* Legend decorative top border */
.pricing-card.tier-legend::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}

/* Featured card scaling on desktop */
@media (min-width: 992px) {
    .tier-adventurer-col {
        margin-top: -1rem;
        margin-bottom: -1rem;
    }
    .tier-adventurer-col .pricing-card {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Outline tier button */
.btn-outline-tier {
    color: var(--text-primary) !important;
    border: 1px solid var(--border-medium);
    padding: 0.65rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    background: transparent;
}
.btn-outline-tier:hover {
    border-color: var(--gold);
    color: var(--gold-dark) !important;
    background: rgba(201, 168, 76, 0.06);
}

/* Constrain cards on mobile */
@media (max-width: 991.98px) {
    .pricing-card {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================================================
   DATA-DRIVEN PRICING TIERS (Stripe catalog)
   These tier slugs match SubscriptionPlan.Code values rendered by
   PublicPricingController.Index. The legacy tier-free / tier-adventurer /
   tier-legend rules above still cover the previous hardcoded view; the rules
   below give equivalent styling for the new catalog codes plus a generic
   .tier-default fallback for any unknown code.
========================================================================= */
.pricing-card.tier-basic .pricing-card-icon {
    background: rgba(156, 148, 140, 0.12);
    color: var(--text-muted);
}
.pricing-card.tier-premium .pricing-card-icon {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-dark);
}
.pricing-card.tier-unlimited .pricing-card-icon,
.pricing-card.tier-professional .pricing-card-icon {
    background: rgba(107, 70, 193, 0.1);
    color: var(--brand-primary);
}
.pricing-card.tier-default .pricing-card-icon {
    background: rgba(156, 148, 140, 0.1);
    color: var(--text-muted);
}

/* Highlight ring for whichever tier the data marks IsHighlighted. */
.pricing-card.is-highlighted {
    border-color: var(--gold);
    border-width: 2px;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.12), var(--shadow-sm);
    position: relative;
}
.pricing-card.is-highlighted::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.pricing-card.is-highlighted:hover {
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.2);
}

/* Monthly/Annual toggle group */
.pricing-cycle-toggle {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
}
.pricing-cycle-toggle .btn {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.pricing-cycle-toggle .btn:hover {
    color: var(--text-primary);
}
.pricing-cycle-toggle .btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(44, 40, 37, 0.15);
}
.pricing-cycle-toggle .btn .save-hint {
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 0.4rem;
    opacity: 0.85;
}

/* Coming-soon disabled CTA */
.btn-tier-disabled,
.btn-tier-disabled:hover {
    color: var(--text-muted) !important;
    border: 1px dashed var(--border-medium);
    background: transparent;
    cursor: not-allowed;
    opacity: 0.85;
}

/* "Current plan" pill — replaces the CTA on the signed-in user's own row */
.current-plan-pill {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: var(--radius-sm);
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
}

/* =========================================================================
   FAQ ACCORDION
========================================================================= */
.fantasy-accordion .accordion-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.fantasy-accordion .accordion-button {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
}
.fantasy-accordion .accordion-button:not(.collapsed) {
    background: var(--card-header-bg) !important;
    color: var(--brand-primary) !important;
}
.fantasy-accordion .accordion-body {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* =========================================================================
   CONTACT PAGE - Form Icon Fields
========================================================================= */
.form-floating-icon {
    position: relative;
}
.form-floating-icon .form-icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 4;
}
.form-floating-icon.icon-top .form-icon {
    top: 1rem;
    transform: none;
}
.form-floating-icon .form-control,
.form-floating-icon .form-select {
    padding-left: 2.5rem;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-floating-icon .form-control:focus,
.form-floating-icon .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.15);
    background-color: var(--bg-elevated);
}
.form-floating-icon .form-control::placeholder {
    color: var(--text-muted);
}

/* =========================================================================
   CONTACT PAGE - Info Cards
========================================================================= */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 40, 37, 0.1);
}

.info-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.info-card h4 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.info-card.card-clock .info-card-icon {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-dark);
}
.info-card.card-bug .info-card-icon {
    background: rgba(185, 45, 58, 0.08);
    color: var(--status-danger);
}
.info-card.card-idea .info-card-icon {
    background: rgba(8, 145, 178, 0.08);
    color: var(--status-info);
}

/* =========================================================================
   CONTACT PAGE - Warm Card (gold-accented form wrapper)
========================================================================= */
.warm-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.warm-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.warm-card h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

/* =========================================================================
   UTILITY
========================================================================= */
.text-gold { color: var(--gold); }
.text-gold-dark { color: var(--gold-dark); }
