
/*  väriteemat(vaaleansininen)  */
/*  KÄYTTÖ ESIMERKKI: background-color: var(--primary-dark); */

:root {
    --primary-light: #e6f4ff;      /* vaalein tausta */
    --primary-soft: #b8d9f5;       /* pehmeä sininen */
    --primary-mid: #7ab3d9;        /* keskisininen */
    --primary-dark: #3b82f6;       /* aksentti/painikkeet */
    --primary-hover: #2563eb;      /* tummempi hover */
    --gray-bg: #f8fafc;            /* yleinen tausta */
    --text-dark: #1e293b;          /* luettavuus */
    --text-muted: #475569;
    --border-light: #cbd5e1;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    --container-max: 1280px;
    --transition: all 0.25s ease;
}

/*RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(145deg, #f0f9ff 0%, #e9f2f9 100%);
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* container – kaikki sivut */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* NAVBAR*/
.site-header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

/* oasis logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.3px;
    transition: var(--transition);
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e4b8f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo a:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

/* login nappi */
.btn-login {
    background-color: var(--primary-dark);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(59,130,246,0.2);
}

.btn-login:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(59,130,246,0.25);
}

/* main content */
.site-main {
    flex: 1;
    padding: 3rem 0 4rem 0;
}

/* otsikko hero (löydä oma rauha) */
.hero-headline {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(125deg, #1e3a5f, var(--primary-dark));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #7ab3d9, #3b82f6);
    border-radius: 4px;
    margin: 0.8rem auto 0;
}

/* teksti + kuva  */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0 2rem;
}

