@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #0a0a0b;
    --box-bg: #111113;
    --text: #e4e4e7;
    --border: #a78bfa;
    --border-dim: rgba(155, 125, 2, 0.1);
    --gold-accent: rgb(212, 175, 55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Results Vault is causing the move over idky */

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    overflow-y: scroll;
    padding-top: 50px;
    min-height: 100vh;
}

.page-container {
    width: 100%;
    max-width: 1200px;
}

/* --- Navigation --- */
.top-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--border);
    text-underline-offset: 8px;
    text-decoration: underline;
}

/* --- Header Styles --- */
.main-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.main-header h2 {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.8;
}

/* --- Content Layout --- */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
}

/* --- Search Box Section --- */
.search-box {
    background-color: var(--box-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-dim);
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: border-color 0.4s ease;
}

.search-box label {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--border);
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

#search {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 50px 15px 20px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#search:focus {
    border-color: var(--border);
    background: rgba(167, 139, 250, 0.04);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

/* --- Subtle LOTR Hint Text --- */
.search-hint {
    margin-top: 22px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(228, 228, 231, 0.4);
    font-style: italic;
    text-transform: none; /* Keeps it sounding like a whisper */
    letter-spacing: 0.5px;
}

#results-vault {
    width: 100%;
    /* max-width: 1200px; */
    background: linear-gradient(180deg, rgba(17, 17, 19, 0.5) 0%, rgba(10, 10, 11, 0.8) 100%);
    border: 1px solid var(--border-dim);
    border-radius: 28px;
    padding: 35px;
    margin-bottom: 80px;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

#results {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result {
    background-color: var(--box-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s ease;
    text-decoration: none;
}

.result:hover {
    border-color: rgba(167, 139, 250, 0.3);
    background-color: #141417;
    transform: translateY(-8px);
}

/* --- Record Header --- */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.title-group h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: var(--text);
    margin: 0;
}

.title-group p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--border);
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* --- Examine Button --- */
.view-button {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--border);
    text-decoration: none;
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.view-button:hover {
    background-color: var(--border);
    color: var(--bg);
    border-color: var(--border);
}

/* --- Scroll/Image Display --- */
.image-link {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.image-link img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    opacity: 0.75;
    filter: sepia(20%) brightness(0.9);
    transition: all 0.6s ease;
}

.result:hover .image-link img {
    opacity: 1;
    filter: sepia(0%) brightness(1.1);
    transform: scale(1.03);
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .nav-links { gap: 20px; }
    .main-header h1 { font-size: 2.2rem; }
    #results-vault { padding: 20px; }
    .result-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .view-button { width: 100%; text-align: center; }
}