/* Base and Homepage Styles */

:root {
    --black: #0D0D0D;
    --dark-blue: #2f6661;
    --dark-gray: #6b6f73;
    --dark-red: #761f1c;
    --default-link: rgba(255, 255, 244, .95);
    --leaderboard-green: #294e46;
    --neutral-gray: #5e5e5e;
    --white: #f2f3f4;
    --yellow: #FFC300;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    color: var(--white);
    font-size: clamp(16px, 2.1vw, 18px);
    overflow-x: hidden;
    position: relative;
}

.homepage {
    overflow-y: hidden;
}

/* Zoom States */
.background-zoom {
    background: url('../images/backgrounds/golf-cup-bg.png') center/cover no-repeat;
    background-color: black;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    transform-origin: center center;
    transition: transform 1s cubic-bezier(0.1, 0.7, 0.6, 1);
    width: 100%;
    will-change: transform;
    z-index: -2;
}

body.zooming .background-zoom,
body.zoomed .background-zoom {
    transform: scale(1.45);
}

body.unzooming .background-zoom {
    transform: scale(1) !important;
    transition: transform 0.6s ease-out !important;
    will-change: transform !important;
}

body.pre-zoom .background-zoom {
    transition: none;
}

#cinematic-overlay {
    background-color: rgba(0, 0, 0, 0);
    height: 100%;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: background-color 0.3s ease;
    width: 100%;
    z-index: -1;
}

body.zooming #cinematic-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 1s cubic-bezier(0.1, 0.7, 0.6, 1);
}

body.zoomed #cinematic-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

body.unzooming #cinematic-overlay {
    background-color: rgba(0, 0, 0, 0) !important;
    transition: background-color 0.6s ease-out !important;
    will-change: background-color !important;
}

/* ===== TOP NAVIGATION ===== */

/* Nav Container */
.top-nav {
    align-items: center;
    backdrop-filter: blur(2px) saturate(1.2);
    -webkit-backdrop-filter: blur(2px) saturate(1.2);
    background: 
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.08) 100%
        ),
        linear-gradient(
            315deg,
            rgba(0, 0, 0, 0.32) 0%,
            rgba(0, 0, 0, 0.04) 50%,
            rgba(0, 0, 0, 0.08) 100%
        );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    height: 35px;
    justify-content: space-between;
    left: 0;
    margin: 0;
    padding: .75em .5em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1003;
}

/* Logo */
.head-pro-logo {
    cursor: pointer;
    transition: opacity 0.1s ease, transform 0.1s ease;
    width: clamp(180px, 12vw, 200px);
    z-index: 1004;
}

.logo-link {
    align-items: center;
    display: flex;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.223));
    line-height: 1;
    margin: 0;
    padding: 1px 0 0 0;
}

.head-pro-logo:hover {
    opacity: 0.75;
    transform: scale(1.02);
}

.head-pro-logo:active {
    transform: scale(0.98);
}

/* Desktop Nav Links */
.nav-links {
    align-items: center;
    display: flex;
    gap: 1em;
}

.nav-links a {
    color: var(--default-link);
    font-family: "Jost", sans-serif;
    font-size: clamp(20px, 1.2em, 22px);
    font-weight: 400;
    opacity: 0.9;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 
                 0 0 6px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
}

.nav-links a:hover {
    opacity: 1.0;
    transform: scale(1.05);
}

.nav-links a.active {
    color: var(--white);
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-offset: 3px;
}

