/* ===== CSS RESET & PERFORMANCE OPTIMIZATIONS ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove mobile tap highlight */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Color Palette */
    --primary-bg: #0f1720;
    --secondary-bg: #0a1425;
    --accent-color: #00bfff;
    --accent-hover: #0088cc;
    --text-color: #d9f3ff;
    --text-secondary: #87b7d4;
    --border-color: rgba(0, 180, 255, 0.2);
    --discord-color: #7289da;
    --discord-hover: #5865f2;
    --button-bg: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(10, 20, 40, 0.95);
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;

    /* Role Colors */
    --owner-color: #ffd700;
    --admin-color: #ff6b81;
    --mod-color: #00ced1;
    --helper-color: #00ffea;
    --member-color: #3498db;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    :root {
        --text-color: #ffffff;
        --text-secondary: #a0d2ff;
        --border-color: rgba(0, 180, 255, 0.4);
        --button-bg: rgba(255, 255, 255, 0.15);
    }
}

/* ===== REDUCED MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== BASE STYLES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 9999;
    transition: top var(--transition-base);
}

.skip-to-content:focus {
    top: 0;
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    transform: translate(-50%, -50%);
}

/* ===== HEADER ===== */
#header-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)),
        url('photos/background.jpg') no-repeat center / cover;
    min-height: 300px;
    position: relative;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: inset 0px 0px 50px rgb(9, 75, 151);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-xl) var(--space-md);
    min-height: 300px;
    text-align: center;
}

.server-info {
    background: var(--card-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.8s ease;
}

.server-ip {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: color var(--transition-base);
}

.server-ip:hover,
.server-ip:focus {
    color: var(--accent-color);
}

.server-ip i {
    color: var(--accent-color);
}

.player-count {
    display: inline-block;
    background: var(--accent-color);
    color: #003366;
    padding: var(--space-sm) var(--space-xl);
    border-radius: 25px;
    font-weight: 800;
    font-size: 1.125rem;
    margin-top: var(--space-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

.player-count:hover,
.player-count:focus {
    background: var(--accent-hover);
    transform: scale(1.05);
    border-color: white;
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

/* ===== BUTTONS ===== */
.play-button,
.discord-widget {
    width: 100%;
    max-width: 300px;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
}

.play-button {
    background: var(--accent-color);
    color: #003366;
}

.play-button:hover,
.play-button:focus {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
}

.discord-widget {
    background: var(--discord-color);
    color: white;
}

.discord-widget:hover,
.discord-widget:focus {
    background: var(--discord-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(114, 137, 218, 0.3);
}

.discord-count {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
}

/* ===== 3D LOGO ===== */
.logo-3d-container {
    perspective: 1000px;
    text-align: center;
    padding: var(--space-xl);
    position: relative;
    width: 100%;
}

.logo-3d {
    position: relative;
    transform-style: preserve-3d;
    display: inline-block;
    animation: float3D 6s infinite ease-in-out;
    z-index: 2;
}

.titan-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 40%, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 15px rgba(0, 191, 255, 0.3));
    /* 3D Extrusion Effect */
    text-shadow:
        0 1px 0 #0088cc,
        0 2px 0 #0077bb,
        0 3px 0 #0066aa,
        0 10px 20px rgba(0, 0, 0, 0.5);
}

.network-accent {
    font-weight: 700;
    opacity: 0.9;
}

.logo-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.2) 0%, transparent 70%);
    z-index: 1;
    filter: blur(20px);
    animation: pulseGlow 4s infinite ease-in-out;
}

.logo-subtitle {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes float3D {

    0%,
    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(10deg) rotateX(-5deg) translateY(-10px);
    }
}



/* ===== AUTHENTICATION MODAL ===== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.auth-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 90%;
    max-width: 400px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: fadeIn var(--transition-base);
}

.auth-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover,
.auth-close:focus {
    color: var(--accent-color);
}

.auth-tabs {
    display: flex;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 700;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
}

.auth-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: white;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-family: 'Barlow', sans-serif;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}


.btn {
    width: 100%;
    padding: var(--space-lg);
    background: var(--accent-color);
    color: #003366;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: 'Barlow', sans-serif;
}

.btn:hover,
.btn:focus {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    display: none;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
    display: block;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error-color);
    display: block;
}

.form-message.warning {
    background: rgba(243, 156, 18, 0.2);
    color: var(--warning-color);
    display: block;
}

/* ===== MAIN CONTENT SECTIONS ===== */
.news-section {
    padding: var(--space-2xl) 0;
}

