
/* =====================================
   MY LITTLE WINS - FRESH ENERGY THEME
===================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&family=Patrick+Hand&display=swap');


/* =====================================
   BABY STEPS - THEME COLOURS
===================================== */
/*DEFAULT THEME - FRESH ENERGY*/

:root {
    --deep-teal: #075B78;
    --teal: #078C91;
    --turquoise: #38BFA7;
    --orange: #F0782D;
    --amber: #F0A83C;

    --background: #F6F7F3;
    --white: #FFFFFF;
    --text: #123B4B;

    --button-gradient-start: #F0782D;
    --button-gradient-end: #F0A83C;
    --button-shadow: #D45F25;
}

/* =====================================
   OCEAN BREEZE THEME
===================================== */

:root[data-theme="ocean-breeze"] {
    --deep-teal: #075B78;
    --teal: #168AAD;
    --turquoise: #48CAE4;
    --orange: #F0A83C;
    --amber: #90E0EF;

    --background: #F2FAFC;
    --white: #FFFFFF;
    --text: #123B4B;

    --button-gradient-start: #168AAD;
    --button-gradient-end: #48CAE4;
    --button-shadow: #075B78;
}

/* =====================================
   TROPICAL PUNCH THEME
===================================== */

:root[data-theme="tropical-punch"] {
    --deep-teal: #087F5B;
    --teal: #20C997;
    --turquoise: #FFD43B;
    --orange: #FF922B;
    --amber: #FF6B6B;

    --background: #FFF9E8;
    --white: #FFFFFF;
    --text: #234B3B;

    --button-gradient-start: #FF922B;
    --button-gradient-end: #FFD43B;
    --button-shadow: #D96B16;
}

/* =====================================
   SUNSET GLOW THEME
===================================== */

:root[data-theme="sunset-glow"] {
    --deep-teal: #9C3D54;
    --teal: #D65A5A;
    --turquoise: #F08A5D;
    --orange: #F6BD60;
    --amber: #F7D6BF;

    --background: #FFF7F1;
    --white: #FFFFFF;
    --text: #663746;

    --button-gradient-start: #F08A5D;
    --button-gradient-end: #F6BD60;
    --button-shadow: #C65B43;
}

/* =====================================
   GENERAL PAGE
===================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 20px 100px;

    font-family: "Nunito", sans-serif;

    background: var(--background);
    color: var(--text);

    min-height: 100vh;
}

.page-container {
    max-width: 1000px;
    margin: auto;
    position: relative;
    z-index: 1;
}


/* =====================================
   HEADER
===================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    position: relative;

    padding: 30px;
    margin-bottom: 28px;

    
    border-radius: 45% 55% 42% 58% / 18% 22% 20% 24%;


    background: linear-gradient(
        115deg,
        var(--deep-teal),
        var(--teal),
        var(--turquoise)
    );

    color: var(--white);

    box-shadow: 0 10px 25px rgba(7, 91, 120, 0.18);
}

.hero-star {
    width: 120px;
    flex-shrink: 0;
}

.hero-star svg {
    width: 100%;
    display: block;
}

.hero-text {
    text-align: center;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 58px);
    margin: 0;
    letter-spacing: -1px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 25px);
    font-style: italic;
    margin: 8px 0 0;
    font-family: 'Patrick Hand', cursive;
}

.hero-heart {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 55px;
    color: white;
}


h2 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
}

.footer-message p {
    font-family: 'Patrick Hand', cursive;
}

/* =====================================
   CONTENT CARDS
===================================== */

section {
    background: var(--white);

    border-radius: 25px;
    margin-bottom: 25px;
    padding: 30px;

    box-shadow: 0 6px 18px rgba(7, 91, 120, 0.09);
}


/* =====================================
   WELCOME CARD
===================================== */

.welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-left: 9px solid var(--teal);
    overflow: hidden;
}

.card-content {
    flex: 1;
}

.welcome-card h2,
.achievement-card h2,
.next-card h2 {
    color: var(--deep-teal);
    font-size: clamp(21px, 3vw, 32px);
    margin-top: 0;
}

.welcome-card p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 0;
}

.mountain {
    width: 230px;
    flex-shrink: 0;
}