/* Nav divider */
.nav-divider {
    color: var(--white);
    opacity: 0.7;
    font-size: 18px;
    padding: 0 1rem;
    user-select: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 
                 0 0 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* ===== SEARCH (DESKTOP) ===== */

/* Player search */
.search-container {
    align-items: center;
    display: flex;
}

.search-divider {
    color: var(--white);
    opacity: 0.7;
    padding: 0.5rem 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
}

.search-divider.expanding {
    opacity: 0;
    overflow: hidden;
    padding: 0;
    width: 0;
}

.search-icon {
    background: none;
    border: none;
    color: var(--default-link);
    cursor: pointer;
    font-size: 1em;
    opacity: 0.9;
    padding: 0.5rem 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 
                0 0 6px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
    white-space: nowrap;
}

.search-icon i {
    color: inherit;
    font-size: .9rem;
    margin-top: .25em;
    pointer-events: none;
}

.search-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

.search-icon.active {
    opacity: 0;
    overflow: hidden;
    padding: 0.5rem 0;
    pointer-events: none;
    width: 0;
}

.search-input-container {
    opacity: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0;
}

.search-input-container.active {
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0) 0%,
        rgba(20, 20, 20, 0.12) 10%,
        rgba(40, 40, 40, 0.25) 30%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 1;
    width: clamp(160px, 12vw, 300px);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    outline: none;
    padding: 0.5rem 1rem;
    width: 100%;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Search Results Dropdown */
.search-results {
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.20), 
        rgba(40, 40, 40, 0.10)
    );
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    min-width: 195px;
    opacity: 0;
    overflow-y: auto;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(1px);
    transition: all 0.2s ease;
    visibility: hidden;
    white-space: nowrap;
    z-index: 1001;
}

.search-results.show {
    opacity: 1;
    visibility: visible;
}

.search-backdrop {
    backdrop-filter: blur(2px) saturate(1.2);
    -webkit-backdrop-filter: blur(2px) saturate(1.2);
    background: rgba(0, 0, 0, 0.05);
    display: none;
    pointer-events: none;
    position: fixed;
    z-index: 1000;
}

.search-result-item {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    border-radius: 0;
    border-right: none;
    border-top: none;
    box-sizing: border-box;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    padding: 0.25em .5em;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 
                 0 0 6px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease-out;
}

.search-result-item:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.20) 100%
    );
    transform: scale(1.01);
}

.search-result-item:active {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.5) 0%,
        rgba(30, 30, 30, 0.7) 100%
    );
    transform: scale(1);
}

