/* =================================================================
   Dark Fantasy theme - Landing page (index.php)
   -----------------------------------------------------------------
   Re-skin of the existing .landing-* markup defined in main.css.
   Load AFTER main.css so these rules win.

   Palette
     --df-bg-0       deep panel base (almost black, slight warmth)
     --df-bg-1       softer panel surface
     --df-bg-2       inset / sunken surface
     --df-line       subtle gold border line
     --df-line-soft  faint inner divider
     --df-gold       primary gold accent
     --df-gold-hi    highlight / hover gold
     --df-gold-lo    deep antique gold
     --df-text       primary body text (warm cream)
     --df-text-dim   secondary text (muted parchment)
     --df-text-mute  tertiary text
   ================================================================= */

.landing-page {
    --df-bg-0:      #0c1018;
    --df-bg-1:      #141a23;
    --df-bg-2:      #0a0e15;
    --df-line:      rgba(212, 169, 87, 0.38);
    --df-line-soft: rgba(212, 169, 87, 0.16);
    --df-gold:      #d4a957;
    --df-gold-hi:   #f0c878;
    --df-gold-lo:   #a8843a;
    --df-text:      #e8d5a8;
    --df-text-dim:  #b8a685;
    --df-text-mute: #8a7c60;
    --df-shadow:    0 18px 40px rgba(0, 0, 0, 0.55);

    padding-top: 14px;
    padding-bottom: 14px;
    color: var(--df-text);
}

/* --------- Outer panel --------- */
.landing-page .landing-panel {
    background:
        linear-gradient(180deg,
            rgba(20, 26, 35, 0.96) 0%,
            rgba(12, 16, 24, 0.97) 60%,
            rgba(10, 14, 21, 0.98) 100%);
    border: 1px solid var(--df-line);
    border-radius: 12px;
    box-shadow:
        var(--df-shadow),
        inset 0 0 0 1px rgba(0, 0, 0, 0.45),
        inset 0 0 24px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    position: relative;
}

.landing-page .landing-panel::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 169, 87, 0.12);
    border-radius: 8px;
    pointer-events: none;
}

/* --------- Top bar (brand + online) --------- */
.landing-page .landing-top-bar {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.35));
    border-bottom: 1px solid var(--df-line-soft);
    padding: 12px 16px;
}

.landing-page .landing-brand {
    font-family: "Cinzel", "Cinzel Decorative", serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.2px;
    color: var(--df-gold);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}

.landing-page .landing-version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(212, 169, 87, 0.35);
    color: var(--df-text);
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.2px;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.landing-page .landing-version::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow:
        0 0 6px #4ade80,
        0 0 0 2px rgba(74, 222, 128, 0.18);
}

/* --------- Hero (title + tagline) --------- */
.landing-page .landing-hero {
    padding: 22px 16px 14px;
    text-align: center;
    background:
        radial-gradient(ellipse at top,
            rgba(212, 169, 87, 0.08),
            transparent 70%);
}

.landing-page .landing-logo-text {
    font-family: "Cinzel Decorative", "Cinzel", serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(180deg,
        #f7e3a8 0%,
        #d4a957 45%,
        #a8843a 70%,
        #d4a957 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 12px rgba(212, 169, 87, 0.25));
}

.landing-page .landing-tagline {
    margin: 10px auto 0;
    max-width: 540px;
    font-family: "Oswald", sans-serif;
    font-size: 11px;
    letter-spacing: 1.6px;
    color: var(--df-text-dim);
    text-transform: uppercase;
}

/* --------- Main content area --------- */
.landing-page .landing-main {
    padding: 14px 16px 16px;
}

/* --------- Info / form panels --------- */
.landing-page .landing-info-box,
.landing-page .landing-form-box {
    background:
        linear-gradient(180deg,
            rgba(20, 26, 35, 0.85),
            rgba(10, 14, 21, 0.9));
    border: 1px solid var(--df-line);
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.4),
        0 4px 14px rgba(0, 0, 0, 0.35);
    padding: 16px;
}

.landing-page .landing-tabs {
    background-image: linear-gradient(180deg,
        rgba(212, 169, 87, 0.06),
        rgba(0, 0, 0, 0.25));
}

.landing-page .landing-info-text {
    margin: 8px 0 12px;
    color: var(--df-text);
    line-height: 1.55;
    font-size: 13px;
}

/* --------- Section title pill --------- */
.landing-page .landing-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--df-line);
    border-radius: 999px;
    color: var(--df-gold);
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.landing-page .landing-section-title i {
    color: var(--df-gold-hi);
    filter: drop-shadow(0 0 4px rgba(240, 200, 120, 0.45));
}

/* --------- Tabs --------- */
.landing-page .landing-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.landing-page .landing-tab {
    appearance: none;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 169, 87, 0.28);
    color: var(--df-text-dim);
    border-radius: 999px;
    padding: 7px 14px;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}

