/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-width);
    margin-inline: auto;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    padding: 0.75rem 1.5rem;

    background-color: var(--background);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 2.25rem;
    width: auto;
    display: block;
}

.nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background-color: var(--purple-soft);
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: var(--purple-main);
    color: #ffffff;
}

.header-center {
    display: flex;
    justify-content: center;
}

.search-bar {
    width: 70%;

    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;

    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background-color: #f9f6ff;

    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus {
    border-color: var(--purple-main);
    box-shadow: 0 0 0 3px rgba(139, 93, 243, 0.2);
    background-color: #efe7ffff;
}

.header-right {
    display: flex;
    align-items: center;
}

.login-btn {
    border-radius: 999px;
    border: none;

    background-color: var(--purple-main);
    color: #ffffff;

    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(139, 93, 243, 0.3);
    background-color: #7f56e8;
}

.login-btn-header {
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
}



/* ================= FOOTER ================= */

.footer {
    width: 100%;
}

.footer-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 2rem 1.5rem 1.25rem;
    background-color: var(--purple-soft);
    border-top: 1px solid var(--border-soft);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.footer-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-email:hover {
    color: var(--purple-main);
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials img {
    width: 1.8rem;
    opacity: 0.8; /* brightness(0) saturate(100%) invert(38%) sepia(92%) saturate(3200%) hue-rotate(240deg) brightness(95%) contrast(105%); */
    filter: saturate(100%) invert(38%) ;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    will-change: filter;
    transform: translateZ(0);
}

.footer-socials a:hover img {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) brightness(60%);
}

.footer-bottom {
    margin-top: 1.25rem;
    font-size: 0.65rem;
    color: var(--text-muted);
}