.search-result-item:first-child {
    border-top: none;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.player-name {
    color: inherit;
    font-size: inherit;
    font-weight: 500;
}

/* ===== MOBILE NAVIGATION ===== */

.hamburger-menu {
    align-items: center;
    cursor: pointer;
    display: none;
    flex-direction: column;
    height: 30px;
    justify-content: center;
    position: relative;
    width: 30px;
    z-index: 1002;
}

.hamburger-line {
    background-color: var(--white);
    height: 2px;
    margin: 3px 0;
    transition: all 0.3s ease;
    width: 24px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-dropdown {
    align-items: flex-start;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(30, 30, 30, 0.3) 25%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(30, 30, 30, 0.3) 75%,
        rgba(0, 0, 0, 0.25) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    box-shadow: 
        0 55px 90px rgba(0, 0, 0, 0.4),
        0 35px 60px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: flex;
    height: auto;
    justify-content: center;
    left: 0;
    margin-top: 2rem;
    opacity: 0;
    position: fixed;
    padding: 1.5rem 1rem 1rem 1rem;
    top: 0;
    transform: rotate(90deg);
    transform-origin: top right;
    transition: 
        all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
        height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    z-index: 1001;
}

.mobile-nav-dropdown.active {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile-nav-dropdown::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 70%,
        transparent 100%
    );
    border-radius: 0;
    content: '';
    height: 50%;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.mobile-nav-links {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-left: 0;
    margin-top: 0;
    position: relative;
    width: 100%;
    z-index: 2;
}

.mobile-nav-links a {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    color: rgb(250, 250, 250);
    font-family: "Jost", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    padding: 0.4rem 1rem;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 
                 0 0 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.mobile-nav-links a:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.mobile-nav-links a:active {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    transform: translateY(0);
}

/* Animation states */
.mobile-nav-dropdown.active .mobile-nav-links a {
    animation: slideInFromRight 0.4s ease-out forwards;
}

.mobile-nav-dropdown.active .mobile-nav-links a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-dropdown.active .mobile-nav-links a:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-nav-dropdown.active .mobile-nav-links a:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-nav-dropdown .mobile-nav-links a {
    opacity: 0;
    transform: translateX(20px);
}

/* ===== SEARCH (MOBILE) ===== */

.mobile-search-container {
    position: relative;
    width: 100%;
}

.mobile-search-wrapper {
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.mobile-search-icon {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(250, 250, 250, 0.7);
    font-size: .9em;
    padding: 0.4rem 0.75rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 
                 0 0 6px rgba(0, 0, 0, 0.15);
    transition: color 0.2s ease;
}

.mobile-search-input {
    background: transparent;
    border: none;
    color: rgb(250, 250, 250);
    font-family: "Jost", sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    outline: none;
    padding: 0.4rem 1rem;
    width: 100%;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.25), 
        0 0 6px rgba(0, 0, 0, 0.15);
}

.mobile-search-input::placeholder {
    color: rgba(250, 250, 250, 0.9);
    font-weight: 400;
    text-align: center;
    text-indent: -27px;
}

.mobile-search-wrapper:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.mobile-search-wrapper:hover .mobile-search-icon {
    color: rgba(250, 250, 250, 0.9);
    border-right-color: rgba(255, 255, 255, 0.3);
}

.mobile-search-wrapper:focus-within {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.30) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-color: rgba(255, 255, 255, .3);
   
}

.mobile-search-wrapper:focus-within .mobile-search-icon {
    border-right-color: rgba(255, 255, 255, 0.4);
    color: rgba(250, 250, 250, 0.9);
}

.mobile-search-results {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 0; /* Start collapsed */
    opacity: 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
    width: 100%;
}

/* Show state with dynamic height */
.mobile-search-results.show {
    opacity: 1;
    visibility: visible;
    /* max-height will be set dynamically by JavaScript */
}

.mobile-search-result-item {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.7) 0%,
        rgba(30, 30, 30, 0.9) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    border-radius: 0;
    border-right: none;
    border-top: none;
    color: var(--white);
    cursor: pointer;
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25), 
                    0 0 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.mobile-search-result-item:hover {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.6) 0%,
        rgba(30, 30, 30, 0.8) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(1px);
}

.mobile-nav-dropdown .mobile-search-container {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-nav-dropdown.active .mobile-search-container {
    animation-delay: 0.3s;
    animation: slideInFromRight 0.4s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ===== BOTTOM NAV ===== */

.bottom-nav {
    align-items: center;
    backdrop-filter: blur(2px) saturate(1.2);
    -webkit-backdrop-filter: blur(2px) saturate(1.2);
    background: 
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.08) 100%
        ),
        linear-gradient(
            315deg,
            rgba(0, 0, 0, 0.32) 0%,
            rgba(0, 0, 0, 0.04) 50%,
            rgba(0, 0, 0, 0.08) 100%
        );
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    height: 35px;
    justify-content: flex-end;
    margin-top: auto;
    padding: .5em 1em;
    position: relative;
    z-index: 1003;
}

.homepage .bottom-nav {
    bottom: 0;
    left: 0;
    margin-top: 0;
    position: fixed;
    right: 0;
}

.bottom-nav .nav-links a {
    font-size: 1.2em;
}

.bottom-nav .nav-divider {
    padding: 0;
}

.social-links {
    align-items: center;
    display: flex;
    gap: 1.8rem;
}

.x-logo-link,
.instagram-logo-link,
.youtube-logo-link,
.contact-logo-link {
    align-items: center;
    display: flex;
    justify-content: center;
}

.x-logo-svg, 
.instagram-logo-svg {
    color: var(--default-link);
    height: .9em;
    transition: all 0.15s ease;
    width: .9em;
}

.youtube-logo-svg,
.contact-logo-svg {
    color: var(--default-link);
    height: 1.15em;
    transition: all 0.15s ease;
    width: 1.15em;
}

