/* ═══════════════════════════════════════════════════════════════
   🏕️ CAMPSITE MANAGER — Landing Page Styles
   Inherits Population Island dark theme from a_header.php
   ═══════════════════════════════════════════════════════════════ */

/* ─── General Landing Reset ─── */
.lp-page {
    overflow-x: clip;
}

.lp-page section {
    position: relative;
}

.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Hero Section ─── */
.lp-hero {
    position: relative;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 24px 60px;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(34,211,238,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(52,211,153,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated grid background */
.lp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(42,53,80,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42,53,80,0.15) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: lp-grid-drift 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes lp-grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 48px 48px; }
}

.lp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.2);
    color: var(--pi-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: lp-fade-up 0.6s ease-out;
}

.lp-hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pi-green);
    animation: lp-pulse 2s ease-in-out infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

.lp-hero-emoji {
    font-size: 72px;
    margin-bottom: 16px;
    display: block;
    animation: lp-fade-up 0.6s ease-out 0.1s both, lp-float 4s ease-in-out infinite;
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lp-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--pi-text);
    margin: 0 0 12px;
    letter-spacing: -1px;
    line-height: 1.1;
    animation: lp-fade-up 0.6s ease-out 0.2s both;
}

.lp-hero h1 .accent {
    background: linear-gradient(135deg, var(--pi-accent), var(--pi-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--pi-text-muted);
    margin: 0 0 8px;
    font-weight: 400;
    line-height: 1.5;
    animation: lp-fade-up 0.6s ease-out 0.3s both;
}

.lp-hero-sub {
    font-size: 15px;
    color: var(--pi-text-dim);
    margin: 0 0 36px;
    line-height: 1.6;
    animation: lp-fade-up 0.6s ease-out 0.35s both;
}

.lp-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: lp-fade-up 0.6s ease-out 0.45s both;
}

@keyframes lp-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── CTA Buttons ─── */
.lp-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--pi-font);
    color: #0a0e17;
    background: linear-gradient(135deg, var(--pi-accent), #06b6d4);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(34,211,238,0.3),
        0 0 40px rgba(34,211,238,0.08);
    position: relative;
    overflow: hidden;
}

.lp-btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.lp-btn-play:hover::before {
    left: 100%;
}

.lp-btn-play:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(34,211,238,0.4),
        0 0 60px rgba(34,211,238,0.12);
    color: #0a0e17;
    text-decoration: none;
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--pi-font);
    color: var(--pi-text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--pi-border);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.lp-btn-secondary:hover {
    color: var(--pi-text);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    text-decoration: none;
}

/* ─── Section Navigation ─── */
.lp-nav {
    position: sticky;
    top: 4.5rem;
    z-index: 50;
    background: rgba(10,14,23,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.lp-nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--pi-font);
    color: var(--pi-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lp-nav-links a:hover {
    color: var(--pi-text);
    background: rgba(34,211,238,0.08);
}

/* ─── Screenshots / Visuals Section ─── */
.lp-visuals {
    padding: 60px 0 80px;
    position: relative;
}

.lp-visuals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pi-border), transparent);
}

.lp-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.lp-screenshot-slot {
    aspect-ratio: 16/10;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.lp-screenshot-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-screenshot-slot:hover {
    border-color: rgba(34,211,238,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(34,211,238,0.1);
}

.lp-screenshot-slot:hover img {
    transform: scale(1.03);
}

/* ─── Lightbox Modal ─── */
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lb-overlay.lb-active {
    opacity: 1;
    visibility: visible;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lb-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lb-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-overlay.lb-active .lb-image {
    transform: scale(1);
}

.lb-caption {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    max-width: 500px;
    line-height: 1.5;
}

.lb-counter {
    margin-top: 6px;
    font-size: 12px;
    font-family: var(--pi-mono);
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.1);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@media (max-width: 768px) {
    .lb-nav {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    .lb-caption {
        font-size: 13px;
        padding: 0 20px;
    }
}


/* ─── Section Headers ─── */
.lp-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.lp-section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--pi-text);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.lp-section-header p {
    font-size: 16px;
    color: var(--pi-text-muted);
    margin: 0;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.lp-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pi-accent);
    margin-bottom: 10px;
}

/* ─── About Section ─── */
.lp-about {
    padding: 80px 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(17,24,39,0.4) 50%, transparent 100%);
}

.lp-about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.lp-about-content p {
    font-size: 16px;
    color: var(--pi-text-muted);
    line-height: 1.8;
    margin: 0 0 16px;
}

.lp-about-content p:last-child {
    margin-bottom: 0;
}

/* ─── Features Section ─── */
.lp-features {
    padding: 80px 0;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lp-feature-card {
    padding: 28px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lp-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pi-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.lp-feature-card:hover {
    background: linear-gradient(135deg, rgba(34,211,238,0.05), rgba(255,255,255,0.02));
    border-color: rgba(34,211,238,0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.lp-feature-card:hover::before {
    opacity: 1;
}

.lp-feature-emoji {
    font-size: 32px;
    margin-bottom: 14px;
    display: block;
}

.lp-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pi-text);
    margin: 0 0 8px;
}

.lp-feature-card p {
    font-size: 14px;
    color: var(--pi-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ─── How to Play Section ─── */
.lp-how {
    padding: 80px 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(17,24,39,0.4) 50%, transparent 100%);
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

/* Connecting line */
.lp-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--pi-accent), var(--pi-green));
    opacity: 0.15;
    z-index: 0;
}

.lp-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.lp-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    font-family: var(--pi-mono);
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(34,211,238,0.05));
    border: 2px solid rgba(34,211,238,0.3);
    color: var(--pi-accent);
    transition: all 0.3s;
}

