/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

/* Global Body Styles */
body {
    background: #121212;
    color: #d0d0d0;
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

/* Navbar */
/* Navbar (Tabs) */
.navbar {
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.navbar .logo {
    font-size: 1.4em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0ff;
    text-shadow: 0 0 6px #0ff;
}

.navbar .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.navbar a {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid #0ff;
    color: #0ff;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 0 3px #0ff;
}

.navbar a:hover {
    background: #ff66ff;
    color: #121212;
    box-shadow: 0 0 12px #ff66ff, 0 0 16px #0ff;
}


/* Main Layout */
.main-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 2rem;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid #0ff;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

/* Sidebar (Desktop) */
.sidebar {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 240px;
    background: rgba(25, 25, 25, 0.95);
    padding: 1rem;
    border-left: 1px solid #0ff;
    border-radius: 8px;
    box-shadow: -4px 0 12px rgba(0, 255, 255, 0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar h3 {
    color: #ff66ff;
    font-size: 1em;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 4px #ff66ff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: #0ff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.sidebar ul li a:hover {
    color: #ff66ff;
    text-shadow: 0 0 4px #ff66ff;
}

/* Headings */
h1, h2, h3, h4, h5 {
    font-family: 'Orbitron', sans-serif;
    color: #0ff;
    margin-top: 1rem;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
}

h1 {
    font-size: 2em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.6em;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.3em;
}

/* Entry Cards */
.entry-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #ff66ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 8px #ff66ff, 0 0 12px #0ff;
    transition: background-color 0.3s ease;
}

.entry-card:hover {
    background-color: rgba(40, 40, 40, 0.95);
}

.entry-title {
    font-size: 1.5em;
    margin-bottom: 0.6rem;
    border-bottom: 2px dashed #ff66ff;
    padding-bottom: 0.4rem;
}

.entry-meta {
    color: #ff66ff;
    font-size: 0.85em;
    text-align: right;
    margin-bottom: 10px;
    font-style: italic;
}

.entry-content {
    color: #e0e0e0;
    line-height: 1.7;
}


/* Fix Quill empty paragraphs creating unwanted spacing */
.entry-content p:empty,
.entry-content p:has(br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
}


.entry-content p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}



.entry-viewers {
    font-size: 0.9em;
    margin-top: 10px;
    color: #0ff;
}

/* Buttons */
button, .button {
    cursor: pointer;
    background: #181818;
    border: 2px solid #0ff;
    color: #0ff;
    padding: 10px 18px;
    font-size: 0.85em;
    text-transform: uppercase;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 3px #0ff;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
}

button:hover, .button:hover {
    background: #ff66ff;
    color: #121212;
    box-shadow: 0 0 12px #ff66ff, 0 0 16px #0ff;
}

/* Forms */
form input, form textarea, form select {
    background: #1a1a1a;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 0.7rem;
    border-radius: 4px;
    width: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 1rem;
}

form input:focus, form textarea:focus, form select:focus {
    outline: none;
    box-shadow: 0 0 8px #0ff;
}

/* Flash Messages */
.flash {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid #ff66ff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    color: #0ff;
    text-shadow: 0 0 2px #0ff;
}

/* Viewer Tags */
#viewersList .viewer {
    background: rgba(0, 0, 0, 0.7);
    color: #0ff;
    padding: 0.4rem 0.8rem;
    margin: 0.3rem;
    border-radius: 4px;
    border: 1px solid #0ff;
    text-shadow: 0 0 2px #0ff;
    font-size: 0.85em;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 16px;
    border: 1px solid #0ff;
    border-radius: 4px;
    color: #0ff;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background: #ff66ff;
    color: #121212;
    box-shadow: 0 0 8px #ff66ff;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: static;
        width: 100%;
        margin: 20px auto;
        max-height: none;
        border-left: none;
        border-top: 1px solid #0ff;
        box-shadow: 0 -4px 12px rgba(0, 255, 255, 0.3);
    }

    .main-content {
        width: 95%;
        margin: 40px auto;
        padding: 1rem;
    }
}