.news-section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.news-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.35rem;
    letter-spacing: 0.2px;
}

.news-feed-container {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.features {
    padding: var(--space-2xl) 0;
    background: var(--secondary-bg);
}

.path-selection {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.path-selection h3 {
    color: white;
    text-align: center;
    margin-bottom: 0.4rem;
}

.path-selection p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.path-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.path-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: 'Barlow', sans-serif;
}

.path-btn:hover,
.path-btn:focus {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.path-btn.active {
    background: var(--accent-color);
    color: #003366;
    border-color: var(--accent-color);
    box-shadow: 0 8px 18px rgba(0, 191, 255, 0.2);
}

.section-title {
    color: white;
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.news-actions-row {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

.view-more-news-btn {
    background: var(--accent-color);
    color: #003366;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: 'Barlow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-more-news-btn:hover,
.view-more-news-btn:focus {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

/* ===== NEWS ARCHIVE (OLD POSTS) ===== */
.news-archive-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding: 0 0 var(--space-xl);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.news-archive-title-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.6;
}

.news-archive-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 23, 42, 0.45);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
}

.news-archive-item:hover {
    background: rgba(0, 191, 255, 0.08);
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.archive-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.archive-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-archive-item:hover .archive-thumbnail {
    transform: scale(1.05);
}

.archive-info {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-comments {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.archive-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Description - Collapsible */
.news-description-content {
    position: relative;
    max-height: none;
    transition: max-height 0.4s ease;
}

.news-description-content.collapsed {
    max-height: 220px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    background: var(--accent-color);
    color: #003366;
    transform: translateX(5px);
}

.read-more-btn i {
    transition: transform 0.2s;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

.news-post-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: newsFadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes newsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. BIG NEWS CARD (TOP) */
.big-news-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-xl);
}

.big-news-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.featured-image-container {
    width: 100%;
    height: 550px;
    /* Increased height to 550px per user request */
    overflow: hidden;
    position: relative;
    background: #0a1425;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1), filter 0.3s ease;
}

.big-news-card:hover .featured-image {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.news-card-body {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    background: linear-gradient(to top, rgba(10, 20, 40, 1) 0%, rgba(10, 20, 40, 0.85) 40%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.news-title {
    font-size: 2.25rem;
    /* Even bigger title */
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
}

.news-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    /* Changed from 12px since it's now in a flex container */
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-comment-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.news-short-preview {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.5;
    font-weight: 500;
}

/* 2. SMALL LOWER SECTION (DESCRIPTION) */
.news-description-section {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-lg);
    position: relative;
    transition: background 0.3s ease;
}

.big-news-card:hover .news-description-section {
    background: #131d33;
}

.news-description-tag {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 1.8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    text-transform: uppercase;
}

.news-description-content {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    letter-spacing: 0.2px;
}

.news-description-content b,
.news-description-content strong {
    color: var(--accent-color);
    font-weight: 700;
}

.news-author-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
    background: #0a1425;
}

.posted-by-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.author-name-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}



/* NEWS ALIGNMENT BLOCKS */
.news-description-content div {
    margin-bottom: 2px;
}

.news-badge.pinned {
    background: #ffd700;
}

.featured-image-container .badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    font-size: 0.85rem;
    padding: 5px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.news-delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    opacity: 0;
    transform: scale(0.8);
}

.big-news-card:hover .news-delete-btn {
    opacity: 1;
    transform: scale(1);
}

.news-delete-btn:hover {
    background: #ef4444;
    transform: scale(1.1) !important;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    animation: fadeIn 0.8s ease;
    will-change: transform;
}

.feature-card:hover,
.feature-card:focus-within {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: var(--accent-color);
}

.feature-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== CREATE NEWS FAB ===== */
.create-news-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: #003366;
    border: none;
    border-radius: 50%;
    display: none; /* Shown via JS */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.4);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.create-news-fab:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent-hover);
    box-shadow: 0 15px 35px rgba(0, 191, 255, 0.6);
}

.create-news-fab:active {
    transform: scale(0.95);
}




/* ===== LOADING SPINNER ===== */
.btn.loading,
.owner-action-btn.loading,
.news-action-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after,
.owner-action-btn.loading::after,
.news-action-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary-bg);
    padding: var(--space-xl) 0;
    text-align: center;
    border-top: 2px solid var(--border-color);
    margin-top: var(--space-2xl);
}

