﻿/* ekirtS — Master Stylesheet */

@font-face {
    font-family: 'DejaVu Sans';
    src: url('~/Content/Font/DejaVuSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #7D1BD3;
    --primary-mid: #9A35F0;
    --primary-glow: rgba(125,27,211,0.4);
    --secondary: #DE9B18;
    --bg-deep: #07040f;
    --text-main: #ece6ff;
    --text-muted: rgba(236,230,255,0.48);
    --nav-h: 64px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Outfit',sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background */
#bg-fill {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-deep);
}

#geo-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    display: block;
}

/* ══════════════════════════════════════════════
   NAVBAR — floating pill, spaced from edges
══════════════════════════════════════════════ */
.nav-wrapper {
    position: fixed;
    top: 14px;
    left: 18px;
    right: 18px;
    z-index: 100;
}

.nav-bar {
    height: var(--nav-h);
    background: rgba(14, 8, 30, 0.78);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    /* Explicit thick border so radius is clearly visible */
    border: 1.5px solid rgba(125,27,211,0.40);
    border-radius: 999px; /* full pill */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 20px 0 28px;
    box-shadow: 0 0 0 1px rgba(125,27,211,0.10) inset, 0 8px 40px rgba(0,0,0,0.55), 0 0 60px rgba(125,27,211,0.08);
}

/* Brand text */
.nav-brand {
    font-family: 'DejaVu Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity 0.18s;
}

    .nav-brand:hover {
        opacity: 0.82;
    }

.brand-s {
    color: var(--secondary);
}

/* Nav right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 999px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}

    .btn-login:hover {
        color: var(--text-main);
        background: rgba(125,27,211,0.18);
    }

.btn-signup {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    transition: filter 0.18s, transform 0.15s, box-shadow 0.18s;
    display: inline-block;
    white-space: nowrap;
}

    .btn-signup:hover {
        filter: brightness(1.14);
        transform: translateY(-1px);
        box-shadow: 0 6px 24px var(--primary-glow);
    }

/* User dropdown */
.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    background: rgba(125,27,211,0.14);
    border: 1px solid rgba(125,27,211,0.28);
    transition: background 0.18s, border-color 0.18s;
    user-select: none;
}

    .user-trigger:hover {
        background: rgba(125,27,211,0.24);
        border-color: rgba(125,27,211,0.45);
    }

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.user-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.user-menu.open .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 192px;
    background: rgba(10,6,22,0.97);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(125,27,211,0.28);
    border-radius: 16px;
    padding: 6px;
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.16s, transform 0.16s;
    z-index: 300;
    box-shadow: 0 20px 60px rgba(0,0,0,0.65);
}

.user-menu.open .dropdown-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 11px;
    font-size: 14px;
    font-family: 'Outfit',sans-serif;
    color: rgba(236,230,255,0.78);
    text-decoration: none;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.13s, color 0.13s;
}

    .dropdown-item:hover {
        background: rgba(125,27,211,0.18);
        color: #fff;
    }

    .dropdown-item svg {
        flex-shrink: 0;
        opacity: 0.7;
    }

.dd-divider {
    height: 1px;
    background: rgba(125,27,211,0.18);
    margin: 4px 8px;
}

.dd-signout {
    color: rgba(222,155,24,0.85) !important;
}

    .dd-signout:hover {
        background: rgba(222,155,24,0.1) !important;
        color: var(--secondary) !important;
    }

/* ── Center nav tabs ── */
.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-tab {
    font-size: 13px;
    font-weight: 500;
    color: rgba(236,230,255,0.60);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
    white-space: nowrap;
}

    .nav-tab:hover {
        color: var(--text-main);
        background: rgba(125,27,211,0.15);
        border-color: rgba(125,27,211,0.25);
    }

.nav-tab--hero {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(125,27,211,0.38) 0%, rgba(222,155,24,0.22) 100%);
    border-color: rgba(125,27,211,0.45);
    box-shadow: 0 0 18px rgba(125,27,211,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 8px 22px;
    letter-spacing: 0.3px;
}

    .nav-tab--hero:hover {
        background: linear-gradient(135deg, rgba(125,27,211,0.55) 0%, rgba(222,155,24,0.32) 100%);
        border-color: rgba(125,27,211,0.65);
        box-shadow: 0 0 28px rgba(125,27,211,0.38), inset 0 1px 0 rgba(255,255,255,0.08);
        color: #fff;
    }

/* Also make nav-bar position:relative so absolute centering works */
/* Page body */
.page-body {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-h) + 28px);
    min-height: 100vh;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(125,27,211,0.18);
    background: linear-gradient(to bottom,transparent 0%,rgba(7,4,15,0.97) 5%);
    margin-top: 100px;
    padding: 60px 44px 36px;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(155px,1fr));
    gap: 44px 20px;
    margin-bottom: 52px;
}

.footer-col-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--secondary);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.15s;
        line-height: 1.4;
    }

        .footer-links a:hover {
            color: var(--text-main);
        }

.footer-bottom {
    border-top: 1px solid rgba(125,27,211,0.12);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-wordmark {
    font-family: 'DejaVu Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(120deg,#bb80ff 0%,var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.footer-inline-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

    .footer-inline-links a {
        font-size: 13px;
        color: rgba(236,230,255,0.3);
        text-decoration: none;
        transition: color 0.15s;
    }

        .footer-inline-links a:hover {
            color: rgba(236,230,255,0.7);
        }

.footer-copy {
    font-size: 13px;
    color: rgba(236,230,255,0.26);
}

@media (max-width:680px) {
    .nav-wrapper {
        top: 8px;
        left: 10px;
        right: 10px;
    }

    .nav-brand {
        font-size: 20px;
    }

    .user-label {
        display: none;
    }

    .site-footer {
        padding: 48px 20px 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Profile picture shown in the navbar trigger instead of the initial letter */
.nav-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(125, 27, 211, 0.55);
    box-shadow: 0 0 0 3px rgba(125, 27, 211, 0.12);
    display: block;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.user-trigger:hover .nav-avatar-img {
    border-color: rgba(125, 27, 211, 0.85);
    box-shadow: 0 0 0 3px rgba(125, 27, 211, 0.25);
}