.landing-page .landing-tab i {
    color: var(--df-gold);
}

.landing-page .landing-tab:hover {
    background: rgba(212, 169, 87, 0.1);
    border-color: var(--df-line);
    color: var(--df-text);
    transform: translateY(-1px);
}

.landing-page .landing-tab.is-active {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.95));
    border-color: var(--df-gold);
    color: var(--df-gold-hi);
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(212, 169, 87, 0.25);
}

.landing-page .landing-tab.is-active i {
    color: var(--df-gold-hi);
}

/* --------- Tab panels --------- */
.landing-page .landing-tab-panels {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--df-line-soft);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.landing-page .landing-tab-panel { display: none; }
.landing-page .landing-tab-panel.is-active { display: block; }

/* --------- Bullets with star icons --------- */
.landing-page .landing-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--df-text);
    line-height: 1.55;
    font-size: 13px;
}

.landing-page .landing-bullets li {
    position: relative;
    padding: 6px 0 6px 26px;
    margin: 0;
}

.landing-page .landing-bullets li::before {
    content: "\f005"; /* fa-star */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    left: 4px;
    top: 8px;
    font-size: 11px;
    color: var(--df-gold);
    text-shadow: 0 0 6px rgba(212, 169, 87, 0.4);
}

/* --------- Wide "See screenshots" button --------- */
.landing-page .landing-tabs-actions {
    margin-top: 14px;
    display: block;
}

.landing-page .landing-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    background:
        linear-gradient(180deg,
            rgba(20, 26, 35, 0.9),
            rgba(10, 14, 21, 0.95));
    border: 1px solid var(--df-line);
    color: var(--df-text);
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: none;
    transition: all 0.18s ease;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.landing-page .landing-info-btn i {
    color: var(--df-gold);
}

.landing-page .landing-info-btn:hover {
    background:
        linear-gradient(180deg,
            rgba(30, 38, 50, 0.95),
            rgba(15, 20, 28, 0.98));
    border-color: var(--df-gold);
    color: var(--df-gold-hi);
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.5),
        0 6px 14px rgba(0, 0, 0, 0.4);
}

.landing-page .landing-info-btn--wide {
    grid-column: 1 / -1;
}

/* --------- Section separator --------- */
.landing-page .landing-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 4px;
    color: var(--df-text-dim);
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.landing-page .landing-separator::before,
.landing-page .landing-separator::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 169, 87, 0.55),
        transparent);
    flex: 1;
}

.landing-page .landing-separator span {
    padding: 0 14px;
    background: transparent;
    border: 0;
    color: var(--df-gold);
}

/* --------- CTA: Registration / login --------- */
.landing-page .landing-cta-title {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--df-text);
    letter-spacing: 0.3px;
}

.landing-page .landing-cta-desc {
    margin: 8px 0 14px;
    color: var(--df-text-dim);
    font-size: 13px;
    line-height: 1.5;
}

.landing-page .landing-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.landing-page .landing-cta-primary,
.landing-page .landing-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 8px;
    padding: 13px 14px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    transition: all 0.18s ease;
}

.landing-page .landing-cta-primary {
    background:
        linear-gradient(180deg,
            #b8924a 0%,
            #a07a32 50%,
            #8a6520 100%);
    color: #1a120a;
    border: 1px solid var(--df-gold-hi);
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 200, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4);
}

.landing-page .landing-cta-primary:hover {
    background:
        linear-gradient(180deg,
            #d4a957 0%,
            #b8924a 50%,
            #9b7530 100%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 200, 0.45),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 6px 16px rgba(212, 169, 87, 0.3);
}

.landing-page .landing-cta-secondary {
    background:
        linear-gradient(180deg,
            rgba(20, 26, 35, 0.9),
            rgba(10, 14, 21, 0.95));
    color: var(--df-text);
    border: 1px solid var(--df-line);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.landing-page .landing-cta-secondary:hover {
    border-color: var(--df-gold);
    color: var(--df-gold-hi);
    background:
        linear-gradient(180deg,
            rgba(30, 38, 50, 0.95),
            rgba(15, 20, 28, 0.98));
    transform: translateY(-1px);
}

.landing-page .landing-cta-note {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--df-text-mute);
    text-align: center;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* --------- Screenshots carousel --------- */
.landing-page .landing-carousel-wrap,
.landing-page .landing-carousel-wrap.card.p-0.prevent-select {
    overflow: hidden;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    padding: 0 !important;
    border: 1px solid var(--df-line);
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.6),
        0 6px 18px rgba(0, 0, 0, 0.45) !important;
    filter: none;
    position: relative;
}

.landing-page .landing-carousel-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.landing-page .landing-carousel {
    padding: 8px;
}

/* Carousel nav buttons */
.landing-page .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--df-line);
    color: var(--df-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.45),
        inset 0 0 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.landing-page .carousel-btn.prev { left: 10px; }