.x-logo-link:hover .x-logo-svg,
.instagram-logo-link:hover .instagram-logo-svg,
.youtube-logo-link:hover .youtube-logo-svg,
.contact-logo-link:hover .contact-logo-svg {
    color: var(--white);
    transform: scale(1.05);
}

/* Main Chat Area */
.golf-cup {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
}

.chat-container {
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    height: clamp(60vh, 48vh + 8vw, 85vh);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
    transform: translateY(-4vh);
    width: min(96vmin, 95vw);
}

.chat-content {
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    left: 0;
    padding: .8em;
    position: absolute;
    right: 0;
    top: 0;
}

/* View state handling */
.view-state {
    display: none;
    height: 100%;
    width: 100%;
}

.view-state.active {
    display: flex;
    flex-direction: column;
}

/* Initial view styling */
#initial-view {
    align-items: center;
    height: 100%;
    justify-content: space-between;
    margin: auto;
    padding: 0 5em;
    width: 90%;
}

.welcome-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: .9em;
    height: 100%;
    justify-content: space-between;
    max-width: 400px;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 98%;
    z-index: 11;
}

.loading-overlay {
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 6vh;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    z-index: 100;
}

#initial-view .welcome-message {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: none;
    justify-content: flex-start;
}

/* Answer view input area */
.input-area {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    bottom: 0;
    left: 0;
    opacity: 1;
    padding: 1rem 5% 2rem 5%;
    position: fixed;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    right: 0;
    z-index: 100;
}

.input-container {
    display: flex;
    position: relative;
    width: 100%;
}

#message-input, #initial-input {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: none;
    color: var(--white);
    flex: 1;
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    padding-right: 50px;
    padding: 12px 16px;
    width: 100%;
}

#message-input:focus, #initial-input:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

#message-input::placeholder, #initial-input::placeholder {
    color: var(--dark-gray);
    opacity: 0.7;
}

.bottom-input-area {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    bottom: 0;
    left: 0;
    opacity: 1;
    padding: 1em 5% 3em 5%;
    position: fixed;
    right: 0;
    transform: translateY(0);
    transition: 
        opacity 0.3s ease, 
        transform 0.3s ease;
    z-index: 1;
}

.bottom-input-area.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

.bottom-input-area .input-container {
    align-items: flex-end;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    display: flex;
    margin: 0 auto;
    max-width: 650px;
    min-height: 5em;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.bottom-input-area .input-container:focus-within {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.09) 100%
    );
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.bottom-input-area textarea {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.15) 0%,
        rgba(30, 30, 30, 0.25) 10%,
        rgba(30, 30, 30, 0.2) 100%
    );
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.15),
        0 0 0 0.5px rgba(255, 255, 255, 0.05);
    color: var(--white);
    flex: 1;
    font-family: "Merriweather", serif;
    font-size: 1em;
    line-height: 1.4;
    max-height: 8em;
    min-height: 5em;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-right: 55px;
    padding: .5em;
    resize: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    white-space: pre-wrap;
    width: 100%;
    word-wrap: break-word;
}

.bottom-input-area textarea:focus {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.30) 0%,
        rgba(30, 30, 30, 0.50) 10%,
        rgba(30, 30, 30, 0.40) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 3px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.15);
    outline: none;
}

.bottom-input-area textarea::placeholder {
    color: rgba(242, 243, 244, 0.6);
    font-style: italic;
}

.bottom-input-area textarea::-webkit-scrollbar {
    width: 4px;
}

.bottom-input-area textarea::-webkit-scrollbar-track {
    background: transparent;
}

.bottom-input-area textarea::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.bottom-input-area textarea::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
.bottom-input-area textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Send Button */
.send-icon-btn {
    align-items: center;
    background: #005143;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    bottom: calc((3.2em - 2.3em) / 2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    height: 2.5em;
    justify-content: center;
    outline: none;
    padding: 0;
    position: absolute;
    right: 0.5em;
    transition: 
        background-color 0.2s ease, 
        transform 0.2s ease;
    width: 2.5em;
    z-index: 10;
}