footer p {
    margin: var(--space-sm) 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-base);
    padding: var(--space-xs) 0;
}

.footer-link:hover,
.footer-link:focus {
    color: white;
    text-decoration: underline;
}

/* ===== PRINT STYLES ===== */
@media print {

    .owner-setup-btn,
    .play-button:hover,
    .discord-widget:hover,
    .player-count:hover,
    .mobile-menu-btn,
    .user-btn {
        display: none !important;
    }

    .news-card,
    .feature-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */

/* Small Phones (320px - 374px) */
@media (min-width: 320px) {
    .server-ip {
        font-size: 1.375rem;
    }

    .player-count {
        font-size: 1rem;
        min-width: 140px;
        padding: 0.5rem 1rem;
    }

    .play-button,
    .discord-widget {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .titan-text {
        font-size: 1.5rem;
    }

    .logo-3d-container {
        padding: var(--space-md);
    }

    .logo-aura {
        width: 150px;
        height: 60px;
    }

    .news-image {
        height: 180px;
    }
}

/* Medium Phones (375px - 424px) */
@media (min-width: 375px) {
    .server-ip {
        font-size: 1.5rem;
    }

    .player-count {
        font-size: 1.0625rem;
    }

    .titan-text {
        font-size: 1.75rem;
    }

    .logo-aura {
        width: 180px;
        height: 70px;
    }

    .news-image {
        height: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Phones (425px - 767px) */
@media (min-width: 425px) {
    .server-info {
        max-width: 400px;
    }

    .header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .play-button,
    .discord-widget {
        max-width: 280px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .titan-text {
        font-size: 2.2rem;
    }

    .logo-aura {
        width: 220px;
        height: 80px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }



    .server-info {
        margin: 0 auto;
    }

    .server-ip {
        font-size: 1.75rem;
        justify-content: center;
    }

    .header-actions {
        flex-direction: column;
        align-items: center;
    }

    .play-button,
    .discord-widget {
        width: 220px;
        max-width: none;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .owner-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-content {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
        gap: 2rem;
    }

    .server-info {
        margin: 0;
    }

    .server-ip {
        justify-content: flex-start;
    }

    .header-actions {
        align-items: stretch;
    }

    .container {
        padding: 0 2rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 1rem 1.25rem;
    }

    .news-grid {
        gap: 2rem;
    }

    .features-grid {
        gap: 2rem;
    }

    .owner-actions {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    #header-bg {
        min-height: 350px;
    }

    .header-content {
        min-height: 350px;
    }

    .news-image {
        height: 250px;
    }
}

/* ===== MOBILE NAVIGATION TOGGLE ===== */
@media (max-width: 1050px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--secondary-bg);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 2px solid var(--border-color);
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 0;
        justify-content: center;
    }

    .user-dropdown {
        position: fixed;
        top: 70px;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
    }

    .discord-count {
        display: none;
    }
}

/* Jartex-inspired IP Box */
.jartex-ip-box {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.1);
}

.jartex-ip-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.2);
}

.click-to-copy-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.8;
    text-transform: uppercase;
}

.server-ip-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.server-motto {
    margin-top: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* News Card Upgrade */
.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 10px;
}

.news-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(0, 191, 255, 0.4);
}

.news-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.news-comments-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Community Widget */
.community-sidebar {
    display: grid;
    gap: var(--space-xl);
}

.widget {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.widget-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}

/* Staff Online Card Specifics */
.staff-online-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.staff-online-list::-webkit-scrollbar {
    width: 6px;
}

.staff-online-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.staff-online-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.staff-online-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.staff-online-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
    border-color: var(--accent-color);
}

.staff-online-item:hover .staff-name {
    color: var(--accent-color);
}

.staff-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staff-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

/* Guest Specific Styling */
.guest-item {
    cursor: default;
}

.guest-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guest-avatar-placeholder i {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.guest-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
}

