:root {
    --bg: #F9F7F7;
    --light: #DBE2EF;
    --blue: #3F72AF;
    --navy: #112D4E;
}

body {
    font-family: 'Iosevka', 'Iosevka Charon', monospace;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: var(--bg);
    color: var(--navy);
}

h1 {
    margin-bottom: 10px;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.member-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.member-card h2 {
    margin-top: 0;
}

.member-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ── NAV ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin: 0;
    border-bottom: 1px solid rgba(17, 45, 78, 0.15);
    background-color: var(--bg);
}

nav div {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

nav a:hover {
    color: var(--blue);
}

nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
}

.nav-logo {
    height: 28px;
    width: auto;
    display: block;
}

nav .nav-login,
nav .nav-signup {
    color: var(--navy);
    background-color: transparent;
    border: 2px solid var(--navy);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 24px;
    margin: 0;
}

nav .nav-login:hover,
nav .nav-signup:hover {
    background-color: var(--navy);
    color: var(--bg);
}

/* ── HERO ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8%;
    min-height: 100vh;
    box-sizing: border-box;
    text-align: left;
}

.hero-text {
    max-width: 480px;
}

.hero-text h1 {
    font-size: 44px;
    margin: 0 0 10px;
}

.hero-text p {
    font-size: 15px;
    margin: 0 0 28px;
    color: var(--navy);
}

.get-started {
    background-color: var(--blue);
    color: var(--bg);
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.get-started:hover {
    background-color: var(--navy);
}

.hero-image img {
    max-height: 420px;
}

/* ── SEARCH ── */
.search-container {
    background: white;
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-container h2 {
    margin-top: 0;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    outline: none;
    font-family: inherit;
}

.search-box button {
    padding: 12px 24px;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
}

.search-box button:hover {
    background-color: var(--navy);
}

.results-container {
    max-width: 600px;
    margin: 0 auto;
}

.result-card {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    text-align: left;
}

.recent-item {
    cursor: pointer;
}

.recent-item:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* ── LOGIN / SIGNUP ── */
.login-container {
    background: var(--light);
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
}

.login-container h2 {
    margin-top: 0;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-top: 20px;
}

.login-form label {
    font-weight: bold;
    margin-bottom: 6px;
    margin-top: 14px;
}

.login-form input {
    padding: 12px;
    font-size: 15px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    outline: none;
    font-family: inherit;
}

.login-form button {
    margin-top: 24px;
    padding: 12px 24px;
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
}

.login-form button:hover {
    background-color: var(--navy);
}

.login-message {
    margin-top: 16px;
    font-weight: bold;
    text-align: center;
}

.login-message.error {
    color: #C0392B;
}

.inline-link {
    color: var(--blue);
    font-weight: bold;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

/* ── ACCOUNT DROPDOWN ── */
.nav-account {
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--light);
    padding: 4px;
}

.account-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 16px;
    min-width: 220px;
    z-index: 100;
    text-align: left;
}

.dropdown-email {
    font-weight: bold;
    font-size: 14px;
    margin: 0 0 8px 0;
    color: var(--navy);
    word-break: break-all;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--light);
    margin: 10px 0;
}

.dropdown-logout {
    background: none;
    border: none;
    color: var(--blue);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}

.dropdown-logout:hover {
    text-decoration: underline;
}

/* ── FOOTER ── */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background-color: var(--navy);
    color: var(--bg);
    font-size: 13px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.footer-team {
    font-size: 11px;
    color: var(--light);
}

.footer-links a {
    color: var(--bg);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--light);
}

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background-color: var(--navy);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 200;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}