.mountain svg {
    width: 100%;
    display: block;
}


/* =====================================
   ACHIEVEMENT CARD
===================================== */

.achievement-card {
    display: flex;
    align-items: center;
    gap: 25px;

    border-left: 9px solid var(--turquoise);
}

.trophy {
    font-size: 75px;
}

.achievement-content {
    flex: 1;
}

.achievement-content h2 {
    margin-bottom: 12px;
}

.achievement-content p {
    font-size: 19px;
    margin: 0;
}

.achievement-number {
    display: inline-block;

    background: #C9F2EE;
    color: var(--deep-teal);

    padding: 7px 15px;
    border-radius: 14px;

    font-size: 24px;
    margin: 0 5px;
}

.celebration {
    color: var(--amber);
    font-size: 55px;
}


/* =====================================
   NEXT TASK CARD
===================================== */

.next-card {
    text-align: center;
    border-left: 9px solid var(--orange);
}

.next-card h2 {
    margin-bottom: 25px;
}

button {
    background: linear-gradient(
        110deg,
        var(--button-gradient-start),
        var(--button-gradient-end)
    );

    color: white;

    border: none;
    border-radius: 50px;

    padding: 18px 45px;

    font-size: 21px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 6px 0 var(--button-shadow);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

button span {
    margin-left: 8px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--button-shadow);
}

button:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #D45F25;
}


/* =====================================
   FOOTER MESSAGE
===================================== */

.footer-message {
    text-align: center;
    margin-top: 30px;
    position: relative;
}

.footer-message p {
    margin: 5px;
    font-size: 25px;
    font-style: italic;
    color: var(--deep-teal);
}

.footer-message span {
    color: #93329E;
}


/* =====================================
   DECORATIVE BOTTOM WAVES
===================================== */

.bottom-waves {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 55px;

    pointer-events: none;

    background: linear-gradient(
        165deg,
        var(--turquoise) 0 38%,
        transparent 39%
    );

    opacity: 0.85;
    z-index: 0;
}


/* =====================================
   MOBILE LAYOUT
===================================== */

@media (max-width: 600px) {

    body {
        padding: 15px 12px 85px;
    }

    .hero {
        gap: 10px;
        padding: 25px 12px;
        border-radius: 23px;
    }

    .hero-star {
        width: 65px;
    }

    .hero-heart {
        font-size: 30px;
        right: 12px;
        top: 8px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    section {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .welcome-card {
        gap: 5px;
    }

    .welcome-card p {
        font-size: 15px;
    }

    .mountain {
        width: 115px;
    }

    .trophy {
        font-size: 45px;
    }

    .achievement-card {
        gap: 12px;
    }

    .achievement-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .achievement-number {
        font-size: 19px;
        padding: 5px 10px;
    }

    .celebration {
        display: none;
    }

    button {
        width: 100%;
        padding: 16px 15px;
        font-size: 17px;
    }

    .footer-message p {
        font-size: 21px;
    }

}


/* =====================================
   PROJECTS AND TASKS
===================================== */

.workspace-card {
    border-left: 9px solid var(--amber);
}

.form-group {
    margin: 22px 0;
}

.form-group label {
    display: block;
    color: var(--deep-teal);
    font-weight: 800;
    margin-bottom: 9px;
}

.form-group form {
    display: flex;
    gap: 10px;
}

.form-group input,
.form-group select {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 2px solid #D5E9E7;
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: 3px solid #B8E8DE;
    border-color: var(--teal);
}

.form-group button {
    white-space: nowrap;
    padding: 12px 18px;
    font-size: 15px;
}

.task-area {
    margin-top: 30px;
}

.task-area h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--deep-teal);
}

#taskList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#taskList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #F0F8F6;
    border-radius: 13px;
    padding: 12px 14px;
    margin: 10px 0;
}

.task-title {
    overflow-wrap: anywhere;
}

.task-complete {
    background: var(--teal);
    box-shadow: none;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13px;
    flex-shrink: 0;
}

.task-complete:hover {
    background: var(--deep-teal);
    box-shadow: none;
}

.empty-message {
    color: #71858A;
    font-style: italic;
    padding: 8px 0;
}

.task-message {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: #FFF2D9;
    color: #76502D;
    text-align: center;
    font-weight: 700;
}