.staff-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ===== DARK MODE SUPPORT (if applicable) ===== */
@media (prefers-color-scheme: dark) {
    /* Colors already optimized for dark mode */
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {

    .news-card:hover,
    .feature-card:hover,
    .play-button:hover,
    .discord-widget:hover {
        transform: none;
    }

    .news-card:active,
    .feature-card:active {
        transform: scale(0.98);
    }

    .play-button:active,
    .discord-widget:active {
        transform: scale(0.98);
    }

    /* Increase touch target sizes */
    .nav-links a,
    .footer-link,
    .auth-tab {
        min-height: 44px;
        min-width: 44px;
    }

    .play-button,
    .discord-widget,
    .owner-action-btn {
        min-height: 44px;
    }
}

/* ===== DESKTOP MORE BUTTON (Default) ===== */
.more-btn {
    position: relative;
    list-style: none;
}

.more-btn>a {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.more-btn>a:hover,
.more-btn>a:focus {
    background: var(--button-bg);
    color: var(--accent-color);
}

.more-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    min-width: 220px;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

.more-menu.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

.more-menu li {
    list-style: none;
}

.more-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: 0.9375rem;
}

.more-menu a:hover,
.more-menu a:focus {
    background: var(--accent-color);
    color: #003366;
    padding-left: calc(var(--space-md) + 5px);
}

/* ===== MOBILE MORE BUTTON (max-width: 767px) ===== */
@media (max-width: 1050px) {
    .more-btn {
        width: 100%;
    }

    .more-btn>a {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
        border-radius: 0;
    }

    .more-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        min-width: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        background: var(--secondary-bg);
        max-height: 60vh;
        overflow-y: auto;
        z-index: 999;
        padding: 0;
    }

    .more-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .more-menu li:last-child {
        border-bottom: none;
    }

    .more-menu a {
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
        display: flex;
        align-items: center;
        border-radius: 0;
        text-align: center;
    }

    .more-menu a:hover,
    .more-menu a:focus {
        padding-left: 1rem;
        /* Remove the extra padding on mobile */
        background: var(--accent-color);
        color: #003366;
    }
}

/* ===== TABLET (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .more-menu {
        min-width: 200px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .more-btn>a {
        min-height: 44px;
        min-width: 44px;
    }

    .more-menu a {
        min-height: 44px;
    }

    .more-menu a:hover {
        background: transparent;
        color: var(--text-color);
    }

    .more-menu a:active {
        background: var(--accent-color);
        color: #003366;
    }
}

/* News Creation Modal CSS */
.news-creation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.news-creation-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 95%;
    max-width: 600px;
    border: 2px solid var(--accent-color);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.news-creation-title {
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--space-sm);
}

.form-row {
    margin-bottom: var(--space-md);
}

.form-row label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.image-upload-section {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.image-option-tabs {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}

.image-tab {
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 0.875rem;
}

.image-tab.active {
    background: var(--accent-color);
    color: #003366;
}

.image-preview-container {
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 200px;
    display: none;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

.news-action-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.news-action-btn.primary {
    background: var(--accent-color);
    color: #003366;
}

.news-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Main Content Layout CSS */
/* Consolidated Layout Logic */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    /* Prevents sidebar from stretching with news height */
}

@media (min-width: 768px) {
    .main-layout {
        padding: var(--space-xl) 0;
        gap: var(--space-2xl);
    }
}

@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr 350px;
        align-items: start;
    }
}

.community-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-self: start;
    /* Ensure it stays at the top */
}

@media (min-width: 768px) and (max-width: 1023px) {
    .community-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.jartex-ip-box {
    padding: var(--space-md);
}

@media (min-width: 768px) {
    .jartex-ip-box {
        padding: var(--space-xl);
    }
}

.server-ip-text {
    font-size: 1.2rem;
    word-break: break-all;
}

@media (min-width: 640px) {
    .server-ip-text {
        font-size: 1.5rem;
        word-break: normal;
    }
}

.section-title {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ===== MODAL SYSTEM ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-height: 95vh;
    animation: modalContentIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalContentIn {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 100;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* News Viewer Specifics */
.news-viewer-content {
    max-width: 900px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    background: #0a1120;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 191, 255, 0.1);
}

.viewer-image-container {
    width: 100%;
    height: 480px;
    position: relative;
}

#viewer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    background: linear-gradient(to top, #0a1120 15%, rgba(10, 17, 32, 0.8) 50%, transparent);
}

.viewer-title {
    font-size: 2.5rem;
    color: white;
    margin: 0 0 10px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.viewer-date {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.viewer-body {
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
    max-height: 45vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.viewer-tag {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.viewer-description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.viewer-description b,
.viewer-description strong {
    color: var(--accent-color);
    font-weight: 800;
}

.viewer-author-footer {
    margin-top: 50px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .viewer-image-container {
        height: 350px;
    }

    .viewer-title {
        font-size: 1.8rem;
    }

    .viewer-body {
        padding: var(--space-xl);
    }
}