.landing-page .carousel-btn.next { right: 10px; }

.landing-page .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--df-gold);
    color: var(--df-gold-hi);
    transform: translateY(-50%) scale(1.05);
}

/* Dots */
.landing-page .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 9px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.85));
    border-top: 1px solid var(--df-line-soft);
    width: 100%;
    box-shadow: none !important;
}

.landing-page .carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212, 169, 87, 0.3) !important;
    cursor: pointer;
    transition: all 0.18s ease;
}

.landing-page .carousel-dots .dot:hover {
    background: rgba(212, 169, 87, 0.6) !important;
}

.landing-page .carousel-dots .dot.bg-red-500,
.landing-page .carousel-dots .dot.active {
    background: var(--df-gold-hi) !important;
    box-shadow: 0 0 8px rgba(240, 200, 120, 0.6);
}

/* --------- Updates section --------- */
.landing-page .landing-updates .card {
    background:
        linear-gradient(180deg,
            rgba(20, 26, 35, 0.9),
            rgba(10, 14, 21, 0.95)) !important;
    border: 1px solid var(--df-line) !important;
    border-radius: 10px !important;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.4),
        0 4px 14px rgba(0, 0, 0, 0.4) !important;
    color: var(--df-text);
}

.landing-page .landing-updates .card .text-gray-400 {
    color: var(--df-text-mute) !important;
}

.landing-page .landing-updates .card h2,
.landing-page .landing-updates .card .text-red-500 {
    color: var(--df-gold-hi) !important;
    font-family: "Cinzel", serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.landing-page .landing-updates .card p {
    color: var(--df-text);
    line-height: 1.55;
}

/* Read all updates button */
.landing-page .read-news-btn,
.landing-page .button.read-news-btn {
    background:
        linear-gradient(180deg,
            #b8924a 0%,
            #a07a32 50%,
            #8a6520 100%) !important;
    color: #1a120a !important;
    border: 1px solid var(--df-gold-hi) !important;
    border-radius: 8px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 200, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.45) !important;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4);
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.8px;
    transition: all 0.18s ease;
}

.landing-page .read-news-btn:hover,
.landing-page .button.read-news-btn:hover {
    background:
        linear-gradient(180deg,
            #d4a957 0%,
            #b8924a 50%,
            #9b7530 100%) !important;
    transform: translateY(-1px);
}

/* --------- Footer (when landing page) --------- */
.landing-footer {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.85)) !important;
    border-top: 1px solid var(--df-line) !important;
    color: var(--df-text-mute);
}

.landing-footer .text-gray-400 {
    color: var(--df-text-dim) !important;
    transition: color 0.18s ease;
}

.landing-footer .text-gray-400:hover,
.landing-footer a:hover {
    color: var(--df-gold-hi) !important;
}

.landing-footer .text-gray-600 {
    color: var(--df-text-mute) !important;
}

/* --------- Responsive --------- */
@media (min-width: 520px) {
    .landing-page .landing-logo-text {
        font-size: 38px;
        letter-spacing: 3px;
    }
    .landing-page .landing-cta-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .landing-page .landing-cta-buttons {
        grid-template-columns: 1fr;
    }
    .landing-page .landing-logo-text {
        font-size: 26px;
        letter-spacing: 1.5px;
    }
    .landing-page .landing-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* =================================================================
   Featured ad (admin-managed banner on the landing page)
   ================================================================= */
@keyframes landingAdFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.landing-page .landing-ad {
    margin-bottom: 18px;
    text-align: center;
    background-image: linear-gradient(180deg,
        rgba(212, 169, 87, 0.08),
        rgba(0, 0, 0, 0.3));
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.4),
        0 6px 22px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(212, 169, 87, 0.12);
    animation: landingAdFadeIn 0.7s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .landing-page .landing-ad {
        animation: none;
    }
}

.landing-page .landing-ad .landing-section-title {
    margin-bottom: 12px;
}

.landing-page .landing-ad-media {
    position: relative;
    border: 1px solid var(--df-line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--df-bg-2);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.55),
        inset 0 0 26px rgba(0, 0, 0, 0.6);
}

.landing-page .landing-ad-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}

.landing-page .landing-ad-img {
    display: block;
    width: 100%;
    max-height: 170px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.landing-page .landing-ad-media:hover .landing-ad-img {
    transform: scale(1.03);
}

.landing-page .landing-ad-title {
    margin: 10px 0 0;
    font-family: "Cinzel", "Cinzel Decorative", serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0.5px;
    color: var(--df-gold-hi);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.6),
        0 0 14px rgba(212, 169, 87, 0.35);
}

.landing-page .landing-ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.landing-page .landing-ad-link:hover .landing-ad-title {
    color: var(--df-gold-hi);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 520px) {
    .landing-page .landing-ad-title {
        font-size: 20px;
    }
    .landing-page .landing-ad-img {
        max-height: 200px;
    }
}