.lp-step:hover .lp-step-number {
    background: linear-gradient(135deg, var(--pi-accent), #06b6d4);
    color: #0a0e17;
    box-shadow: 0 0 20px rgba(34,211,238,0.3);
}

.lp-step h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pi-text);
    margin: 0 0 8px;
}

.lp-step p {
    font-size: 13px;
    color: var(--pi-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ─── Differentiators Section ─── */
.lp-different {
    padding: 80px 0;
}

.lp-diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.lp-diff-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.lp-diff-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(34,211,238,0.12);
}

.lp-diff-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(34,211,238,0.06);
}

.lp-diff-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pi-text);
    margin: 0 0 6px;
}

.lp-diff-text p {
    font-size: 13px;
    color: var(--pi-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ─── Final CTA Section ─── */
.lp-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.lp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(34,211,238,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.lp-cta-content {
    position: relative;
    z-index: 1;
}

.lp-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--pi-text);
    margin: 0 0 12px;
}

.lp-cta p {
    font-size: 16px;
    color: var(--pi-text-muted);
    margin: 0 0 32px;
}

/* ─── Leaderboards Section ─── */
.lp-leaderboards {
    padding: 80px 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(17,24,39,0.4) 50%, transparent 100%);
}

.lp-lb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.lp-lb-card {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-lb-card:hover {
    border-color: rgba(34,211,238,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.lp-lb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

.lp-lb-emoji {
    font-size: 22px;
}

.lp-lb-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--pi-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lp-lb-entries {
    padding: 8px 0;
    min-height: 60px;
}

.lp-lb-loading {
    padding: 16px;
    font-size: 13px;
    color: var(--pi-text-dim);
    text-align: center;
}

.lp-lb-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    transition: background 0.15s;
}

.lp-lb-entry:hover {
    background: rgba(255,255,255,0.03);
}

.lp-lb-rank {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--pi-mono);
    color: var(--pi-text-dim);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.lp-lb-rank-1 {
    background: rgba(250,204,21,0.15);
    color: #facc15;
    border-color: rgba(250,204,21,0.3);
}

.lp-lb-rank-2 {
    background: rgba(156,163,175,0.15);
    color: #9ca3af;
    border-color: rgba(156,163,175,0.3);
}

.lp-lb-rank-3 {
    background: rgba(217,119,6,0.15);
    color: #d97706;
    border-color: rgba(217,119,6,0.3);
}

.lp-lb-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--pi-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-lb-value {
    font-size: 12px;
    font-family: var(--pi-mono);
    font-weight: 600;
    color: var(--pi-accent);
    flex-shrink: 0;
}

.lp-lb-empty {
    padding: 20px;
    font-size: 12px;
    color: var(--pi-text-dim);
    text-align: center;
    line-height: 1.5;
}

/* ─── Dev Log Section ─── */
.lp-devlog {
    padding: 60px 0 80px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(17,24,39,0.3) 100%);
}

.lp-devlog-list {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-devlog-entry {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s;
}

.lp-devlog-entry:hover {
    background: rgba(255,255,255,0.04);
}

.lp-devlog-date {
    font-size: 12px;
    font-family: var(--pi-mono);
    color: var(--pi-text-dim);
    white-space: nowrap;
    min-width: 90px;
}

.lp-devlog-text {
    font-size: 14px;
    color: var(--pi-text-muted);
    line-height: 1.5;
}

.lp-devlog-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

.lp-tag-new {
    background: rgba(52,211,153,0.12);
    color: var(--pi-green);
}

.lp-tag-fix {
    background: rgba(248,113,113,0.12);
    color: var(--pi-red);
}

.lp-tag-update {
    background: rgba(34,211,238,0.12);
    color: var(--pi-accent);
}

/* ─── Footer ─── */
.lp-footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--pi-border);
}

.lp-footer p {
    font-size: 13px;
    color: var(--pi-text-dim);
    margin: 0;
}

.lp-footer a {
    color: var(--pi-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.lp-footer a:hover {
    color: var(--pi-text);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .lp-hero {
        padding: 60px 20px 40px;
    }

    .lp-hero-emoji {
        font-size: 56px;
    }

    .lp-btn-play {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .lp-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .lp-hero-actions {
        flex-direction: column;
    }

    .lp-steps::before {
        display: none;
    }

    .lp-screenshots {
        grid-template-columns: 1fr;
    }

    .lp-feature-grid {
        grid-template-columns: 1fr;
    }

    .lp-diff-grid {
        grid-template-columns: 1fr;
    }

    .lp-lb-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .lp-feature-card {
        padding: 20px 18px;
    }

    .lp-step {
        padding: 0 8px;
    }
}