.send-icon-btn svg {
    height: auto;
    margin-left: .5px;
    margin-top: 3.2px;
    width: 13px;
}

.send-icon-btn:hover {
    background: #007863;
    transform: scale(1.05);
}

.send-icon-btn.loading svg {
    animation: spin-tee 1s infinite linear;
}

@keyframes spin-tee {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.send-icon-btn.loading {
    cursor: default;
    pointer-events: none;
}

/* Answer view */
#answer-view {
    align-items: center;
    justify-content: space-between;
    transform: translateY(-3%);
    z-index: 2;
}

#answer-view .head-pro-answer {
    flex: 1;
    overflow-y: auto;
}

#answer-view .controls {
    margin-top: 10px;
}

.user-question {
    color: var(--dark-gray);
    font-size: .8em;
    font-style: italic;
    margin: 1.2em auto;
    text-align: center;
    transform: translateY(-.3em);
    width: 75%;
}

#answer-view .user-question,
#answer-view .head-pro-answer,
#answer-view .input-area,
#answer-view .controls {
    transition: opacity 0.3s ease;
}

.head-pro-answer {
    border-radius: 5px;
    color: #dadada;
    flex: 1;
    font-size: .9em;
    overflow-x: visible;
    overflow-y: auto;
    padding: 3%;
    position: relative;
    scrollbar-color: var(--dark-gray) transparent;
    scrollbar-width: thin;
    transform: translateY(5%);
    white-space: pre-line;
}

.head-pro-answer a {
    color: #dadada;
}

.head-pro-answer::-webkit-scrollbar {
    width: 5px;
}

.head-pro-answer::-webkit-scrollbar-track {
    background: transparent;
    border-bottom: 10px solid transparent;
    border-top: 10px solid transparent;
}

.head-pro-answer::-webkit-scrollbar-thumb {
    background-clip: padding-box;
    background-color: var(--dark-gray);
    border-bottom: 5px solid transparent;
    border-radius: 10px;
    border-top: 5px solid transparent;
    min-height: 30px;
}

.welcome-message {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    justify-content: flex-start;
    margin-top: clamp(1em, 1em + 7vw, 3em);
    position: relative;
    text-align: center;
}

.head-pro-img-container {
    display: block;
    left: 50%;
    margin: 0;
    opacity: 1;
    overflow: hidden;
    pointer-events: auto;
    position: fixed;
    text-align: left;
    top: 57%;
    transform: translate(-50%, -50%);
    transition: opacity 1s ease-out;
    z-index: 10;
}

.head-pro-img-container.fade-out {
    opacity: 0;
}

.head-pro-img-container.hidden {
    display: none;
}

.head-pro-img-wrapper {
    border-radius: 50%;
    display: block;
    height: 41vh;
    margin: 0;
    overflow: hidden;
    transition: 
        width 1s cubic-bezier(0.1, 0.7, 0.6, 1),
        height 1s cubic-bezier(0.1, 0.7, 0.6, 1);
    width: 41vh;
}

.head-pro-video {
    background: transparent;
    border-radius: 50%;
    display: block;
    height: 100%;
    left: 0;
    mask-image: radial-gradient(ellipse 55% 55% at center, black 60%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at center, black 60%, transparent 80%);
    object-fit: cover;
    object-position: 56.5% 50%; 
    position: absolute;
    top: 0;
    width: 100%;
}

/* Hide all possible native controls */
.head-pro-video::-webkit-media-controls,
.head-pro-video::-webkit-media-controls-panel {
    display: none;
}


body.zooming .head-pro-img-wrapper,
body.zoomed .head-pro-img-wrapper {
    height: 57vh;
    transition: 
        width 1s cubic-bezier(0.1, 0.7, 0.6, 1), 
        height 1s cubic-bezier(0.1, 0.7, 0.6, 1);
    width: 57vh;
}