.text-content p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-dark);
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.image-content figure {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-content figure:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

figcaption {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    background: #f9fdfe;
    color: var(--primary-dark);
    text-align: center;
    border-top: 1px solid var(--border-light);
    font-style: italic;
}

/* pian lisää ominaisuusksia */
.info-badge {
    text-align: center;
    margin-top: 3rem;
    padding: 0.7rem;
    background: rgba(59,130,246,0.08);
    border-radius: 60px;
    display: inline-block;
    width: auto;
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 500;
}

/* footer - kaikki sivut*/
.site-footer {
    background-color: white;
    border-top: 1px solid var(--border-light);
    padding: 1.8rem 0;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.8rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---------- LOGIN PAGE ---------- */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

/* FORM */
.form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.form-error {
    display: none;
    color: #dc2626;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* BUTTON FULL WIDTH */
.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* FOOTER TEXT */
.login-footer {
    margin-top: 1.2rem;
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}


/*
    luokat  voidaan käyttää uusilla sivuilla:

*/

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(122,179,217,0.3);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/*kuvat eivät riko layoutia */
img {
    max-width: 100%;
    height: auto;
}


/* ---------- BMI PAGE ---------- */


.sub-nav {
    background: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a.active {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-dark);
}

.center-text {
    text-align: center;
}

.no-border {
    border-left: none;
}

.bmi-image-wrapper {
    margin: 1.5rem auto 2rem auto;
    max-width: 900px;
}

.bmi-image-card {
    text-align: center;
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.bmi-image {
    max-width: 420%;
    max-height: 300px;
    border-radius: 16px;
    object-fit: contain;
}

.bmi-caption {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.bmi-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
}

.bmi-title {
    text-align: center;
    color: var(--primary-dark);
}

.bmi-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.bmi-form {
    max-width: 400px;
    margin: 0 auto;
}

.bmi-result {
    margin-top: 2.5rem;
}

.bmi-score-box {
    text-align: center;
    margin-bottom: 2rem;
}

.bmi-label {
    font-weight: 500;
}

.bmi-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.bmi-table {
    width: 100%;
    border-collapse: collapse;
}

.bmi-table td {
    padding: 0.8rem 0;
}

.bmi-table tr {
    border-bottom: 1px solid var(--border-light);
}

.bmi-analysis {
    background: linear-gradient(135deg, var(--primary-light), #f0f9ff);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-dark);
}

.analysis-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.lowBmi {
  background-color: #ffcccc ;
  font-weight: 600;
}

.normalBmi {
  background-color: #ccffcc ;
  font-weight: 600;
}

.highBmi {
  background-color: #ffcc99 ;
  font-weight: 600;
}

/* ---------- DIARY PAGE ---------- */

.diary-layout {
    display: grid; /* tekee kahden palstan layoutin */
    grid-template-columns: 1fr 1.25fr; /* vasen lomake hieman kapeampi, oikea korttialue leveämpi */
    gap: 2rem; /* väli palstojen väliin */
    align-items: start; /* molemmat alkavat samalta korkeudelta */
}

.diary-form-card,
.diary-entries-card {
    padding: 2rem; /* antaa korttien sisälle ilmaa */
}

.diary-section-title {
    color: var(--primary-dark); /* pitää otsikot muun teeman mukaisina */
    margin-bottom: 0.5rem; /* pieni väli otsikon alle */
    font-size: 1.8rem; /* tekee osio-otsikosta selkeän */
}

.diary-section-text {
    color: var(--text-muted); /* pehmeämpi väri selitetekstille */
    margin-bottom: 1.5rem; /* väli ennen lomaketta tai listaa */
}

.diary-form {
    display: flex; /* asettaa lomakekentät pystysuoraan */
    flex-direction: column; /* varmistaa että kentät tulevat allekkain */
}

.diary-select {
    width: 100%; /* select täyttää koko kentän leveyden */
    padding: 0.6rem; /* sama sisätila kuin inputeissa */
    border-radius: 8px; /* yhtenäinen kulmien pyöristys */
    border: 1px solid var(--border-light); /* sama reunus kuin inputeissa */
    font-size: 1rem; /* yhtenäinen fonttikoko */
    background-color: white; /* varmistaa selkeän taustan */
    transition: var(--transition); /* pehmeä hover/focus */
}

.diary-select:focus {
    outline: none; /* poistaa selaimen oletuskorostuksen */
    border-color: var(--primary-dark); /* korostaa aktiivisen kentän */
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2); /* näyttää fokusrenkaan */
}

.diary-textarea {
    width: 100%; /* textarea täyttää kentän leveyden */
    padding: 0.75rem; /* hieman enemmän tilaa kirjoittamiseen */
    border-radius: 8px; /* yhtenäinen ulkoasu inputien kanssa */
    border: 1px solid var(--border-light); /* sama reunaviiva */
    font-size: 1rem; /* yhtenäinen fonttikoko */
    resize: vertical; /* käyttäjä voi muuttaa korkeutta, ei leveyttä */
    font-family: var(--font-sans); /* sama fontti kuin muualla */
    transition: var(--transition); /* pehmeä focus-efekti */
}

.diary-textarea:focus {
    outline: none; /* poistaa selaimen default focusin */
    border-color: var(--primary-dark); /* korostaa aktiivisen kentän */
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2); /* focus-efekti */
}

.entries-list {
    display: grid; /* merkinnät listautuvat siististi allekkain */
    gap: 1rem; /* väli korttien välille */
}

.entry-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%); /* kevyt korttitausta */
    border: 1px solid rgba(122,179,217,0.25); /* pehmeä reunaviiva */
    border-radius: 18px; /* pyöristetyt kulmat kortille */
    padding: 1.25rem; /* sisätila sisällölle */
    box-shadow: var(--shadow-sm); /* kevyt varjo */
    transition: var(--transition); /* pehmeä hover-liike */
}

.entry-card:hover {
    transform: translateY(-2px); /* nostaa korttia hieman hoverissa */
    box-shadow: var(--shadow-md); /* syvempi varjo hoverissa */
}

.entry-card h4 {
    color: var(--primary-dark); /* päivämäärä erottuu otsikkona */
    margin-bottom: 0.75rem; /* väli otsikon alle */
    font-size: 1.05rem; /* hieman korostettu koko */
}

.entry-card p {
    margin-bottom: 0.45rem; /* tilaa tekstirivien väliin */
    color: var(--text-dark); /* hyvä luettavuus */
}

.entry-card button {
    margin-top: 0.8rem; /* väli tekstin ja nappien väliin */
    margin-right: 0.6rem; /* väli nappien väliin */
    padding: 0.55rem 1rem; /* napin koko */
    border: none; /* puhdas nappi */
    border-radius: 999px; /* pill-mallinen nappi */
    cursor: pointer; /* näyttää klikattavalta */
    font-weight: 600; /* hieman vahvempi teksti */
    transition: var(--transition); /* hover-efekti */
}

.view-btn {
    background-color: var(--primary-light); /* vaalea sininen napille */
    color: var(--primary-dark); /* tumma teksti kontrastiksi */
}

.view-btn:hover {
    background-color: var(--primary-soft); /* hoverissa hieman tummempi */
}

.delete-btn {
    background-color: #fee2e2; /* vaalea punainen poistonapille */
    color: #b91c1c; /* selkeä poistoväri */
}

.delete-btn:hover {
    background-color: #fecaca; /* hoverissa hieman vahvempi punainen */
}

/*------PSQI-------*/
/* ---------- PSQI PAGE ---------- */

.psqi-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
}

.psqi-form:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.psqi-section {
    padding-bottom: 0;
    border-bottom: none;
}

