﻿/* wwwroot/css/landing.css — extends login.css variables */

body.landing-page {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: initial;
    justify-content: initial;
    min-height: 100vh;
}

.landing-wrap {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ── Hero ── */
.landing-hero {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeUp 0.5s ease;
}

.landing-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
    transition: filter 0.35s ease;
}

[data-theme="dark"] .landing-logo,
:root:not([data-theme]) .landing-logo {
    filter: brightness(1.1) drop-shadow(0 0 12px var(--accent-glow));
}

[data-theme="light"] .landing-logo {
    filter: none;
}

.landing-tagline {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

    .landing-title span {
        background: var(--accent-grad);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.landing-sub {
    font-size: 14px;
    color: var(--text-sub);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Notice card (invalid link) ── */
.notice-card {
    max-width: 520px;
    margin: 28px auto 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.5s ease 0.1s backwards;
}

.notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--red-dim, rgba(248,113,113,0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red);
    font-size: 18px;
}

.notice-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.notice-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Feature grid ── */
.landing-section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Mobile — stack to 1 column so cards don't squeeze too narrow */
@media (max-width: 700px) {
    .feature-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(16px);
    transition: border-color 0.2s, transform 0.25s ease, opacity 0.5s ease, box-shadow 0.25s ease;
}

    .feature-card.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    .feature-card:hover {
        border-color: var(--accent);
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--accent);
    font-size: 19px;
}

.feature-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Footer ── */
.landing-footer {
    text-align: center;
    margin-top: 48px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

    .landing-footer a {
        color: var(--accent);
        font-weight: 600;
    }

@media (max-width: 600px) {
    .landing-wrap {
        padding: 40px 18px 60px;
    }

    .landing-title {
        font-size: 24px;
    }

    .notice-card {
        flex-direction: column;
        text-align: center;
    }
}
