/* Import Upheaval Font */
@font-face {
    font-family: 'Upheaval';
    src: url('Upheaval.woff2') format('woff2'),
         url('Upheaval.woff') format('woff'),
         url('Upheaval.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Google Fonts for backup */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    transition: all 0.3s ease;
    /* Default to dark theme to prevent flash */
    background: url('images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f4f4f4;
}

/* Default light theme */
body.light {
    background: url('images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #222;
}

/* Dark theme */
body.dark {
    background: url('images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f4f4f4;
}

nav {
    background: rgba(34, 34, 34, 0.9);
    padding: 1em;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

body.dark nav {
    background: rgba(68, 68, 68, 0.9);
}

.nav-left, .nav-right {
    display: flex;
    gap: 1em;
    align-items: center;
}

.nav-left {
    margin-right: 2em;
}

.nav-right {
    margin-left: 2em;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    text-decoration: underline;
    color: #00d4ff;
}

/* Responsive navigation for mobile */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1em;
        padding: 0.5em;
    }
    
    .nav-left, .nav-right {
        margin: 0;
        justify-content: center;
    }
    
    .logo {
        order: -1;
        height: 40px;
    }
}

main {
    max-width: 700px;
    margin: 2em auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Wider main content for desktop screens */
@media (min-width: 1200px) {
    main {
        max-width: 1000px;
        padding: 3em;
    }
}

@media (min-width: 1600px) {
    main {
        max-width: 1200px;
        padding: 3em 4em;
    }
}

body.dark main {
    background: rgba(68, 68, 68, 0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Enhanced Link Styling for Better Contrast */
a {
    color: #00d4ff; /* Bright cyan for dark theme */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #66e5ff; /* Even brighter on hover */
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

a:visited {
    color: #80b3ff; /* Visited links in lighter blue */
}

/* Light theme link colors */
body.light a {
    color: #0066cc; /* Darker blue for light backgrounds */
    font-weight: 500;
}

body.light a:hover {
    color: #004499;
    text-shadow: none;
}

body.light a:visited {
    color: #4d0080; /* Purple for visited links in light mode */
}

h1 {
    font-family: 'Upheaval', 'Orbitron', sans-serif;
    color: #00d4ff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

body.dark h1 {
    color: #4db8ff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Special styling for other headings */
h2, h3 {
    font-family: 'Upheaval', 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    color: #1a5bb8;
    font-size: 1.8rem;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

body.dark h2 {
    color: #66c2ff;
    border-bottom-color: #4db8ff;
}

h3 {
    color: #0f4591;
    font-size: 1.4rem;
}

body.dark h3 {
    color: #80ccff;
}

/* Theme Switcher Styles */
#theme-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    position: fixed;
    overflow: hidden;
    z-index: 1000;
}

#theme-switcher:hover {
    transform: scale(1.05);
}

#theme-switcher .sun,
#theme-switcher .moon {
    font-size: 16px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

#theme-switcher .sun {
    opacity: 1;
}

#theme-switcher .moon {
    opacity: 0.3;
}

#theme-switcher::before {
    content: '';
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

body.dark #theme-switcher {
    background: #4a4a4a;
}

body.dark #theme-switcher::before {
    transform: translateX(30px);
    background: #f4f4f4;
}

body.dark #theme-switcher .sun {
    opacity: 0.3;
}

body.dark #theme-switcher .moon {
    opacity: 1;
}

/* Remove old theme styles and replace with comprehensive ones */

.logo {
    height: 50px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    flex-shrink: 0;
}

.banner {
    display: none; /* Hide since we're using it as background */
}

/* Text legibility improvements */
p {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.6;
}

/* Video styling */
.trailer-section {
    margin-top: 2em;
}

.trailer-section h2 {
    color: #00d4ff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

body.dark .trailer-section h2 {
    color: #4db8ff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Game features and content styling */
.subtitle {
    font-size: 1.2em;
    font-style: italic;
    color: #666;
    margin-bottom: 1.5em;
}

body.dark .subtitle {
    color: #bbb;
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    padding: 0.5em 0;
    font-size: 1.1em;
}

.game-story, .gameplay-info, .development-info, .contact-info, .feedback-section, .updates-section {
    margin-bottom: 2em;
}

.developer {
    margin-bottom: 1.5em;
    padding: 1em;
    background: rgba(42, 122, 226, 0.1);
    border-radius: 8px;
    border-left: 4px solid #2a7ae2;
}

body.dark .developer {
    background: rgba(77, 184, 255, 0.1);
    border-left-color: #4db8ff;
}

.contact-methods ul {
    list-style: none;
    padding: 0;
}

.contact-methods li {
    padding: 0.5em 0;
    font-size: 1.1em;
}

/* News Blog Styles */
.auth-section {
    margin-bottom: 2em;
    padding: 1em;
    background: rgba(42, 122, 226, 0.1);
    border-radius: 8px;
    border-left: 4px solid #2a7ae2;
}

body.dark .auth-section {
    background: rgba(77, 184, 255, 0.1);
    border-left-color: #4db8ff;
}

.auth-form input, .auth-form textarea {
    width: 100%;
    max-width: 300px;
    padding: 0.5em;
    margin: 0.5em 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

body.dark .auth-form input, body.dark .auth-form textarea {
    background: #444;
    border-color: #666;
    color: #f4f4f4;
}

.newsletter-signup {
    margin: 1em 0;
    padding: 0.5em;
    background: rgba(42, 122, 226, 0.1);
    border-radius: 4px;
    border-left: 3px solid #2a7ae2;
}

.newsletter-signup label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    font-size: 0.9em;
}

.newsletter-signup input[type="checkbox"] {
    width: auto;
    margin: 0;
}

body.dark .newsletter-signup {
    background: rgba(77, 184, 255, 0.1);
    border-left-color: #4db8ff;
}

.email-verification-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #e0a800;
    padding: 1em;
    border-radius: 4px;
    margin: 1em 0;
    text-align: center;
}

body.dark .email-verification-notice {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.auth-form button {
    background: #2a7ae2;
    color: white;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5em 0;
}

.auth-form button:hover {
    background: #1e5bb8;
}

/* Authentication Message Styles */
.auth-message {
    margin: 0.5em 0;
    padding: 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    min-height: 0;
    transition: all 0.3s ease;
}

.auth-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.auth-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.auth-message.info {
    background: rgba(42, 122, 226, 0.1);
    color: #2a7ae2;
    border: 1px solid rgba(42, 122, 226, 0.3);
}

.auth-message:empty {
    display: none;
    padding: 0;
    margin: 0;
}

body.dark .auth-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border-color: rgba(220, 53, 69, 0.4);
}

body.dark .auth-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #6bcf7f;
    border-color: rgba(40, 167, 69, 0.4);
}

body.dark .auth-message.info {
    background: rgba(42, 122, 226, 0.2);
    color: #4db8ff;
    border-color: rgba(42, 122, 226, 0.4);
}

/* Top page message styles for non-auth messages */
.message {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1em 2em;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.message.error {
    background: #dc3545;
    color: white;
}

.message.success {
    background: #28a745;
    color: white;
}

.message.info {
    background: #2a7ae2;
    color: white;
}

.user-logged-in {
    display: flex;
    align-items: center;
    gap: 1em;
}

.admin-section {
    margin-bottom: 2em;
    padding: 1em;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.post-creator input, .post-creator textarea {
    width: 100%;
    padding: 0.5em;
    margin: 0.5em 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

body.dark .post-creator input, body.dark .post-creator textarea {
    background: #444;
    border-color: #666;
    color: #f4f4f4;
}

.news-post {
    margin-bottom: 3em;
    padding: 2em;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark .news-post {
    background: rgba(68, 68, 68, 0.9);
}

.post-meta {
    color: #666;
    font-style: italic;
    margin-bottom: 1em;
}

body.dark .post-meta {
    color: #bbb;
}

.comments-section {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

body.dark .comments-section {
    border-top-color: #555;
}

.comment-form textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

body.dark .comment-form textarea {
    background: #444;
    border-color: #666;
    color: #f4f4f4;
}

.comment {
    padding: 1em;
    margin: 1em 0;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 4px;
    border-left: 3px solid #2a7ae2;
}

body.dark .comment {
    background: rgba(60, 60, 60, 0.8);
    border-left-color: #4db8ff;
}

.comment-header {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark .comment-header {
    color: #bbb;
}

.delete-comment-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8em;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    transition: background 0.3s ease;
    opacity: 0.7;
}

.delete-comment-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    opacity: 1;
}

body.dark .delete-comment-btn:hover {
    background: rgba(220, 53, 69, 0.2);
}

.no-comments {
    font-style: italic;
    color: #666;
}

body.dark .no-comments {
    color: #bbb;
}

.login-prompt {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

body.dark .login-prompt {
    color: #bbb;
}

/* Social Media Platform Styles */
.social-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 1em;
}

/* Better grid layout for wider screens */
@media (min-width: 1200px) {
    .social-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
    }
}

@media (min-width: 1600px) {
    .social-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5em;
    }
}

.platform {
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.platform:hover {
    transform: translateY(-5px);
}

body.dark .platform {
    background: rgba(68, 68, 68, 0.9);
}

.social-link {
    display: inline-block;
    background: #2a7ae2;
    color: white;
    padding: 0.7em 1.5em;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1em;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #1e5bb8;
}

.community-guidelines ul {
    list-style: none;
    padding: 0;
}

.community-guidelines li {
    padding: 0.5em 0;
    border-left: 3px solid #2a7ae2;
    padding-left: 1em;
    margin: 0.5em 0;
}

body.dark .community-guidelines li {
    border-left-color: #4db8ff;
}

/* Admin Controls Styles */
.admin-controls {
    margin: 1em 0;
    display: flex;
    gap: 0.5em;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5em;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.edit-btn, .delete-btn, .save-btn, .cancel-btn {
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-btn {
    background: #ffc107;
    color: #000;
}

.edit-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.delete-btn, .danger-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover, .danger-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.save-btn {
    background: #28a745;
    color: white;
}

.save-btn:hover {
    background: #218838;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}

.edit-post-form {
    padding: 1.5em;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.edit-post-form input, .edit-post-form textarea {
    width: 100%;
    padding: 0.5em;
    margin: 0.5em 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

body.dark .edit-post-form input, body.dark .edit-post-form textarea {
    background: #444;
    border-color: #666;
    color: #f4f4f4;
}

.edit-controls {
    margin-top: 1em;
    display: flex;
    gap: 0.5em;
}

/* Admin Panel Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5em;
    margin-bottom: 1em;
    border-bottom: 2px solid #eee;
}

body.dark .admin-tabs {
    border-bottom-color: #555;
}

.tab-btn {
    padding: 0.7em 1.5em;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: #2a7ae2;
    color: #2a7ae2;
}

body.dark .tab-btn.active {
    border-bottom-color: #4db8ff;
    color: #4db8ff;
}

.tab-btn:hover {
    background: rgba(42, 122, 226, 0.1);
}

.account-management {
    padding: 1em 0;
}

.account-management button {
    margin: 0.5em 0.5em 0.5em 0;
    padding: 0.7em 1.5em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #2a7ae2;
    color: white;
    transition: background 0.3s ease;
}

.account-management button:hover {
    background: #1e5bb8;
}

/* Post Detail Page Styles */
.post-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2em;
    margin-bottom: 2em;
}

.back-link {
    display: inline-block;
    color: #2a7ae2;
    text-decoration: none;
    margin-bottom: 2em;
    font-weight: 500;
    transition: color 0.3s ease;
    background: rgba(42, 122, 226, 0.1);
    padding: 0.5em 1em;
    border-radius: 6px;
    border: 1px solid rgba(42, 122, 226, 0.3);
}

.back-link:hover {
    color: #1e5bb8;
    background: rgba(42, 122, 226, 0.2);
    text-decoration: underline;
}

.full-post {
    margin-bottom: 3em;
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.full-post h1 {
    font-family: 'Upheaval', 'Orbitron', sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
    text-shadow: 1px 1px 2px rgba(42, 122, 226, 0.1);
}

.full-post .post-meta {
    color: #666;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 2px solid rgba(42, 122, 226, 0.1);
    font-weight: 500;
}

.full-post .post-content {
    font-size: 1.1em;
    line-height: 1.7;
    margin: 1.5em 0;
    color: #333;
    background: #fafafa;
    padding: 1.5em;
    border-radius: 6px;
    border-left: 4px solid #2a7ae2;
}

/* Clickable Posts on News Page */
.clickable-post {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 2em;
}

.clickable-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-excerpt {
    margin: 1em 0;
    line-height: 1.6;
}

.read-more {
    margin-top: 1em;
    text-align: right;
}

.read-more-link {
    color: #2a7ae2;
    font-weight: 500;
    font-size: 0.9em;
}

/* Comments Section Improvements */
.comments-section {
    margin-top: 3em;
    padding: 2em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #2a7ae2;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.comments-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-family: 'Upheaval', 'Orbitron', sans-serif;
    font-size: 1.5em;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.sort-controls label {
    font-weight: 500;
    color: #333;
}

.sort-controls select {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    color: #333;
    font-weight: 500;
}

.add-comment {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid rgba(42, 122, 226, 0.2);
}

.add-comment.disabled {
    opacity: 0.6;
    background: #f0f0f0;
}

.add-comment form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.add-comment textarea {
    min-height: 100px;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    background: white;
    color: #333;
}

.add-comment button {
    align-self: flex-start;
    padding: 0.7em 1.5em;
    background: #2a7ae2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.add-comment button:hover {
    background: #1e5bb8;
}

.login-prompt {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 1em;
    background: rgba(42, 122, 226, 0.05);
    border-radius: 4px;
}

/* Comment Styling */
.comment {
    margin-bottom: 1.5em;
    padding: 1.5em;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.comment:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #f0f0f0;
}

.comment-author {
    font-weight: 600;
    color: #2a7ae2;
    font-size: 1.1em;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.comment-content {
    margin: 1em 0;
    line-height: 1.6;
    color: #333;
    font-size: 1em;
    background: #fafafa;
    padding: 1em;
    border-radius: 4px;
    border-left: 3px solid #2a7ae2;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
    padding-top: 0.5em;
    border-top: 1px solid #f0f0f0;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 0.3em;
    background: white;
    border: 2px solid #ddd;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.like-btn:hover:not(:disabled) {
    border-color: #2a7ae2;
    background: rgba(42, 122, 226, 0.1);
    transform: translateY(-1px);
}

.like-btn.liked {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-icon {
    font-size: 1em;
}

.like-count {
    font-weight: 600;
}

.login-to-like {
    color: #666;
    font-size: 0.8em;
    font-style: italic;
    background: rgba(42, 122, 226, 0.05);
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.error-message {
    text-align: center;
    padding: 3em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-message h2 {
    color: #e74c3c;
    margin-bottom: 1em;
}

.error-message .btn {
    display: inline-block;
    padding: 0.7em 1.5em;
    background: #2a7ae2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1em;
    transition: background 0.3s ease;
}

.error-message .btn:hover {
    background: #1e5bb8;
}

/* Dark Theme Adjustments */
body.dark .post-detail-container {
    background: rgba(40, 40, 40, 0.95);
    color: #f4f4f4;
}

body.dark .full-post {
    background: #2a2a2a;
    color: #f4f4f4;
}

body.dark .full-post h1 {
    color: #f4f4f4;
}

body.dark .full-post .post-meta {
    color: #ccc;
    border-bottom-color: rgba(42, 122, 226, 0.3);
}

body.dark .full-post .post-content {
    background: #333;
    color: #f4f4f4;
}

body.dark .comments-section {
    background: #2a2a2a;
    color: #f4f4f4;
}

body.dark .comments-header h3 {
    color: #f4f4f4;
}

body.dark .sort-controls label {
    color: #ccc;
}

body.dark .sort-controls select {
    background: #333;
    color: #f4f4f4;
    border-color: #555;
}

body.dark .add-comment {
    background: #333;
    border-color: rgba(42, 122, 226, 0.4);
}

body.dark .add-comment textarea {
    background: #333;
    color: #f4f4f4;
    border-color: #555;
}

body.dark .comment {
    background: #333;
    border-color: #555;
    color: #f4f4f4;
}

body.dark .comment-content {
    background: #2a2a2a;
    color: #f4f4f4;
}

body.dark .comment-header {
    border-bottom-color: #444;
}

body.dark .comment-actions {
    border-top-color: #444;
}

body.dark .like-btn {
    border-color: #555;
    color: #f4f4f4;
    background: #333;
}

body.dark .like-btn:hover:not(:disabled) {
    border-color: #2a7ae2;
    background: rgba(42, 122, 226, 0.2);
}

body.dark .no-comments {
    background: #333;
    color: #ccc;
    border-color: #555;
}

body.dark .error-message {
    background: #2a2a2a;
    color: #f4f4f4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-detail-container {
        padding: 1em;
    }
    
    .full-post h1 {
        font-size: 2em;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .sort-controls {
        align-self: flex-end;
    }
}

/* User Menu Styles - Positioned in top-left corner */
.user-menu {
    position: fixed;
    top: 8px;
    left: 15px;
    font-size: 0.9rem;
    z-index: 1000;
}

/* Special positioning when user menu is in navigation */
.nav-user-menu .user-menu {
    position: relative;
    top: auto;
    left: auto;
    margin-right: 1em;
    display: inline-flex;
    align-items: center;
}

.user-menu-trigger {
    cursor: pointer;
    background: rgba(42, 122, 226, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    border: 1px solid rgba(42, 122, 226, 0.6);
    transition: all 0.3s ease;
}

.user-menu-trigger:hover {
    background: rgba(42, 122, 226, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 122, 226, 0.3);
}

body.dark .user-menu-trigger {
    background: rgba(77, 184, 255, 0.8);
    border-color: rgba(77, 184, 255, 0.6);
}

body.dark .user-menu-trigger:hover {
    background: rgba(77, 184, 255, 1);
    box-shadow: 0 2px 8px rgba(77, 184, 255, 0.3);
}

.user-menu-trigger.hidden {
    display: none;
}

.user-menu-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    max-width: 140px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
}

/* When user menu is in navigation, position dropdown relative to trigger */
.nav-user-menu .user-menu-dropdown {
    top: 100%;
    margin-top: 5px;
}

body.dark .user-menu-dropdown {
    background: rgba(40, 40, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.user-menu-dropdown.open {
    display: block;
}

.user-menu-dropdown a, .user-menu-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #333;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    box-sizing: border-box;
}

body.dark .user-menu-dropdown a, body.dark .user-menu-dropdown button {
    color: #f0f0f0;
}

.user-menu-dropdown a:hover, .user-menu-dropdown button:hover {
    background: rgba(42, 122, 226, 0.1);
    color: #2a7ae2;
}

body.dark .user-menu-dropdown a:hover, body.dark .user-menu-dropdown button:hover {
    background: rgba(77, 184, 255, 0.1);
    color: #4db8ff;
}

.user-menu-dropdown .divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
}

body.dark .user-menu-dropdown .divider {
    background: rgba(255, 255, 255, 0.1);
}

/* Profile Page Styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
}

.profile-header {
    text-align: center;
    margin-bottom: 3em;
    padding: 2em;
    background: rgba(42, 122, 226, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(42, 122, 226, 0.2);
}

body.dark .profile-header {
    background: rgba(77, 184, 255, 0.1);
    border-color: rgba(77, 184, 255, 0.2);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a7ae2, #4db8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1em;
    font-size: 2em;
    color: white;
    font-weight: bold;
}

.profile-info h2 {
    margin: 0 0 0.5em;
    color: #2a7ae2;
    font-family: 'Upheaval', 'Orbitron', sans-serif;
}

body.dark .profile-info h2 {
    color: #4db8ff;
}

.profile-email {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 1em;
}

body.dark .profile-email {
    color: #bbb;
}

.verification-status {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block;
}

.verification-status.verified {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.verification-status.unverified {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

body.dark .verification-status.verified {
    background: rgba(40, 167, 69, 0.2);
    color: #6bcf7f;
}

body.dark .verification-status.unverified {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
}

.profile-tabs {
    display: flex;
    gap: 0.5em;
    margin-bottom: 2em;
    border-bottom: 2px solid #eee;
}

body.dark .profile-tabs {
    border-bottom-color: #555;
}

.profile-tab-btn {
    padding: 0.7em 1.5em;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.profile-tab-btn.active {
    border-bottom-color: #2a7ae2;
    color: #2a7ae2;
}

body.dark .profile-tab-btn {
    color: #bbb;
}

body.dark .profile-tab-btn.active {
    border-bottom-color: #4db8ff;
    color: #4db8ff;
}

.profile-tab-btn:hover {
    background: rgba(42, 122, 226, 0.1);
    color: #2a7ae2;
}

body.dark .profile-tab-btn:hover {
    background: rgba(77, 184, 255, 0.1);
    color: #4db8ff;
}

.profile-tab-content {
    display: none;
    padding: 2em;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-tab-content.active {
    display: block;
}

body.dark .profile-tab-content {
    background: rgba(40, 40, 40, 0.9);
}

.profile-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #333;
}

body.dark .form-group label {
    color: #f0f0f0;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

body.dark .form-group input, body.dark .form-group textarea {
    background: #333;
    border-color: #555;
    color: #f0f0f0;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2a7ae2;
    box-shadow: 0 0 0 2px rgba(42, 122, 226, 0.2);
}

body.dark .form-group input:focus, body.dark .form-group textarea:focus {
    border-color: #4db8ff;
    box-shadow: 0 0 0 2px rgba(77, 184, 255, 0.2);
}

.btn {
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2a7ae2;
    color: white;
}

.btn-primary:hover {
    background: #1e5bb8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 122, 226, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

.stat-card {
    padding: 1.5em;
    background: rgba(42, 122, 226, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(42, 122, 226, 0.1);
    text-align: center;
}

body.dark .stat-card {
    background: rgba(77, 184, 255, 0.05);
    border-color: rgba(77, 184, 255, 0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2a7ae2;
    display: block;
}

body.dark .stat-number {
    color: #4db8ff;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    margin-top: 0.5em;
}

body.dark .stat-label {
    color: #bbb;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.danger-zone {
    margin-top: 3em;
    padding: 2em;
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
}

body.dark .danger-zone {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.danger-zone h3 {
    color: #dc3545;
    margin-top: 0;
}

body.dark .danger-zone h3 {
    color: #ff6b7a;
}

.loading-message {
    text-align: center;
    padding: 2em;
    color: #666;
    font-style: italic;
}

body.dark .loading-message {
    color: #bbb;
}

/* Mobile Responsive for Profile */
@media (max-width: 768px) {
    .profile-container {
        padding: 1em;
    }
    
    .profile-tabs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: thin;
    }
    
    .profile-tab-btn {
        flex-shrink: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-menu {
        position: fixed;
        top: 5px;
        left: 5px;
        z-index: 1001;
    }
}