.psqi-section:nth-of-type(2),
.psqi-section:last-of-type {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.psqi-result-card {
    text-align: center;
    padding-top: 1rem;
}

.psqi-section-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.psqi-main-question {
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
}

.psqi-form .form-group,
.psqi-question {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.psqi-section:nth-of-type(2) .psqi-question {
    padding-bottom: 0;
    border-bottom: none;
}

.psqi-question p {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.psqi-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.psqi-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.psqi-result-score {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.psqi-result-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.psqi-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.psqi-latest-result {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    padding: 1rem 1.5rem;
    text-align: center;
    background: var(--primary-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.psqi-q10-followup {
    margin: 1.5rem 0 1rem 0;
}
/* ---------- KUBIOS PAGE ---------- */

.kubios-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.kubios-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #d4e8f7 100%);
  border-radius: 32px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.kubios-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.kubios-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e3a5f, var(--primary-dark));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.kubios-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}


.kubios-btn {
  background-color: var(--primary-dark);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.kubios-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3);
}

.kubios-btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  box-shadow: none;
}

.kubios-btn-outline:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}

/* Graafien container */
.kubios-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .kubios-graphs {
    grid-template-columns: 1fr;
  }
}

.kubios-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(122, 179, 217, 0.3);
}

.kubios-card:hover {
  box-shadow: var(--shadow-md);
}