body.unzooming .head-pro-img-wrapper {
    height: 41vh;
    transform: translateZ(0);
    transition: 
        width 0.6s ease-out, 
        height 0.6s ease-out;
    width: 41vh;
    will-change: width, height;
}

body:not(.zooming):not(.unzooming):not(.zoomed) .background-zoom,
body:not(.zooming):not(.unzooming):not(.zoomed) #cinematic-overlay,
body:not(.zooming):not(.unzooming):not(.zoomed) .head-pro-img-wrapper {
    will-change: auto; /* Remove GPU optimization when not needed */
}

body.unzooming .head-pro-video {
    backface-visibility: hidden; /* Prevent flickering */
    transform: translateZ(0); /* Force GPU layer */
}

.thinking-message {
    color: #dadada;
    font-size: 1em;
    font-style: italic;
    text-align: center;
    white-space: nowrap;
}

.thinking-message.show {
    opacity: 1;
}

/* When loading starts: hide welcome, show thinking */
body.loading .welcome-content {
    opacity: 0;
}

body.loading .loading-overlay {
    opacity: 1;
}

/* When convo starts: hide welcome completely */
.conversation-started .welcome-content {
    display: none;
}

/* Keep the loading overlay available for the thinking message */
.conversation-started .loading-overlay {
    opacity: 0;
}

/* Animated ellipsis */
.thinking-message::after {
    animation: dots 1.5s steps(4, end) infinite;
    content: '\00a0\00a0\00a0';
    display: inline-block;
    text-align: left;
    width: 1.5em;
}

@keyframes dots {
    0%, 20% { 
        content: '\00a0\00a0\00a0';
    }
    40% { 
        content: '.\00a0\00a0';
    }
    60% { 
        content: '..\00a0';
    }
    80%, 100% { 
        content: '...';
    }
}

.welcome-tagline.welcome-intro {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.welcome-tagline.welcome-description {
    font-weight: 300;
    margin-bottom: 0;
    max-width: 550px;
}

.welcome-prompt {
    font-weight: 300;
    margin-top: auto;
    text-align: center;
    max-width: 550px;
    transform: translateY(15%);
}

.welcome-tagline, .welcome-prompt {
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.conversation-started #head-pro-answer {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#answer-view.sucking .user-question {
    animation: suckIntoHole 0.6s ease-in forwards !important;
    transform-origin: center center !important;
}

#answer-view.sucking .head-pro-answer {
    animation: suckIntoHole 0.7s ease-in forwards !important;
    animation-delay: 0.1s !important;
    transform-origin: center center !important;
}

#answer-view.sucking .input-area {
    animation: suckIntoHole 0.6s ease-in forwards !important;
    animation-delay: 0.2s !important;
    transform-origin: center center !important;
}

@keyframes suckIntoHole {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

#answer-view.sucked .user-question,
#answer-view.sucked .head-pro-answer,
#answer-view.sucked .input-area {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0) !important;
}

/* Video controls */
.video-controls-overlay {
    bottom: 5%;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 25%;
    transition: opacity 0.3s ease;
    z-index: 50;
}

.video-controls-overlay.about-video-active {
    opacity: 1;
    pointer-events: auto;
}

.head-pro-img-wrapper:hover .video-controls-overlay {
    opacity: 1;
    pointer-events: auto;
}

.mute-toggle-btn {
    align-items: center;
    background: transparent;
    border-radius: 50%;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    opacity: .9;
    transition: transform 0.2s ease;
    width: 36px;
}

.mute-toggle-btn:hover {
    transform: scale(1.15);
}

.mute-toggle-btn:active {
    transform: scale(0.95);
}

/* Subtitles  */
.subtitle-container {
    left: 50%;
    max-width: 600px;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    width: 80%;
    z-index: 100;
}

.subtitle-container.show {
    opacity: 1;
}