.task-message:empty {
    display: none;
}

/* Small-screen form layout */
@media (max-width: 600px) {
    .form-group form {
        flex-direction: column;
    }

    .form-group button {
        width: 100%;
    }

    #taskList li {
        align-items: flex-start;
    }
}


/* =====================================
   TASK STATUS AND BUTTONS
===================================== */

.task-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.task-status {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.not-started {
    background: #EAF0F2;
    color: #526C76;
}

.in-progress {
    background: #D5F3E9;
    color: #08765E;
}

.task-buttons {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.task-start {
    background: var(--teal);
    box-shadow: none;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13px;
}

.task-start:hover {
    background: var(--deep-teal);
    box-shadow: none;
}

.task-complete {
    background: var(--orange);
    box-shadow: none;
}

.task-complete:hover {
    background: #D45F25;
    box-shadow: none;
}

@media (max-width: 600px) {
    .task-main-row {
        flex-direction: column;
        align-items: stretch;
    }

    .task-title {
        width: 100%;
    }

    .task-buttons {
        width: 100%;
    }

    .task-buttons button {
        flex: 1;
    }
}

.task-status-button {
    background: #EAF0F2;
    color: #526C76;
    box-shadow: none;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
}

.task-status-button:hover {
    background: #D5E9E7;
    box-shadow: none;
}

.task-status-button.selected-status {
    background: var(--deep-teal);
    color: white;
    border-color: var(--turquoise);
}

.task-status-button:last-child.selected-status {
    background: var(--orange);
    border-color: var(--amber);
}

@media(max-width:600px) {
    .task-buttons {
        flex-wrap: wrap;
    }

    .task-status-button {
        flex: 1;
    }
}

.achievement-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(7, 91, 120, 0.15);
}

.achievement-card:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.completed-tasks-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(18, 59, 75, 0.08);
    border-left: 9px solid var(--turquoise);
}

.completed-tasks-card h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--deep-teal);
}

.completed-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #F0F8F6;
    border-radius: 13px;
    padding: 14px;
    margin: 10px 0;
}

.completed-task-project {
    display: block;
    color: #71858A;
    font-size: 12px;
    margin-top: 5px;
}

.reopen-task {
    background: var(--orange);
    box-shadow: none;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13px;
    flex-shrink: 0;
}

.reopen-task:hover {
    background: #D45F25;
    box-shadow: none;
}

@media(max-width:600px) {
    .completed-task-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.task-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.task-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.task-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.task-notes-button {
    align-self: flex-start;
    width: auto;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    margin-top: 2px;
}

.task-note-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 13px;
    border-radius: 8px;
    margin-top: 5px;
}

.task-notes-area button {
    width: auto;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    margin-top: 5px;
    background: var(--teal);
    color: var(--white);
    border: none;
}

/* PERSONALISATION CONTROL CENTRE */

.personalise-entry {
    text-align: center;
    margin: 25px 0 15px;
}

.personalise-entry button {
    background: transparent;
    color: #075B78;
    border: 2px solid #078C91;
    border-radius: 25px;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.personalise-entry button:hover {
    background: #078C91;
    color: #FFFFFF;
}


/* =====================================
   BABY STEPS - THEME CARDS
===================================== */

.mood-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.theme-card {
    padding: 18px;
    border-radius: 16px;
    border: 2px solid #E1E8E5;
    background: #FFFFFF;
}

/* CURRENTLY SELECTED THEME */

.theme-card.current-theme {
    border: 3px solid var(--teal);
    background: color-mix(in srgb, var(--teal) 8%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 15%, transparent);
}

.current-theme-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: bold;
    vertical-align: middle;
}

.theme-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--deep-teal);
}

.theme-card p {
    margin-top: 0;
    margin-bottom: 14px;
}

.theme-card small {
    display: block;
    margin-top: 12px;
    color: #52666C;
}

.theme-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-palette span {
    display: inline-block;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
/* THEME SELECTION BUTTONS */

.theme-select-btn {
    margin-top: 15px;
    padding: 9px 18px;
    border: none;
    border-radius: 20px;
    background: var(--teal);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.theme-select-btn:hover {
    background: var(--deep-teal);
}