.kubios-section-title {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.kubios-graph-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.kubios-canvas-wrap {
  position: relative;
  height: 300px;
  width: 100%;
}

.kubios-chart-container {
  position: relative;
  height: 300px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.kubios-canvas-wrap canvas,
.kubios-chart-container canvas {
  max-height: 100%;
  max-width: 100%;
}

/* Data taulukko */
.kubios-data-table {
  margin-top: 1rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

#dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

#dataTable th,
#dataTable td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

#dataTable th {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

#dataTable tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.no-data {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

/* kubios navigaatio fix */
nav {
  background-color: white;
  padding: 0.5rem 4rem;
  font-weight: 100;
  font-size: 1.2em;
  background-color: rgb(30, 39, 46);
  box-shadow: 0 8px 16px -6px black;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  nav {
    padding: 0.5rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
}


<<<<<<< HEAD
/*  kotisivu */

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Päivän vinkki -kortti */
.tip-card {
  background: linear-gradient(135deg, var(--primary-light), #d4e8f7);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-dark);
}

.tip-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tip-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.tip-text {
  color: var(--text-muted);
  line-height: 1.5;
}

/* Yhteenvetokortti */
.summary-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(122, 179, 217, 0.3);
  transition: var(--transition);
}

.summary-card:hover {
  box-shadow: var(--shadow-md);
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Toimintaehdotukset */
.action-box {
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--border-light);
}

/* Fiilis-valitsin */
.mood-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.mood-emoji {
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  background: white;
  border: 2px solid var(--border-light);
}

.mood-emoji:hover {
  transform: scale(1.1);
  border-color: var(--primary-dark);
}

.mood-emoji.selected {
  border-color: var(--primary-dark);
  background: var(--primary-light);
  transform: scale(1.1);
}

/* Neuvo-kortit */
.advice-item {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.advice-item:last-child {
  border-bottom: none;
}

.advice-icon {
  font-size: 1.5rem;
}

/* Latausspinneri */
.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--primary-dark);
}

/* Graafin container */
.kubios-canvas-wrap {
  height: 300px;
  position: relative;
  width: 100%;
}

/* Tervetuloteksti */
.greeting-section {
  margin: 2rem 0 1rem 0;
}

.greeting-title {
  color: var(--text-dark);
  font-size: 1.8rem;
}

.greeting-subtitle {
  color: var(--text-muted);
}

/* Responsiivisuus */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .greeting-title {
    font-size: 1.5rem;
  }

  .summary-value {
    font-size: 1.5rem;
  }
}
=======

/* responsiivisuus */

.form-response {
    margin-top: 1rem;
    text-align: center;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

/*tabletit*/
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .header-container {
        padding: 0.8rem 1.2rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-icon {
        font-size: 1.7rem;
    }

     .diary-layout {
        grid-template-columns: 1fr; /* mobiilissa/pienemmällä näytöllä palstat allekkain */
    }

}

/*puhelimet*/
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1.15rem;
    }

    .btn-login {
        padding: 0.45rem 1.2rem;
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .hero-headline {
        margin-bottom: 2rem;
    }
}
>>>>>>> d414e1b77fc13af76f4fd37347ec374703f6aabc

/* ========== KOTISIVUN TYYLIT (koti.html) ========== */

/* ========== KOTISIVUN TYYLIT (koti.html) ========== */

/* Kotisivun oma container */
.koti-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Asettelu vierekkäin */
.koti-two-columns {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.koti-two-columns > * {
  flex: 1;
  min-width: 280px;
}

/* Päivän vinkki */
.koti-tip-card {
  background: linear-gradient(135deg, var(--primary-light), #d4e8f7);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.koti-tip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.koti-tip-icon {
  font-size: 1.8rem;
}

.koti-tip-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.koti-tip-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Artikkelin tyyli */
.koti-article-card {
  background: linear-gradient(135deg, #f0f9ff, #e6f4ff);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-dark);
  display: flex;
  flex-direction: column;
}

.koti-article-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.koti-article-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.koti-article-title a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Artikkelin tekstialue - korkeampi ja scrollattava */
.koti-article-content {
  flex: 1;
  max-height: 480px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.5rem;
}

.koti-article-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Scrollbar tyylit */
.koti-article-content::-webkit-scrollbar {
  width: 6px;
}

.koti-article-content::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

.koti-article-content::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

.koti-article-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.koti-article-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.koti-article-source {
  font-size: 0.7rem;
  color: #94a3b8;
}

.koti-read-more {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.koti-read-more:hover {
  text-decoration: underline;
}

/* Artikkelin lataustila */
.koti-article-loading {
  text-align: center;
  padding: 2rem;
  color: var(--primary-dark);
}

.koti-article-error {
  text-align: center;
  padding: 2rem;
  color: #ef4444;
}

/* Fiilis-historia */
.koti-mood-history {
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 0.75rem;
}

.koti-mood-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.koti-mood-history-item:last-child {
  border-bottom: none;
}

.koti-mood-emoji-history {
  font-size: 1.2rem;
}

/* Yhteenvetokortti */
.summary-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(122, 179, 217, 0.3);
  transition: var(--transition);
}

.summary-card:hover {
  box-shadow: var(--shadow-md);
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Fiilis-valitsin */
.mood-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.mood-emoji {
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  background: white;
  border: 2px solid var(--border-light);
}

.mood-emoji:hover {
  transform: scale(1.1);
  border-color: var(--primary-dark);
}

.mood-emoji.selected {
  border-color: var(--primary-dark);
  background: var(--primary-light);
  transform: scale(1.1);
}

/* Latausspinneri */
.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--primary-dark);
}

/* Tervetuloteksti */
.greeting-section {
  margin: 1rem 0 1rem 0;
}

.greeting-title {
  color: var(--text-dark);
  font-size: 1.8rem;
}

.greeting-subtitle {
  color: var(--text-muted);
}

/* Responsiivisuus */
@media (max-width: 768px) {
  .koti-two-columns {
    flex-direction: column;
  }
  .koti-tip-text {
    font-size: 0.95rem;
  }
  .koti-article-content {
    max-height: 350px;
  }
  .greeting-title {
    font-size: 1.5rem;
  }
}


/* ========== KUBIOS READINESS + SELITYS VIEREKKÄIN ========== */

.readiness-wrapper {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.readiness-card {
  flex: 2;
  margin-bottom: 0;
}

.readiness-explanation {
  flex: 1;
  background: linear-gradient(135deg, #f0f9ff, #e6f4ff);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 4px solid #3b82f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.explanation-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3b82f6;
}

.explanation-item {
  margin-bottom: 0.75rem;
}

.explanation-badge {
  display: inline-block;
  background: #3b82f6;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.3rem;
}

.explanation-item p {
  margin: 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Responsiivisuus */
@media (max-width: 900px) {
  .readiness-wrapper {
    flex-direction: column;
  }
}



/* ========== TIETOA MEISTÄ SIVU (tietoa.html) ========== */

.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
}

.about-container {
  width: 100%;
}

/* Hero osio */
.about-hero {
  text-align: center;
  padding: 3rem 0 2rem 0;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3a5f, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Tarina osio */
.about-story {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(122, 179, 217, 0.3);
}

.story-text {
  flex: 1.5;
}

.story-text h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.story-text p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder-image {
  font-size: 8rem;
  text-align: center;
  background: linear-gradient(135deg, #e6f4ff, #d4e8f7);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* Tiimi osio - 2 henkilöä */
.about-team {
  margin-bottom: 4rem;
}

.about-team h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.team-grid-2 {
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(122, 179, 217, 0.2);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}

.team-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Arvot osio */
.about-values {
  margin-bottom: 4rem;
}

.about-values h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: linear-gradient(135deg, #f0f9ff, #e6f4ff);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--primary-dark);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Yhteystiedot osio */
.about-contact {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(122, 179, 217, 0.3);
}

.about-contact h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  font-size: 1.3rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsiivisuus */
@media (max-width: 768px) {
  .about-story {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-title {
    font-size: 2rem;
  }

  .story-text h2,
  .about-team h2,
  .about-values h2,
  .about-contact h2 {
    font-size: 1.5rem;
  }

  .placeholder-image {
    width: 150px;
    height: 150px;
    font-size: 6rem;
  }

  .contact-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .team-grid-2 {
    max-width: 100%;
  }
}