.subtitle-text {
    border-radius: 8px;
    color: #dadada;
    font-size: 1em;
    font-style: normal;
    line-height: 1.4;
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: center;
    white-space: normal;
}


/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    background-color: var(--dark-gray);
    border-radius: 3px;
    bottom: 130%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--white);
    content: attr(data-tooltip);
    font-size: 1em;
    font-weight: 400;
    left: 50%;
    line-height: 1.4;
    opacity: 0;
    padding: 5px;
    position: absolute;
    text-align: left;
    transform: translateX(-50%);
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    white-space: normal;
    width: 150%;
    z-index: 1000;
}

.tooltip::after {
    border-top-color: var(--dark-gray);
    border: 6px solid transparent;
    bottom: 90%;
    content: '';
    left: 50%;
    opacity: 0;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    z-index: 1000;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Modals */
.edit-modal-overlay {
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.75);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

.edit-modal-overlay.active {
    display: flex;
}

/* Modal Container */
.edit-modal {
    animation: modalSlideIn 0.3s ease;
    background: #1a1a1a;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    max-width: 500px;
    overflow-y: auto;
    width: 100%;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.edit-modal-header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    padding: .75em;
}

.edit-modal-header h2 {
    color: var(--white);
    font-family: "Jost", sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.edit-modal-close {
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
    width: 32px;
}

.edit-modal-close:hover {
    color: var(--white);
}

/* Modal Info Banner */
.edit-modal-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: .75em;
}

.edit-modal-info p {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Merriweather", serif;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Current Values Display */
.edit-modal-current-values {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1em 1em 1.25em 1em;
}

.edit-modal-current-values h3 {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Jost", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0 0 0.25em 0;
    text-transform: uppercase;
}

.current-value-row {
    display: flex;
    font-family: "Jost", sans-serif;
    justify-content: space-between;
    padding: 0.3em 0;
}

.current-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.current-value {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Styles */
.edit-suggestion-form {
    padding: 1em;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-group select:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    outline: none;
}

.form-group textarea {
    font-family: "Jost", sans-serif;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-cancel,
.btn-submit {
    border-radius: 4px;
    border: none;
    cursor: pointer;
    flex: 1;
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-submit {
    background: #3b82f6;
    color: #fff;
}

.btn-submit:hover {
    background: #2563eb;
}

.btn-submit:disabled {
    background: rgba(59, 130, 246, 0.5);
    cursor: not-allowed;
}

/* Form Message */
.form-message {
    border-radius: 4px;
    display: none;
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.75rem;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}


/* Scrollbar */
::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}


/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Mobile Responsive */
@media (max-width: 767px) {

    .top-nav .nav-links {
        display: none; /* Hide desktop top nav on mobile */
    }

    .social-links {
        gap: 1.5rem;
    }

    .bottom-nav {
        justify-content: center;
    }

    .bottom-nav .nav-divider {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
}


/* Tablets and large phones */
@media (min-width: 480px) and (max-width: 1200px) and (min-height: 451px) {

    body.zooming .background-zoom,
    body.zoomed .background-zoom {
        transform: scale(1.2);
    }

    .thinking-message {
        font-size: 1em;
        transform: translateY(-1em)
    }

    .chat-container {
        height: calc(100vh - min(45vh, 0.6 * 100vmax));
        transform: translateY(-3vh);  
    }

     .welcome-content {
        font-size: 1em;
        max-width: 500px;  
    }

    .head-pro-img-container {
        left: 50%;
        position: fixed;
        top: 58%;
    }

    .head-pro-img-wrapper {
        height: 45vh;
        width: 45vh;
    }

    body.unzooming .head-pro-img-wrapper {
        height: 45vh;
        width: 45vh;
    }

    #initial-view {
        padding: 0;
    }

    .welcome-prompt {
        transform: translateY(1em);
    }

    .head-pro-answer {
        font-size: .9em;
        max-width: 90vw;
        transform: translateY(0%);
    }

    .bottom-input-area {
        padding-bottom: 6em;
    }
}


/* Landscape tablets, wide un-maximized desktop windows */
@media (min-width: 480px) and (max-width: 1200px) and (min-aspect-ratio: 4/5) and (min-height: 451px) {

    .head-pro-img-wrapper {
        height: 40vh;
        width: 40vh;
    }

    body.unzooming .head-pro-img-wrapper {
        height: 40vh;
        width: 40vh;
    }

    .bottom-input-area {
        padding-bottom: 3em;
    }

    body.zooming .background-zoom,
    body.zoomed .background-zoom {
        transform: scale(1.4);
    }

    .welcome-content {
        
        max-width: 450px;
    }

    .welcome-message {
        transform: translateY(-1em);
    }
}


/* Mobile  */
@media (min-width: 0px) and (max-width: 480px) {

    .golf-cup {
        height: 100dvh;
    }

    .chat-container {
        height: 58vh;
    }

    body.zoomed .chat-container,
    body.zooming .chat-container {
        height: 55vh;
        transform: translateY(-2vh);
    }

    .welcome-content {
        font-size: clamp(.9em, 1.7vh, 1em);
        max-width: 320px;
    }

    .welcome-prompt {
        transform: translateY(0%);
    }

    .head-pro-answer {
        margin-top: 1vh;
        padding: 3%;
        transform: translateY(0%);
    }

    #answer-view {
        transform: translateY(-1%);
    }

    body.zooming .background-zoom,
    body.zoomed .background-zoom { 
        transform: scale(1.1);
    }

    .head-pro-img-wrapper {
        height: 38vh;
        width: 38vh;
    }

    body.zooming .head-pro-img-wrapper,
    body.zoomed .head-pro-img-wrapper {
        height: 43vh;
        width: 43vh;
    }

    body.unzooming .head-pro-img-wrapper {
        height: 38vh;
        width: 38vh;
    }

    .subtitle-container {
        top: 6vh;
    }

    .subtitle-text {
        font-size: .9em;
    }

    .video-controls-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    
    .mute-toggle-btn {
        font-size: 1em;
        height: 32px;
        width: 32px;
    }
    
    #initial-view {
        max-height: 500px;
        padding: .1em;
    }

    .thinking-message {
        width: 100%;
    }

    .bottom-input-area {
        padding-bottom: 8vh;
    }

    .bottom-input-area textarea {
        font-size: 16px;
    }
}


/* Mobile landscape mode */
@media (orientation: landscape) and (max-height: 450px) and (max-width: 940px) {

    .chat-container {
        height: 65vh;
        transform: translateY(-15vh);
        width: 70%;
    }

    body.zoomed  .chat-container,
    body.zooming  .chat-container {
        height: 60vh;
        transform: translateY(-15vh);
        width: 50%;
    }

    .welcome-content {
        font-size: .65em;
        max-width: 70%;
        padding-top: .5em;
    }

    .head-pro-img-container {
        left: 50%;
        position: fixed;
        top: 65%;
    }

    .head-pro-img-wrapper {
        height: 35vh;
        width: 35vh;
    }

    body.unzooming .head-pro-img-wrapper {
        height: 35vh;
        width: 35vh;
    }

    .mute-toggle-btn {
        font-size: 1em;
        height: 16px;
        width: 16px;
    }

    .subtitle-container {
        max-width: 350px;
    }

    .subtitle-text {
        font-size: .8em;
    }

    .bottom-input-area {
        padding: .5em;
    }

    .bottom-input-area .input-container {
        margin: 0 0 30px 0;
        max-width: 30%;
        
    }

    body.zoomed  .bottom-input-area .input-container,
    body.zooming  .bottom-input-area .input-container {
        max-width: 22%;
    }

    .x-logo-link {
        padding: 0;
    }

    .chat-content {
        padding: 0;
    }

    .user-question {
        display: none;
    }
}


/* Touch devices - ensure video controls are always accessible */
@media (hover: none) and (pointer: coarse) {
    .video-controls-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}
