/* =====================================================
   ROOT VARIABLES
===================================================== */

:root {

    --color-bg-deep: #0b0f1a;
    --color-bg-soft: #121829;

    --color-blue: #2f80ff;
    --color-purple: #7b4dff;
    --color-gold: #d4af37;

    --color-text-primary: #f2f4f8;
    --color-text-muted: #9aa3b2;

    --gradient-archive: linear-gradient(
        135deg,
        var(--color-blue),
        var(--color-purple),
        var(--color-gold)
    );

    --glass-bg: rgba(18, 24, 41, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* GLOBAL */

html,body{
    margin:0;
    padding:0;
}

body {
    position: relative;
    color: var(--color-text-primary);
	padding-top: calc(var(--nav-height) + 50px);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: url('/assets/images/entropia-museum-main-background.jpg') no-repeat center top;
    background-size: cover;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(212, 175, 55, 0.7); /* museum gold */
    z-index: 9999;
	box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

*{
    box-sizing:border-box;
}

/* HEADER */

header {
    text-align: center;
    border-bottom: 1px solid rgba(255,200,90,0.25);
}

header h1 {
    color: #ffcc66;
    letter-spacing: 3px;
    font-size: 34px;
}



/* Smooth page fade */

#pageWrapper {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#pageWrapper.page-visible {
    opacity: 1;
}

#pageWrapper.page-fade-out {
    opacity: 0;
}

/* NAVBAR LAYOUT */

.nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(18,24,41,0.85);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.05);
    transition:transform 0.5s ease,background 0.5s ease;
    will-change:transform;
    backface-visibility:hidden;
}

.nav-container{
    display:flex;
    align-items:center;
    max-width:1500px;
    margin:0 auto;
    padding:2px 20px;
}

.nav-logo img{
    height:60px;
    display:block;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:24px;
    margin-left:40px;
}

.nav-links a{
    min-height:32px;
    display:flex;
    align-items:center;
    font-size:1.05rem;
    color:#9aa3b2;
    text-decoration:none;
    transition:color 0.2s ease;
}

.nav-links a:hover{
    color:#2f80ff;
}

.nav-links a.active{
    color:#d4af37;
}

.nav-links a:not(:last-child)::after{
    content:"";
    height:14px;
    width:1px;
    background:rgba(255,255,255,0.15);
    margin-left:20px;
    display:inline-block;
}

.nav-toggle{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
	margin-left:auto;
}

.nav-toggle span{
    width:25px;
    height:3px;
    background:#9aa3b2;
}

@media (max-width:1200px){

    .nav-toggle{
        display:flex;
    }

    .nav-links{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:rgba(18,24,41,0.95);
        backdrop-filter:blur(10px);
        border-bottom:2px solid #2f80ff;
        flex-direction:column;
        padding:10px 0;
        margin-left:0;
        gap:8px;
    }

    .nav-links.mobile-active{
        display:flex;
    }

    .nav-links a{
        width:92%;
        margin:0 auto;
        padding:0 20px;
        min-height:44px;
        border:1px solid rgba(255,255,255,0.1);
        background:rgba(255,255,255,0.03);
        box-sizing:border-box;
    }

    .nav-links a:hover{
        background:rgba(47,128,255,0.1);
        color:#2f80ff;
    }

    .nav-links a::after{
        display:none;
    }

}

/* INTRO SECTION */

.intro-section{
    max-width:1100px;
    margin:40px auto 30px auto;
    padding:0 20px;
}

.intro-section h1{
    font-size:2rem;
    margin-bottom:12px;
}

.intro-section p{
    color:#9aa3b2;
    line-height:1.6;
    margin-bottom:10px;
}

/* PANEL */

.shortener-section{
    width:100%;
    min-height:calc(100vh - 70px);
    padding:120px 0 80px 0;
    background:rgba(5,10,20,0.82);
    backdrop-filter:blur(6px);
}

.shortener-inner{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.shortener-wrapper{
    width:100%;
    padding:30px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(5,10,20,0.88);
    backdrop-filter:blur(6px);
}

.shortener-wrapper{
    max-width:1200px;
    margin:0 auto;
    padding:30px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.03);
}

