/* ============================================================
   YLEISET TYYLIT
   ------------------------------------------------------------
   - Fontti ja värit
   - Taustaväri
   - Perusasetukset
============================================================ */
body {
    font-family: "Comic Sans MS", sans-serif;
    background: #E6D7FF;
    color: #8C069D;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

/* Piilotettu label saavutettavuutta varten */
.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* Skip-link saavutettavuuteen */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: white;
    padding: 8px;
    z-index: 100;
    color: #8C069D;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

h1 { font-size: 36px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
p  { font-size: 16px; }


/* ============================================================
   NAVIGAATIO
============================================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #8C069D;
    font-weight: 600;
}

nav a.active {
    font-weight: bold;
    border-bottom: 2px solid #BA55D3;
}

/* ============================================================
   HERO-OSIO
============================================================ */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: none;
    border: 2px solid #8C069D;
    border-radius: 8px;
    color: #8C069D;
    font-weight: bold;
    transition: 0.3s;
}

.cta:hover {
    background: #8C069D;
    color: white;
}

/* ============================================================
   HAKUKENTTÄ
============================================================ */
.search {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    border: 2px solid #8C069D;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}

/* ============================================================
   KATEGORIAT
============================================================ */
.kategoriat {
    text-align: center;
    padding: 1rem;
}

.kategoriat h2 {
    margin-bottom: 1.5rem;
}

.kategoria {
    background: none;
    padding: 1rem;
    border-radius: 8px;
    color: #8C069D;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    border: 2px solid #8C069D;
    transition: 0.3s;
}

.kategoria:hover {
    background: #8C069D;
    color: white;
    transform: scale(1.03);
}

/* ============================================================
   GRID-RAKENNE
============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* ============================================================
   AKTIVITEETTIKORTIT
============================================================ */
.kohde {
    overflow: hidden;
    border-radius: 8px;
    transition: 0.3s;
    background: none;
    padding-bottom: 1rem;
}

.kohde img {
    width: 90%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.kohde:hover {
    transform: scale(1.02);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVIIVINEN NAVIGAATIO
============================================================ */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
