:root {
    --bg: #0e0f1a;
    --bg-alt: #1b1c30;
    --primary: #e94560;
    --accent: #00fff5;
    --text: #eaeaea;
    --muted: #aaa;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(28, 28, 60, 0.7);
    --border: rgba(255, 255, 255, 0.1);
}

h1 {
    margin-block: 0.67em;
    font-size: 2em;
}

a, img {
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.container img {
    width: 100%;
}

/* Header */
header {
    backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent);
}

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: var(--primary);
    transition: width 0.3s ease;
    margin-top: 4px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
main.content-area {
    padding-bottom: 4rem;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: var(--primary);
    margin-top: 1.5rem;
    font-weight: 700;
}

h2 {
    color: var(--accent);
    margin-top: 1.2rem;
    font-weight: 400;
    font-size: 1.2rem;
}

h3 {
    color: var(--text);
    margin-top: 1rem;
    font-weight: 300;
    font-size: 1.1rem;
}

.article-details h2 {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 1.4rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(25, 24, 36, 0.85);
    backdrop-filter: blur(10px);
    color: #bbb;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-nav a {
    color: #9f96f9;
    margin-right: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:last-child {
    margin-right: 0;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #c1bff9;
    text-decoration: underline;
}

.footer-copy {
    margin: 0;
    white-space: nowrap;
}

.hero-banner-full {
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.hero-banner-full img {
    position: absolute; /* you use absolute positioning */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%) blur(1px);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 0 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.discord-hero {
    margin-bottom: 2rem;
}

.site-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.site-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 400;
    color: #ddd;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    padding: 1rem 0;
    background-color: #242453;
    width: 100%;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.breadcrumb a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    margin-right: 0.4rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    font-weight: 600;
    color: #fff;
    margin-left: 0.4rem;
    opacity: 0.8;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--muted);
    padding-top: 1rem;
    font-weight: 500;
    justify-content: flex-end;
}

.meta-author::before,
.meta-date::before {
    margin-right: 0.3rem;
}

