@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;1,400&family=Poppins:wght@200;300;400&family=Share+Tech+Mono&display=swap');

:root {
    --bg: #050505;
    --accent: #D4A373;
    --text: #ffffff;
    --dim: rgba(255, 255, 255, 0.2);
    --border: rgba(212, 163, 115, 0.1);
    --transition: 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- RESET & BASE --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    cursor: crosshair; 
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: 'Poppins', sans-serif; 
    line-height: 1.6;
}

/* --- GLOBAL NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 96px;
    padding: 22px 72px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    z-index: 5000;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.76) 58%, transparent 100%);
    border-bottom: 1px solid rgba(212, 163, 115, 0.055);
    backdrop-filter: blur(12px);
}

.logo-text-nav { 
    font-family: 'Lora', serif; 
    font-size: 1.2rem; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
}

.logo-text-nav span { 
    color: var(--accent); 
}

.nav-logo-img { 
    height: 34px;
    width: auto;
    margin-right: 15px; 
    filter: drop-shadow(0 0 10px rgba(212, 163, 115, 0.2)); 
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2.1px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 163, 115, 0.12);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.55);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 11px 13px;
    border-right: 1px solid rgba(212, 163, 115, 0.08);
    transition: color 0.35s ease, background 0.35s ease;
}

.nav-links a:last-child {
    border-right: 0;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(212, 163, 115, 0.055);
}

/* --- LANGUAGE SELECTOR --- */
.lang-wrapper { 
    position: relative; 
    font-family: 'Share Tech Mono', monospace; 
    justify-self: end;
}

.active-btn { 
    color: var(--accent); 
    border: 1px solid var(--border); 
    padding: 12px 20px;
    cursor: pointer; 
    letter-spacing: 2px; 
    font-size: 0.7rem; 
    background-color: rgba(0, 0, 0, 0.5); 
    transition: var(--transition); 
    font-family: inherit;
}

.lang-list { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    background-color: #080808; 
    border: 1px solid var(--border); 
    display: none; 
    flex-direction: column; 
    padding: 10px 0; 
    width: 140px; 
    margin-top: 5px; 
    box-shadow: 0 10px 30px #000; 
}

/* Fare köprüsü (hover kaybını önlemek için) */
.lang-list::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.lang-wrapper:hover .lang-list { 
    display: flex; 
}

.lang-wrapper.is-open .lang-list {
    display: flex;
}

.lang-list span { 
    font-size: 0.6rem; 
    color: var(--dim); 
    padding: 10px 20px; 
    cursor: pointer; 
    transition: 0.3s; 
    text-transform: uppercase; 
}

.lang-list span:hover { 
    color: var(--accent); 
    background-color: rgba(212, 163, 115, 0.05); 
}

/* --- FOOTER (SEAL) --- */
#nova-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    z-index: 4500;
    padding: 0 60px;
    display: flex;
    align-items: center;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seal-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--dim);
    text-transform: uppercase;
}

.accent-text {
    color: var(--accent);
}

.footer-right {
    display: flex;
    gap: 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--dim);
}

.version-tag {
    color: var(--accent);
    opacity: 0.5;
}

.footer-glow-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

/* --- INNER PASSAGE RING --- */
.passage-ring {
    border-top: 1px solid var(--border);
    margin: 54px 8% 96px;
    padding-top: 28px;
}

.passage-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.passage-head span,
.passage-link span {
    font-family: 'Share Tech Mono', monospace;
    color: var(--dim);
    letter-spacing: 4px;
    font-size: 0.58rem;
    text-transform: uppercase;
}

.passage-head h2 {
    font-family: 'Lora', serif;
    color: var(--accent);
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 2.6vw, 2rem);
}

.passage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.passage-link {
    min-height: 150px;
    border: 1px solid var(--border);
    background: rgba(212, 163, 115, 0.022);
    color: inherit;
    text-decoration: none;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.passage-link:hover {
    background: rgba(212, 163, 115, 0.065);
    border-color: rgba(212, 163, 115, 0.22);
    transform: translateY(-2px);
}

.passage-link strong {
    font-family: 'Lora', serif;
    color: var(--accent);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.passage-link em {
    color: #858585;
    font-style: normal;
    font-size: 0.76rem;
    line-height: 1.7;
}

/* --- LAYOUT UTILITIES --- */
main {
    padding-bottom: 80px !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    nav {
        min-height: 74px;
        padding: 18px 22px;
        display: flex;
        justify-content: space-between;
    }
    .nav-links {
        position: fixed;
        left: 0;
        right: 0;
        top: 74px;
        justify-content: center;
        gap: 0;
        padding: 10px 14px;
        background: rgba(5, 5, 5, 0.88);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        font-size: 0.55rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar { display: none; }

    .nav-links a {
        padding: 8px 10px;
        white-space: nowrap;
    }
    #nova-footer {
        position: static;
        min-height: 58px;
        height: auto;
        padding: 12px 20px;
        margin-top: 26px;
    }
    .footer-content { gap: 12px; }
    .footer-right { gap: 15px; }
    .version-tag { display: none; }
    .logo-text-nav { font-size: 1rem; }
    .passage-ring { margin: 42px 6% 90px; }
    .passage-head { align-items: flex-start; flex-direction: column; }
    .passage-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1120px) {
    .passage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
