@import './base/variables.css';
@import './pages/login_register.css';

body {
    margin: 0;
    font-family: var(--font-outfit);
    background-color: var(--background-color);
    color: var(--font-color);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--background-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Hide header on scroll down */
.main-header.hide {
    transform: translateY(-100%);
    box-shadow: none;
}

/* Show header on scroll up */
.main-header.show {
    transform: translateY(0);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    /* gap: 1rem; */
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Prevent accidental blocking of clicks */
}

.menu-button {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--font-color);
}

.header-logo {
    height: 3rem;
    max-width: 10rem;
    object-fit: contain;
    pointer-events: auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.login-button {
    color: var(--font-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.login-button:hover {
    color: var(--yellow-button-hover);
}

.cta-button {
    background-color: var(--yellow-button-color);
    color: var(--font-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--font-color);
    color: white;
}

.white-button {
    background-color: white;
    color: var(--font-color);
    /* border: 2px solid var(--yellow-button-hover); */
}

/* .white-button:hover {
    background-color: var(--font-color);
    color: white;
} */

.main-button {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
}

.content-bar {
    background-color: white;
    padding: 4rem 1.25rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.content-items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5rem;
    flex-wrap: wrap;
    margin-top: 2rem; /* optional spacing between heading and items */
}

.content-item {
    max-width: 18.75rem;
    flex: 1;
    min-width: 15.625rem;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.content-text {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.5;
}

.content-bar-heading {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--font-color);
    margin-bottom: 4rem;
}

.content-icon {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.content-split {
    padding: 4rem 1.25rem;
    background-color: var(--yellow-button-color);
    box-shadow: var(--box-shadow);
}

.reduce-padding-top {
    padding-top: 0.5rem;
}

.reduce-padding-bottom {
    padding-bottom: 0.5rem;
}

/* background modifiers */
.content-split.white {
    background-color: white;
}

.content-split.grey {
    background-color: var(--accent-color);
}

.content-bar.yellow {
    background-color: var(--yellow-button-color);
}

/* new main content layout */
.content-split-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6rem; /* gap only applies between image + text now */
}

/* helper to reverse image + text order */
.content-split-reverse .content-split-main {
    flex-direction: row-reverse;
}

/* helper to reduce top/bottom padding */
.content-split-compact {
    padding: 0rem 1.25rem;
}

.content-split-image {
    display: flex;
    justify-content: center;
}

.content-split-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

.content-split-image .small-img {
    max-width: 230px;
}

.content-split-image .medium-img {
    max-width: 350px;
}

.content-split-text {
    text-align: left;
    max-width: 600px;
}

.split-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--font-color);
    line-height: 1.4;
}

.split-body {
    font-size: 1.125rem;
    color: var(--font-color);
    line-height: 1.6;
}


.split-small-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--font-color);
}

.content-split-header {
    width: 100%;
    text-align: center;
    margin-bottom: 4rem;
}

.split-subtitle {
    font-size: 1rem;
    color: var(--font-color);
    margin-bottom: 0.5rem;
}

.content-split.text-only .content-split-text {
    margin: 0 auto;
    text-align: left;
    max-width: 800px;
}

.content-split.text-only .split-heading {
    text-align: left;
}

.content-split.text-only .split-subtitle {
    text-align: left;
}

.inline-full-image {
    margin: 2rem 0;
}

.inline-full-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.split-list {
    padding-left: 1.25rem;
    margin-bottom: 2rem;
    color: var(--font-color);
    font-size: 1.125rem;
    line-height: 1.6;
}

.footer-cta {
    text-align: center;
    padding: 100px 20px;
    /* background-color: #f9f9f9; */
}

.footer-heading {
    font-size: 2.5rem;
    font-weight: bold;
}

.footer-cta-button {
    background-color: var(--yellow-button-color);
    color: var(--font-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease;
    margin-top: 1em;
    margin-bottom: 1em;
    text-decoration: none;
    display: inline-block; /* This fixes the margin issue */
}

.footer-cta-button:hover {
    background-color: var(--yellow-button-hover);
}

.footer-icon-wrapper {
    margin-top: 30px;
}

.footer-icon {
    width: 18rem;
    height: 18rem;
    object-fit: cover;
    border-radius: 12px;
}

.text-link {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: #ffd737;
}

/* nav bar / menu / navigation */

.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When open */
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Menu panel */
.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 80%;
    max-width: 300px;
    background-color: #ffffff;
    /* box-shadow: 2px 0 10px rgba(0,0,0,0.1); */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 4rem 2rem 2rem 2rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Close button */
.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--font-color);
    cursor: pointer;
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-links a {
    text-decoration: none;
    color: var(--font-color);
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.menu-links a:hover {
    color: var(--yellow-button-hover);
}

.menu-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-login-button,
.menu-cta-button {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-login-button {
    background-color: transparent;
    color: var(--font-color);
    border: 2px solid var(--font-color);
}

.menu-login-button:hover {
    background-color: var(--font-color);
    color: #fff;
}

.menu-cta-button {
    background-color: var(--yellow-button-color);
    color: var(--font-color);
    box-shadow: var(--box-shadow);
}

.menu-cta-button:hover {
    background-color: var(--yellow-button-hover);
}

.menu-social {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: left;
}

.social-icon {
    font-size: 2rem;
    color: var(--font-color);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--yellow-button-hover);
}

/* new landing front */

.landing-full-container {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
}

.intro-section {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.landing-title {
    font-size: 4rem;
    margin-bottom: 60px;
}

.landing-subtitle {
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: var(--font-color);
}

.account-header {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.already-have-account {
    margin-top: 30px;
}

.character-wrapper {
    position: relative;
    overflow: hidden;
}

/* Common style for both characters */
.character {
    position: absolute;
    top: 130px;
    width: 200px;
    max-width: 30vw;
    z-index: 0;
    pointer-events: none;
}

/* Left character */
.character-left {
    left: 0;
}

/* Right character */
.character-right {
    right: 0;
}

/* MOBILE CSS */

@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }

    .header-logo {
        height: 2.5rem;
        max-width: 8rem;
    }
  
    .header-right {
        display: none;
    }

    .button-group {
        width: 90%;
        max-width: 25rem;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .get-started-button,
    .login-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .content-items {
        gap: 2rem;
    }

    .content-icon {
        width: 8rem;
        height: 8rem;
    }

    .content-split {
        padding: 2rem 2rem;
        background-color: var(--yellow-button-color); /* or white via modifier */
    }

    .content-split-main {
        flex-direction: column;
        gap: 0rem;
    }

    .split-list {
        font-size: 0.9rem;
        padding-left: 1rem;
    }

    .content-split-image .small-img {
        max-width: 200px; /* Or adjust to whatever feels right */
    }

    .split-heading {
        font-size: 1.4rem;
    }
    
    .split-body {
        font-size: 0.9rem;
    }

    .footer-heading {
        font-size: 2rem;
    }

    .footer-cta-button {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .footer-icon {
        width: 12rem;
        height: 12rem;
    }

    .landing-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .landing-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 1200px) {
    .character {
        display: none;
    }
}