﻿
* {
    box-sizing: border-box;
}


body {
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    font-family: "Hi Melody", sans-serif;
    font-size: 100%;
    background-image: url("assets/images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #354b5e;
}

.site-wrapper {
    width: 100%;
    max-width: 1440px;
    height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 76px minmax(0, 1fr) 50px;
    gap: 12px;
    padding: 12px;
    background: #E8DAC7;
    border-left: 2px solid #446A23;
    border-right: 2px solid #446A23;
}

.top-bar,
.bottom-bar {
    border: 2px solid #446A23;
}

.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #FEFAE5;
    color: #446A23;
    font-size: 1.1rem;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 28px;
    background: #FEFEFC;
}

.greeting h1 {
    margin: 0;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    color: #446A23;
    line-height: 1;
}

.greeting p {
    margin: 0;
    font-size: clamp(1.15rem, 1.3vw, 1.35rem);
    color: #70A641;
}

.status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    letter-spacing: 0.04em;
    color: #446A23;
}

.status-indicator {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #fcb103;
    flex-shrink: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 260px;
    min-width: 0;
    padding: 16px;
    overflow-y: auto;
    background: #FEFAE5;
    border: 2px solid #446A23;
}

.profile-card {
    padding: 14px;
    background: #FEFEFC;
    border: 2px solid #446A23;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5f1fc;
    border: 1px solid #446A23;
    font-size: 3rem;
    color: #446A23;
}

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

.profile-card h2 {
    margin: 10px 0 0;
    font-size: 2.15rem;
    color: #446A23;
}

.profile-description {
    margin: 2px 0 12px;
    font-size: 1.1rem;
    color: #446A23;
}

.profile-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid #446A23;
    border-bottom: 1px solid #446A23;
    font-size: 1.05rem;
    color: #70A641;
}

.current-project {
    color: #446A23;
    font-size: 1.1rem;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.profile-links a {
    color: #446A23;
    font-size: 1.15rem;
    text-decoration: none;
}

.profile-links a:hover {
    color: #70A641;
    text-decoration: underline;
}

.site-navigation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #FEFEFC;
    border: 2px solid #70A641;
    color: #70A641;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background: #CBEAA2;
    border-color: #446A23;
    color: #446A23;
}

.nav-link.active {
    background: #B7D88B;
    border-color: #446A23;
    color: #446A23;
}

/* page layout!! */

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    min-height: 0;
    overflow: hidden;
}

.main-content {
    min-width: 0;
    overflow-y: auto;
    padding: 28px;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* welcome panel!! */

.welcome-panel {
    position: relative;
    padding: 22px;
    padding-right: 75px;
    background: #FEFEFC;
    border: 2px solid #446A23;
    text-align: center;
}

.welcome-panel h2 {
    margin: 8px 0;
    color: #446A23;
    font-size: 2.4rem;
    line-height: 1.3;
    text-align: left;
}

.welcome-panel p {
    margin: 0;
    color: #70A641;
    font-size: 1.45rem;
    line-height: 1.6;
    text-align: left;
}

.welcome-footer {
    margin-top: 12px;
    padding-top: 7px;
    border-top: 1px solid #446A23;
    color: #5A3E26;
    font-size: 1.1rem;
    text-align: left;
}

.welcome-panel::before {
    content: "˖ ♬⋆.˚𝄞";
    position: absolute;
    top: 12px;
    right: 18px;
    color: #5A3E26;
    font-size: 2.4rem;
}

.welcome-panel::after {
    content: "૮ ྀིᴗ͈ . ᴗ͈ ྀིა";
    position: absolute;
    bottom: 8px;
    right: 16px;
    color: #5A3E26;
    font-size: 1.2rem;
}

/* about me section */

.about-section {
    margin-top: 28px;
    padding: 22px;
    background: #ffffff;
    border: 2px solid #446A23;
}

.about-section > h2 {
    margin: 0 0 18px;
    color: #446A23;
    font-size: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-card {
    min-height: 150px;
    padding: 18px;
    border: 1px solid #446A23;
}

.about-card h3 {
    margin: 0 0 12px;
    color: #446A23;
    font-size: 1.55rem;
}

.about-card p {
    margin: 0;
    color: #70A641;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* individual card colours */

.interests {
    background: #FEFAE5;
}

.favourites {
    background: #FEFAE5;
}

.learning {
    background: #FEF7D8;
}

.listening {
    background: #FEF7D8;
}

/* latest project and tools */

.creation-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.latest-project-panel,
.toolbox-panel {
    min-width: 0;
    min-height: 160px;
    padding: 20px;
    background: #FEFEFC;
    border: 2px solid #446A23;
}

.latest-project-panel h2,
.toolbox-panel h2 {
    margin: 0 0 10px;
    color: #446A23;
    font-size: 1.9rem;
}

.featured-project {
    display: flex;
    align-items: center;
    gap: 12px;
    height: calc(100% - 60px);
}

.featured-project img {
    width: 45%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 2px solid #446A23;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-info a {
    margin: 0px 0 0;
    color: #446A23;
    font-size: 2.5rem;
    line-height: 0.1;
}
.project-info a:hover {
    margin: 0px 0 0;
    color: #70A641;
    font-size: 2.5rem;
    line-height: 0.1;
}

.project-info p {
    margin: 0 0 6px;
    color: #70A641;
    font-size: 1.2rem;
}

.project-info span {
    color: #446A23;
    font-size: 1.1rem;
}

.toolbox-panel p {
    color: #70A641;
    font-size: 1.2rem;
}



/* mobile support stuff xP */

@media (max-width: 700px) {

    /* Page layout */
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .site-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto 1fr auto;
        gap: 10px;
        padding: 10px;
    }

    .page-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow: visible;
    }

    /* Profile card */
    .sidebar {
        order: -1;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 8px;
        gap: 10px;
        border: 2px solid #446A23;
        overflow: visible;
    }

    .profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 14px;
        margin-bottom: 10px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
        overflow: hidden;
        border: 2px solid #446A23;
        border-radius: 50%;
    }

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

    /* Social links */
    .profile-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

        .profile-links a {
            padding: 5px 9px;
            font-size: 0.95rem;
        }

    /* Navigation */
    .site-navigation {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

        .site-navigation a {
            flex: 0 1 auto;
            padding: 6px 12px;
            font-size: 1rem;
            text-align: center;
        }

    /* Main content */
    .main-content {
        order: 1;
        min-width: 0;
        overflow: visible;
        padding: 16px;
    }

    .about-grid,
    .creation-section {
        grid-template-columns: 1fr;
    }

    /* Project panel */
    .featured-project {
        flex-direction: column;
        height: auto;
        align-items: stretch;
    }

        .featured-project img {
            width: 100%;
            max-height: 220px;
            object-fit: cover;
        }

    /* Header */
    .top-bar {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Footer */
    .bottom-bar {
        padding: 10px 14px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 16px;
        text-align: center;
    }
	
}