.shortener-wrapper h2{
    margin-top:30px;
    margin-bottom:10px;
    font-size:1.2rem;
    color:#ffffff;
}

.shortener-wrapper p{
    line-height:1.6;
    margin-bottom:15px;
}

.shortener-inner h1{
    color:#ffffff;
}

.shortener-inner h2{
    color:#ffffff;
}

.shortener-inner p{
    color:#c6cfdd;
}

.shortener-wrapper label{
    color:#9aa3b2;
}

.shortener-wrapper h2{
    margin-bottom:20px;
}

.shortener-form{
    display:block;
}

.shortener-form label{
    display:block;
    margin-bottom:6px;
}

.shortener-form input{
    flex:1;
    height:42px;
    padding:0 12px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.1);
    color:#fff;
	width:100%;
    height:44px;
    margin-bottom:18px;
}

.shortener-form button{
    height:42px;
    padding:0 18px;
    border:none;
    background:#2f80ff;
    color:#fff;
    cursor:pointer;
	margin-top:10px;
}

.shortener-form button:hover{
    background:#1c6fe5;
}

.shortener{
    max-width:1100px;
    margin:0 auto 60px auto;
    padding:4px;
}

.shortener h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.short-link-box{
    margin-top:15px;
    padding:14px 18px;
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(6px);
    display:inline-block;
}

.short-link-box a{
    color:#d4af37;
    font-weight:600;
    text-decoration:none;
    font-size:1.05rem;
}

.short-link-box a:hover{
    color:#ffffff;
}

/* ERRORS */

.error-box{
    margin-bottom:20px;
    padding:18px;
    border:1px solid rgba(255,80,80,0.4);
    background:rgba(80,20,20,0.25);
    
}

.preview-link-box{
margin:25px 0;
padding:20px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.12);
border-radius:6px;
}

.preview-url{
margin-top:6px;
font-size:14px;
color:#cfd8e3;
word-break:break-all;
}

.preview-link-display{
margin-top:15px;
font-size:14px;
color:#cfd8e3;
}

.link-actions{
margin-top:20px;
display:flex;
gap:12px;
}

.preview-button{
display:inline-block;
padding:12px 22px;
background:#2f80ff;
color:#ffffff;
text-decoration:none;
border-radius:5px;
font-weight:500;
}

.preview-button:hover{
background:#1f6fe0;
}

.preview-alt{
background:#555;
}

.preview-alt:hover{
background:#666;
}

/* MY LINKS */

.links-table{
    width:100%;
    border-collapse:collapse;
}

.links-table th,
.links-table td{
    padding:10px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    text-align:left;
}

.links-table th{
    color:#ffffff;
}

.links-table td{
    color:#c6cfdd;
}

.links-table a{
    color:#d4af37;
    text-decoration:none;
    font-weight:500;
}

.links-table a:hover{
    color:#ffffff;
    text-decoration:underline;
}

/* STEP: STYLE CLICKABLE SLUG SUGGESTIONS */
.slug-suggestion{
    cursor:pointer;
    color:#8bb6ff;
    text-decoration:underline;
}
.slug-suggestion:hover{
    color:#ffd56a;
}

.slug-suggestions li{
    color:#8bb6ff;
}

/* SITE FOOTER */

.site-footer{
    width:100%;
    background:rgba(12,20,40,0.95);
    border-top:1px solid rgba(255,255,255,0.05);
    padding:50px 0 30px 0;
}

.footer-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.footer-brand h3{
    margin:0 0 8px 0;
    color:#ffffff;
}

.footer-brand p{
    margin:0 0 25px 0;
    color:#9aa3b2;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:25px;
}

.footer-links a{
    color:#9aa3b2;
    text-decoration:none;
    transition:color 0.2s ease;
}

.footer-links a:hover{
    color:#2f80ff;
}

.footer-disclaimer p{
    margin:0 0 20px 0;
    color:#7f8a9c;
    font-size:0.85rem;
    line-height:1.5;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.05);
    padding-top:15px;
}

.footer-bottom p{
    margin:0;
    color:#6f7b8c;
    font-size:0.8rem;
}