.article-card {
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.article-details h2 {
    margin-bottom: 0;
    margin-top: 0;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-link {
    display: flex;
    color: var(--text);
    text-decoration: none;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    align-items: start;
}

.article-thumb {
    position: relative; /* needed for absolute positioning inside */
    flex-shrink: 0;
    width: 240px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a14;
    transition: transform 0.3s ease;
}

.new-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4c4c;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    user-select: none;
    z-index: 300;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-link:hover .article-thumb {
    transform: scale(1.05);
}

.article-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-details h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.article-preview {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.4;
}

.article-meta {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    user-select: none;
}

/* Optional: subtle fade-in when cards load */
.article-card {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#loading {
    font-style: italic;
    color: var(--muted);
}

/* Article tables styling */
.content-area table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    font-size: 0.95rem;
    color: var(--text);
    margin: 2rem 0;
}

.content-area thead {
    background: var(--primary);
    color: #fff;
}

.content-area thead th {
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid var(--accent);
}

.content-area tbody tr {
    border-bottom: 1px solid #222;
    transition: background-color 0.3s ease;
}

.content-area tbody tr:hover {
    background-color: rgba(0, 255, 245, 0.1);
}

.content-area tbody td {
    padding: 0.8rem 1.2rem;
    vertical-align: middle;
    color: var(--text);
}

/* Optional: make numeric columns right-aligned */
.content-area tbody td:nth-child(n+2) {
    text-align: right;
}

/* Responsive: add horizontal scroll on small screens */
@media (max-width: 600px) {
    .content-area table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-nav a {
    margin-left: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary, #fff);
    text-decoration: none;
}

.logo img {
    height: 48px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: inline-block;
    color: inherit;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -0.5px;
}


/* Responsive adjustments */
@media (max-width: 900px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Header layout stacking */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .header-nav a {
        margin-left: 0;
        margin-right: 1.5rem;
        display: inline-block;
        padding: 0.5rem 0;
    }

    /* Breadcrumb text smaller */
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.75rem 0;
    }

    /* Hero banner adjustments */
    .hero-banner-full {
        height: 40vh;
    }

    .site-title {
        font-size: 2.2rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    /* Main headings smaller */
    h1 {
        font-size: 1.8rem;
        margin-top: 1rem;
    }

    h2 {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    /* Article meta & footer */
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: flex-start;
        font-size: 0.85rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    footer .footer-content {
        padding: 1.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Links spacing bigger for touch */
    a {
        font-size: 1rem;
    }

    /* Related articles: stack list */
    .related-articles ul {
        padding-left: 1rem;
    }

    /* Article cards: full width on mobile */
    .article-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    /* hide header-nav */
    #header-nav {
        display: none; /* hide navigation on small screens */
    }
}

/* Smallest devices - phones */
@media (max-width: 480px) {
    .header-nav a {
        margin-right: 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .site-subtitle {
        font-size: 0.85rem;
    }

    main.content-area {
        padding-bottom: 3rem;
    }
}

/* Responsive adjustments for article cards */
@media (max-width: 600px) {
    .article-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .article-thumb {
        width: 100%;
        height: auto; /* let height adjust to width */
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .article-thumb img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .article-details {
        width: 100%;
    }

    .article-details h2 {
        font-size: 1.25rem;
    }

    .article-preview {
        font-size: 0.9rem;
    }

    .article-meta {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* Base styles */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent);
}

.logo img {
    display: block;
    margin-right: 0.5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

/* Navigation links */
.header-nav a {
    margin-left: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.header-nav a:hover,
.header-nav a:focus {
    color: var(--primary);
    outline: none;
}

/* MOBILE STYLES */
@media (max-width: 600px) {
    .header-nav {
        display: none;
    }
    .hero-banner-full {
        display: none;
    }
}

.related-articles {
    margin-top: 2rem;
}

.related-article-item {
    background: var(--bg-alt);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

.related-article-item:hover {
    transform: translateY(-6px);
}

.related-article-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-article-title {
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 per row by default */
    gap: 1.5rem;
    margin-top: 1rem;
}

/* When screen width is 768px or less, show 2 per row */
@media (max-width: 1000px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.search-wrapper {
    margin: 0rem 0 2rem;
    text-align: center;
}

.article-search-input {
    width: 500px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--glass-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
}

.article-search-input::placeholder {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.article-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 245, 0.2), 0 4px 16px rgba(0, 255, 245, 0.3);
    background: rgba(28, 28, 60, 0.85);
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.tag-label {
    background-color: #eef2f5;
    color: #333;
    font-size: 0.75rem;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    border: 1px solid #ccc;
    white-space: nowrap;

    font-size: 1rem;
    font-weight: 500;
    background: var(--glass-bg);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tag-label:hover {
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
    justify-content: flex-end;
    align-items: center;
    border-radius: 12px;

    /* disable text selection and hover effects */
    user-select: none;
    pointer-events: none;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #a8a8a8;
    transition: color 0.3s ease;
}

.meta-icon {
    width: 1rem;
    height: 1rem;
    fill: #cacaca;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-tags {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    width: 70%;
    max-width: 40rem;
}
.tag-link {
    display: inline-block;
    margin: 0.3rem 0.3rem;
    padding: 0.2rem 0.5rem;
    background: #1e1e1e;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}
.tag-link:hover {
    background: #444;
}

#newsletter-subscribe {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    width: 454px;
    max-width: 90%;
    color: #fff;
    font-family: 'Inter', sans-serif;
    animation: slideIn 0.6s ease-out;
    z-index: 1005;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#newsletter-subscribe form {
    display: flex;
    flex-direction: column;
}

.subscribe-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    margin-top: 0;
}

.subscribe-subtitle {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 1rem;
}

#newsletter-subscribe input[type="email"] {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.6rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background-color 0.3s ease;
}

#newsletter-subscribe input[type="email"]::placeholder {
    color: #ccc;
}

#newsletter-subscribe input[type="email"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
}

#newsletter-subscribe .subscribe-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #6a5acd, #8a2be2);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#newsletter-subscribe .subscribe-btn:hover,
#newsletter-subscribe .subscribe-btn:focus {
    background: linear-gradient(135deg, #5a4acb, #7a1be2);
    outline: none;
}

.newsletter-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(176, 35, 42, 0.15); /* deep muted red with transparency */
    border-radius: 50%;
    border: none;
    font-size: 20px;
    color: #f8d7da; /* soft off-white/pinkish for good contrast */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(176, 35, 42, 0.4); /* soft red shadow */
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    line-height: 1;
}

.newsletter-close:hover {
    background: rgba(176, 35, 42, 0.85); /* stronger deeper red */
    color: #fff; /* pure white on hover for clarity */
    box-shadow: 0 4px 12px rgba(114, 22, 26, 0.7); /* darker red shadow */
}

/* subscribe button styling separate to avoid conflicts */
.subscribe-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #6a5acd, #8a2be2);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.subscribe-btn:hover,
.subscribe-btn:focus {
    background: linear-gradient(135deg, #5a4acb, #7a1be2);
    outline: none;
}


.subscribe-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.subscribe-input-group input[type="email"] {
    flex: 1;
    margin-bottom: 0; /* override old margin */
}

.subscribe-input-group button {
    padding: 0.7rem 1rem;
    white-space: nowrap;
}

@media (max-width: 780px) {
    #newsletter-subscribe {
        display: none;
    }
}



.main-tabs {
    background-color: #111;
    border-bottom: 1px solid #333;
}
.main-tabs .container {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
}
.main-tabs .tab-link {
    color: #aaa;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}
.main-tabs .tab-link:hover,
.main-tabs .tab-link.active {
    color: #fff;
    background-color: #444;
}


@media (max-width: 600px) {
    main.content-area {
        padding-bottom: 0 !important; /* prevent double-spacing below content */
    }

    body::after {
        content: "";
        display: block;
        height: 64px; /* height equal to .floating-footer's height */
    }
}

@media (max-width: 900px) {
    .footer-copy {
        display: none;
    }
}

/* Article hero banner */
.article-hero {
    position: relative;
    width: 100vw;
    height: 60vh;
    max-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    padding: 0 2rem;
    z-index: 0;
}

.article-hero-title {
    font-size: 3rem;
    font-weight: 900;
    max-width: 900px;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

/* Article content container */
.article-content {
    margin: 2rem 0 0 0;
    font-size: 1.125rem;
    line-height: 1.6;
}
.article-author-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;

    margin-top: 2rem;         /* space above the footer */
    padding: 1rem 1.5rem;     /* inner spacing */
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;    /* slightly rounded corners */

    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    flex-shrink: 0;
    color: #888;
    transition: color 0.3s;
}

.meta-author,
.meta-date {
    color: #ddd;
}

.meta-item:hover .meta-icon,
.meta-item:hover .meta-author,
.meta-item:hover .meta-date {
    color: #fff;
}

.hero-banner-full img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
}

.article-title-section {
    background-color: #111; /* dark background */
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.article-title-section h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
}

.image-credit {
    font-size: 0.875rem;         /* Slightly smaller than body text */
    font-style: italic;          /* Italic for attribution */
    color: #666;                 /* Soft grey */
    text-align: right;          /* Align to bottom-right of image */
    margin-top: 0.25rem;         /* Small space above */
    padding-right: 0.5rem;       /* Indent from right edge */
    line-height: 1.4;
    max-width: 100%;
    display: block;
}

/* Optional: for <figure> + <img> + <figcaption> layout */
figure {
    display: inline-block;
    margin: 1.5rem 0;
}

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Optional: responsive behavior */
@media (max-width: 900px) {
    .image-credit {
        font-size: 0.8rem;
        text-align: center;
        padding-right: 0;
    }
    .top-tags {
        display: none;
    }
}

.ln-card {
    display: block;
    text-align: center;
    max-width: 400px;
}

.ln-card-header {
    font-weight: 800;
    text-transform: uppercase;
}

.ln-card-body {
    padding-top: 0;
    width: 100%;
}

#discordInvite {
    background: rgba(47, 49, 54, 0.6);
    border: 1px solid rgba(47, 49, 54, 0.9);
    border-radius: 3px;
    box-sizing: border-box;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    padding: 10px 15px;
    text-align: left;
}

.discord-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.discord-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
}

.image-col {
    flex: 0 0 50px;
}

.info-col {
    flex: 1 1 auto;
    padding-left: 10px;
}

.button-col {
    flex: 0 0 80px;
}

.server-image {
    background-color: #36393f;
    background-image:  url('/assets/favicon/android-chrome-192x192.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px;
    width: 50px;
    height: 50px;
}

#serverNameBox {
    font-weight: 600;
    font-size: 16px;
    color: #f6f6f7;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#status {
    color: #72767d;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
}

#statusIndicators {
    display: flex;
    align-items: center;
}

#onlineInd,
#offlineInd {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

#onlineInd {
    background: #43b581;
}

#offlineInd {
    background: #747f8d;
}

