/* =========================================================
   NAVI BROWSER
   the wired // search interface
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    background:
        linear-gradient(
            rgba(255,255,255,0.18),
            rgba(255,255,255,0.18)
        ),
        url("https://i.pinimg.com/736x/93/b3/a4/93b3a414ed559f49208e0db99b660b54.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #707183;
    font-family: Georgia, serif;
}

/* ---------------------------------------------------------
   BROWSER WINDOW
   --------------------------------------------------------- */

#browser {
    width: min(900px, 94vw);
    min-height: 650px;
    margin: 0 auto;
    background: rgba(245, 244, 250, 0.86);
    border: 1px solid rgba(112, 113, 131, 0.55);
    box-shadow:
        0 0 10px rgba(112, 113, 131, 0.25),
        0 0 35px rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
    animation: flicker 4s infinite;
}

/* ---------------------------------------------------------
   TOP BROWSER BAR
   --------------------------------------------------------- */

#browser-top {
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: rgba(225, 224, 232, 0.9);
    border-bottom: 1px solid rgba(112,113,131,0.35);
    font-family: Georgia, serif;
}

#browser-title {
    font-size: 12px;
    letter-spacing: 1px;
}

#browser-version {
    margin-left: 8px;
    font-size: 8px;
    opacity: 0.5;
}

#browser-controls {
    margin-left: auto;
    display: flex;
    gap: 7px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    opacity: 0.55;
}

#browser-controls span {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(112,113,131,0.35);
    background: rgba(255,255,255,0.35);
}

/* ---------------------------------------------------------
   NAVIGATION BAR
   --------------------------------------------------------- */

#navigation {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    background: rgba(237,236,242,0.78);
    border-bottom: 1px solid rgba(112,113,131,0.3);
}

#navigation button {
    width: 25px;
    height: 23px;
    padding: 0;
    border: 1px solid rgba(112,113,131,0.4);
    background: rgba(255,255,255,0.45);
    color: #707183;
    font-family: Georgia, serif;
    cursor: pointer;
}

#navigation button:hover {
    background: rgba(255,255,255,0.8);
}

#address {
    flex: 1;
    height: 23px;
    padding: 4px 8px;
    border: 1px solid rgba(112,113,131,0.35);
    background: rgba(255,255,255,0.5);
    font-family: monospace;
    font-size: 10px;
    color: #707183;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------
   NAVI HEADER
   --------------------------------------------------------- */

#navi-header {
    text-align: center;
    padding-top: 45px;
}

#navi-logo {
    font-size: 42px;
    letter-spacing: 8px;
    font-weight: normal;
    color: #707183;
    text-shadow: 0 0 8px rgba(112,113,131,0.18);
}

.logo-small {
    font-size: 15px;
    vertical-align: middle;
    opacity: 0.65;
}

#navi-subtitle {
    margin-top: 8px;
    font-size: 9px;
    letter-spacing: 4px;
    opacity: 0.55;
}

/* ---------------------------------------------------------
   SEARCH AREA
   --------------------------------------------------------- */

#search-area {
    width: min(600px, 85%);
    margin: 32px auto 15px;
    text-align: center;
}

#search-area form {
    display: flex;
    gap: 6px;
}

#search-input {
    flex: 1;
    height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(112,113,131,0.5);
    background: rgba(255,255,255,0.55);
    color: #707183;
    outline: none;
    font-family: Georgia, serif;
    font-size: 12px;
}

#search-input:focus {
    background: rgba(255,255,255,0.78);
    box-shadow: 0 0 8px rgba(112,113,131,0.18);
}

#search-input::placeholder {
    color: #707183;
    opacity: 0.45;
}

#search-area button {
    width: 82px;
    height: 34px;
    border: 1px solid rgba(112,113,131,0.5);
    background: rgba(255,255,255,0.48);
    color: #707183;
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: 1px;
    cursor: pointer;
}

#search-area button:hover {
    background: rgba(255,255,255,0.8);
}

#search-hint {
    margin-top: 7px;
    font-size: 8px;
    letter-spacing: 2px;
    opacity: 0.4;
}

/* ---------------------------------------------------------
   STATUS
   --------------------------------------------------------- */

#search-status {
    width: 85%;
    margin: 25px auto 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(112,113,131,0.25);
    font-size: 9px;
    letter-spacing: 1px;
    opacity: 0.55;
}

/* ---------------------------------------------------------
   RESULTS & WELCOME
   --------------------------------------------------------- */

#results {
    width: 85%;
    margin: 0 auto;
    padding-bottom: 30px;
}

#welcome {
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(112,113,131,0.2);
    background: rgba(255,255,255,0.18);
}

.welcome-symbol {
    margin-bottom: 10px;
    font-size: 20px;
    opacity: 0.6;
}

#welcome h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: normal;
    letter-spacing: 2px;
}

#welcome p {
    margin: 7px 0;
    font-size: 10px;
    line-height: 1.7;
    opacity: 0.7;
}

#welcome .small-note {
    margin-top: 18px;
    font-size: 8px;
    letter-spacing: 2px;
    opacity: 0.45;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
    margin-top: 30px;
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(112,113,131,0.25);
    font-size: 8px;
    letter-spacing: 2px;
    line-height: 2;
    opacity: 0.5;
}

footer a {
    color: #707183;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {
    body {
        padding: 15px 8px;
    }

    #browser {
        width: 100%;
    }

    #navi-logo {
        font-size: 32px;
        letter-spacing: 5px;
    }

    #navi-header {
        padding-top: 30px;
    }

    #search-area form {
        flex-direction: column;
    }

    #search-area button {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   ANIMATIONS & EFFECTS
   --------------------------------------------------------- */

/* Subtle flickering animation for the whole browser */
@keyframes flicker {
    0% { opacity: 1; }
    98% { opacity: 1; }
    99% { opacity: 0.98; }
    100% { opacity: 1; }
}

/* The "Ghost" Text - items that appear and disappear */
.ghost-text {
    position: absolute;
    font-size: 8px;
    color: rgba(112, 113, 131, 0.3);
    pointer-events: none;
    animation: drift 10s linear infinite;
    user-select: none;
}

@keyframes drift {
    from { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    to { transform: translate(10px, -20px); opacity: 0; }
}

/* Glitch effect for the search input when "something" is found */
.glitch-input {
    animation: shake 0.2s ease-in-out infinite;
    background: rgba(255, 0, 0, 0.05) !important;
    border-color: rgba(180, 0, 0, 0.3) !important;
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, 1px); }
    75% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}