/*
Theme Name: Kuittis Custom Theme
Theme URI: https://kuittis.fi
Author: Janne Yli-Korhonen
Description: Täysin kustomoitu, salamannopea ja lisäosavapaa teema Kuittis-sovelluksen taustajärjestelmäksi ja API-rajapinnaksi.
Version: 1.0.0
Core: Vanilla PHP
*/

:root {
    --deep-slate: #031414;
    --forest-teal-start: #062424;
    --forest-teal-end: #0A3636;
    --emerald-mint: #00F5D4;
    --text-light: #E2E8F0;
    --text-dim: #94A3B8;
}

body {
    background-color: var(--deep-slate);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.landing-container {
    max-width: 550px;
    width: 90%;
    margin: 40px auto;
}

.landing-card {
    background: linear-gradient(135deg, var(--forest-teal-start), var(--forest-teal-end));
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(0, 245, 212, 0.08);
    position: relative;
}

/* Pure CSS Sahalaita (Torn Receipt Effect) kortin yläreunaan */
.landing-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(-45deg, var(--deep-slate) 5px, transparent 0), 
                linear-gradient(45deg, var(--deep-slate) 5px, transparent 0);
    background-size: 10px 10px;
}

.logo-container {
    margin-bottom: 15px;
}

h1 {
    color: var(--emerald-mint);
    font-size: 3rem;
    margin: 0 0 10px 0;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.features-list {
    text-align: left;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Kustomoidut check-merkit listalle */
.features-list li::before {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 0;
    color: var(--emerald-mint);
    font-weight: bold;
    font-size: 1.2rem;
}

.features-list strong {
    color: var(--emerald-mint);
    display: block;
    margin-bottom: 2px;
}

.features-list span {
    color: var(--text-light);
    opacity: 0.85;
    font-size: 0.95rem;
}

.status-box {
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.15);
    padding: 15px 20px;
    border-radius: 16px;
    margin-top: 35px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.status-text {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.status-text em {
    color: var(--emerald-mint);
    font-style: normal;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--emerald-mint);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 245, 212, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.footer-text {
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* --- NAVIGAATIO JA FOOTER LISÄYKSET --- */

/* Muutetaan body käyttämään pystysuuntaista flexiä, jotta footer pysyy aina pohjalla */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

.site-header {
    background-color: rgba(6, 36, 36, 0.8);
    backdrop-filter: blur(10px); /* Moderni lasiefekti taustalle */
    border-bottom: 1px solid rgba(0, 245, 212, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: var(--emerald-mint);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.nav-menu {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--emerald-mint);
    opacity: 1;
}

/* Sisältöalueen venytys */
.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Puhdas, matala footer */
.site-footer {
    background: linear-gradient(180deg, var(--forest-teal-start), var(--forest-teal-end));
    width: 100%;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 245, 212, 0.1);
    position: relative;
    text-align: center;
}

/* Siirretään sahalaitatehoste footerin yläreunaan */
.site-footer::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(-45deg, var(--deep-slate) 5px, transparent 0), 
                linear-gradient(45deg, var(--deep-slate) 5px, transparent 0);
    background-size: 10px 10px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none; /* Poistaa listapisteet dynaamisesta valikosta */
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    font-weight: 600;
}

.footer-links a:hover,
.footer-links .current-menu-item a {
    color: var(--emerald-mint);
}

/* Poistetaan aiemmat korttikohtaiset sahalaitamääritykset häiritsemästä */
.landing-card::before, .content-card::before { display: none !important; }
.landing-card, .content-card { margin: 40px auto; }

.nav-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}