#callToAction {
    background: #43b581;
    border: none;
    border-radius: 3px;
    color: white;
    font-weight: 600;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#callToAction:hover {
    background: #3aa86a;
}

.user-select-none {
    user-select: none;
}


/* Apply to all <ul> elements */
ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

/* Style each <li> inside any <ul> */
ul li {
    color: #f1f1f1;
    border-radius: 6px;
    line-height: 1.4;
    /*display: flex;*/
    align-items: center;
}

ul li p {
    display: inline;
    margin: 0;
    padding: 0.3rem 0;
    flex: 1; /* allows text to take available space */
    color: #e0e0e0; /* softer text color */
    font-weight: 400;
}

/* Add an icon or emoji to each list item */
ul li::before {
    content: "🔹";
    font-size: 1rem;
    color: #5eb1ff;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    background-color: #399CEA;
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.telegram-button:hover {
    background-color: #1c5cab;
    color: #fff;
}

.telegram-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.right-aligned {
    margin-left: auto;
    display: flex;
    align-items: center;
}

@media (max-width: 400px) {
    .telegram-button {
        display: none;
    }
}

.header-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Base badge style modeled after .tag-label */
.badge {
    background: var(--glass-bg, #eef2f5);
    color: var(--text, #333);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.3em 0.8em;
    border-radius: 999px;
    border: 1px solid var(--border, #ccc);
    backdrop-filter: blur(10px);
    box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.4),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* User badge is pill-shaped */
.user-badge {
    border-radius: 999px; /* fully rounded */
    padding-left: 0.8em;
    padding-right: 0.8em;
}

/* Notification badge is squared but with subtle rounding */
.notification-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    padding: 0;
    justify-content: center;
}

/* Badge text style */
.badge-text {
    color: white !important;
    text-decoration: none;
    margin: 0 6px 0 0 !important;
}

.badge:hover {
    background: var(--primary, #6a5acd);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
    transform: scale(1.05);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* SVG icons */
.icon {
    fill: currentColor;
    display: block;
}

.user-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.dropdown-icon {
    width: 12px;
    height: 12px;
    margin-left: 6px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    fill: var(--text, #333);
}

/* Optional hover effect */
.badge:hover {
    box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.disabled-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    pointer-events: none;
}


.meta-share-buttons {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: transform 0.15s ease;
    text-decoration: none;
}

.share-btn:hover,
.share-btn:focus {
    transform: scale(1.2);
    outline: none;
}

.share-btn svg {
    display: block;
    width: 16px;
    height: 16px;
}

.like-btn svg {
    fill: #E0245E; /* heart red */
}

/* Optional: style copy link button */
.copy-link svg {
    fill: #FFF;
}

.edit-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#editor-form, #delete-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Replaces margin-right */
    transition: background-color 0.2s ease-in-out;
}

.btn:hover {
    background-color: #444;
}

.save-btn {
    background-color: #2e7d32; /* Dark green */
}

.save-btn:hover {
    background-color: #388e3c;
}

.cancel-btn {
    background-color: #444;
}

.cancel-btn:hover {
    background-color: #555;
}

#md-editor {
    box-sizing: border-box; /* This is key */
    width: 100%;
    height: 1200px;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    resize: vertical;
    margin-top: 1rem;
    padding: 1rem;
    caret-color: white;
}

#md-editor::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.delete-btn {
    background-color: #6d0000;
}

.delete-btn:hover {
    background-color: #a30000;
}

img[src^="/image.php"], .article-hero {
    filter: invert(100%);
}

.login-message {
    border-radius: 8px;
    font-size: 1rem;
}

ul li {
    padding-left: 1.2em;
    text-indent: -1.4em;
}

ul li p {
    margin: 0;
}