/* EliteDesire Forum - Complete Responsive Stylesheet */

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --accent-red: #dc143c;
    --accent-gold: #d4af37;
    --light-gold: #ffd700;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: rgba(212, 175, 55, 0.2);
    --hover-bg: rgba(220, 20, 60, 0.1);
    --success: #00c851;
    --warning: #ffbb33;
    --error: #ff4444;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* ===== HEADER - STICKY NAVIGATION ===== */
.header {
    background: linear-gradient(90deg, #000 0%, #1a0505 50%, #000 100%);
    border-bottom: 2px solid var(--accent-gold);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    height: var(--header-height);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent-gold), var(--light-gold), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 2001;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-welcome {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.mobile-menu-toggle.active {
    color: var(--accent-red);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--secondary-black);
    border-right: 2px solid var(--accent-gold);
    transition: left 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding-left: 35px;
}

.mobile-user-actions {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.mobile-user-actions .user-welcome {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.mobile-user-actions .btn {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-red), #b91830);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, var(--accent-gold), var(--light-gold));
    color: var(--primary-black);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-red);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline:hover {
    background: var(--accent-red);
    color: white;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    min-height: calc(100vh - var(--header-height) - 40px);
}

/* Thread page specific layout */
.container.thread-layout {
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Thread-specific main content without background */
.main-content.thread-content {
    background: none;
    border: none;
    overflow: visible;
}

.content-header {
    background: linear-gradient(90deg, var(--accent-red), #8b0000);
    padding: 20px 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-actions {
    display: flex;
    gap: 10px;
}

.content-body {
    padding: 30px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section,
.widget {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.widget-header {
    background: linear-gradient(90deg, var(--accent-gold), var(--light-gold));
    color: var(--primary-black);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1rem;
}

.widget-content {
    padding: 20px;
}

.category-list {
    list-style: none;
    padding: 20px;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-list a:hover,
.category-list a.active {
    background: var(--hover-bg);
    color: var(--accent-gold);
    transform: translateX(5px);
}

.premium-badge {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ===== THREADS ===== */
.thread {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.thread:hover {
    border-color: var(--accent-gold);
    background: rgba(220, 20, 60, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.thread-title {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-title a {
    color: inherit;
    text-decoration: none;
}

.pin-icon {
    color: var(--accent-red);
}

.nsfw-badge {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.locked-badge {
    background: rgba(136, 136, 136, 0.2);
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    border: 1px solid rgba(136, 136, 136, 0.3);
}

.thread-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.thread-meta a {
    color: var(--accent-gold);
    text-decoration: none;
}

.thread-preview {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.thread-stats {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

/* ===== THREAD VIEW ===== */
.breadcrumb {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.thread-header {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.thread-header h1 {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.thread-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== POSTS ===== */
.posts-container {
    margin-bottom: 30px;
}

.post {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 150px;
}

.post-sidebar {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-author {
    text-align: center;
    width: 100%;
}

.author-avatar {
    margin-bottom: 15px;
}

.author-avatar img,
.default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    object-fit: cover;
}

.default-avatar {
    background: linear-gradient(45deg, var(--accent-red), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto;
}

.author-info {
    width: 100%;
}

.author-name {
    margin: 0 0 8px 0;
}

.author-name a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.author-name a:hover {
    color: var(--light-gold);
}

.author-role {
    font-size: 0.8rem;
    margin: 5px 0;
    font-weight: 500;
}

.author-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.4;
}

.author-stats div {
    margin-bottom: 3px;
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.post-action:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.like-btn.liked {
    color: var(--accent-red);
    background: rgba(220, 20, 60, 0.2);
}

.post-body {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}

/* HTML content styling in posts */
.post-body p {
    margin-bottom: 1em;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
    color: var(--accent-gold);
    margin: 1em 0 0.5em 0;
}

.post-body strong, .post-body b {
    color: var(--light-gold);
}

.post-body em, .post-body i {
    font-style: italic;
}

.post-body a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--light-gold);
}

.post-body ul, .post-body ol {
    margin: 1em 0;
    padding-left: 2em;
}

.post-body blockquote {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--accent-gold);
    margin: 1em 0;
    padding: 15px;
    border-radius: 5px;
    font-style: italic;
}

.post-body code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--light-gold);
}

.post-body pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-edited {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* ===== REPLY FORM ===== */
.reply-form-container {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.reply-form-container h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.login-prompt,
.locked-notice {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-prompt h3,
.locked-notice h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== SIDEBAR WIDGETS ===== */
.right-sidebar,
.thread-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.online-users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-badge {
    background: rgba(220, 20, 60, 0.2);
    color: var(--accent-red);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(220, 20, 60, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-badge:hover {
    background: rgba(220, 20, 60, 0.3);
    transform: scale(1.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(212, 175, 55, 0.2);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.recent-topic {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: 15px;
}

.recent-topic:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-topic-title {
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    display: block;
}

.recent-topic-title:hover {
    color: var(--light-gold);
}

.recent-topic-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== THREAD SIDEBAR ===== */
.thread-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.similar-thread {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.similar-thread:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.similar-thread-title {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.similar-thread-title:hover {
    color: var(--light-gold);
}

.similar-thread-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.nav-link {
    display: block;
    color: var(--accent-gold);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link:hover {
    color: var(--light-gold);
    padding-left: 10px;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    right: 30px;
    background: var(--secondary-black);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-red { color: var(--accent-red) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.hidden { display: none !important; }
.show { display: block !important; }

.no-scroll {
    overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 200px 1fr 280px;
        gap: 20px;
    }
    
    .container.thread-layout {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: var(--header-height);
    }
    
    .header {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    /* Hide desktop navigation */
    .nav-links,
    .user-actions {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    .container {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
    
    .container.thread-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        display: none;
    }
    
    .right-sidebar {
        order: -1;
        margin-bottom: 20px;
    }
    
    .post {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
    }
    
    .post-author {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }
    
    .author-avatar {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .author-avatar img,
    .default-avatar {
        width: 60px;
        height: 60px;
    }
    
    .author-info {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .container.thread-layout {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar,
    .thread-sidebar {
        display: none;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .content-actions {
        justify-content: center;
    }
    
    .thread-header {
        padding: 20px;
    }
    
    .thread-header h1 {
        font-size: 1.5rem;
    }
    
    .thread-meta {
        justify-content: center;
        text-align: center;
    }
    
    .thread-actions {
        justify-content: center;
    }
    
    .post {
        margin-bottom: 15px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .notification {
        top: calc(var(--header-height) + 10px);
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    
    .header {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .content-body,
    .reply-form-container,
    .login-prompt,
    .locked-notice {
        padding: 15px;
    }
    
    .thread-header {
        padding: 15px;
    }
    
    .post-sidebar {
        padding: 15px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .mobile-nav {
        width: 100%;
        left: -100%;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    .widget-content {
        padding: 15px;
    }
    
    .category-list {
        padding: 15px;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--accent-red), var(--accent-gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-red));
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Add this to your style.css for better pagination styling */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.pagination .btn {
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    border-radius: 6px;
    font-size: 0.9rem;
}

.pagination .btn-primary {
    background: var(--accent-gold);
    color: var(--primary-black);
    font-weight: bold;
    cursor: default;
}

.pagination .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.pagination .btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    border-color: var(--accent-gold);
}

.pagination-dots {
    color: var(--text-muted);
    padding: 8px 4px;
    font-weight: bold;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 15px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 36px;
    }
    
    .page-info {
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0;
        order: 10;
    }
}
/* Additional CSS for Rich Editor - Add to style.css */

/* Like button styling */
.like-btn.liked {
    color: var(--accent-red) !important;
    background: rgba(220, 20, 60, 0.2) !important;
}

/* Reply form enhancements */
.reply-form-container {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.reply-form-container h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* TinyMCE Dark Theme Customizations */
.tox.tox-tinymce {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.tox .tox-edit-area__iframe {
    background: rgba(0, 0, 0, 0.3) !important;
}

.tox-toolbar-overlord {
    background: rgba(26, 26, 26, 0.9) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Modal styling improvements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    background: var(--secondary-black);
    border-radius: 15px;
    border: 2px solid var(--accent-gold);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(90deg, var(--accent-red), #8b0000);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 13px 13px 0 0;
}

.modal-body {
    padding: 30px;
}

.post-preview {
    color: var(--text-primary);
    line-height: 1.6;
}

.post-preview blockquote {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--accent-gold);
    margin: 1em 0;
    padding: 15px;
    border-radius: 5px;
    font-style: italic;
}

.post-preview strong {
    color: var(--light-gold);
}

.post-preview a {
    color: var(--accent-gold);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Post actions improvements */
.post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-action:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.like-btn .like-count {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .reply-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
}
/* Quote Styling - Add to style.css */

.forum-quote {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--accent-gold);
    margin: 15px 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    font-style: normal;
}

.quote-header {
    background: rgba(212, 175, 55, 0.2);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.quote-header strong {
    color: var(--light-gold);
    font-weight: 600;
}

.quote-content {
    padding: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.quote-content p {
    margin: 0 0 10px 0;
}

.quote-content p:last-child {
    margin-bottom: 0;
}

/* Nested quotes */
.forum-quote .forum-quote {
    margin: 10px 0;
    border-left-color: rgba(212, 175, 55, 0.6);
}

.forum-quote .forum-quote .quote-header {
    background: rgba(212, 175, 55, 0.15);
    font-size: 0.85rem;
}

.forum-quote .forum-quote .quote-content {
    padding: 12px;
    font-size: 0.95rem;
}

/* BBCode styling */
.post-body code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--light-gold);
    font-size: 0.9rem;
}

.post-body pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.post-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.post-body ul, .post-body ol {
    margin: 10px 0;
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 5px;
}

.post-body a {
    color: var(--accent-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: var(--light-gold);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .forum-quote {
        margin: 10px 0;
    }
    
    .quote-header {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .quote-content {
        padding: 12px;
        font-size: 0.9rem;
    }
}
/* Mobile Menu Styles - Add to style.css */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
}

.mobile-menu-toggle.active {
    color: var(--accent-red);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--secondary-black);
    border-left: 2px solid var(--accent-gold);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.mobile-nav.active {
    right: 0;
    z-index:9999;
}

.mobile-nav-links {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-user-actions .btn {
    text-align: center;
    padding: 12px;
    border-radius: 25px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when mobile menu is open */
.no-scroll {
    overflow: hidden;
}

/* Show mobile menu toggle on mobile devices */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .nav-links {
        display: none;
    }
    
    .user-actions {
        display: none;
    }
    
    .nav {
        padding: 15px 20px;
    }
    
    .logo {
        order: 1;
    }
}

/* Enhanced Mobile Notification Styles */
@media (max-width: 768px) {
    .notification {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        top: 80px;
        transform: translateY(-100px);
        font-size: 0.9rem;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Event Card Mobile Enhancements */
@media (max-width: 768px) {
    .event-card {
        margin-bottom: 15px;
    }
    
    .event-card:hover {
        transform: translateY(-2px);
    }
    
    .event-info {
        padding: 15px;
    }
    
    .event-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .event-meta {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .event-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .event-actions {
        margin-top: 10px;
    }
    
    .event-btn {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Calendar Mobile Adjustments */
@media (max-width: 768px) {
    .event-calendar {
        padding: 15px;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        min-height: 30px;
    }
}

/* Touch-friendly Button Sizes */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .filter-select {
        min-height: 44px;
        font-size: 0.9rem;
    }
    
    .event-action {
        min-height: 44px;
    }
}

/* Improved Mobile Typography */
@media (max-width: 768px) {
    .events-header h1 {
        font-size: 2rem;
    }
    
    .events-header p {
        font-size: 1rem;
    }
    
    .widget-header {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .widget-content {
        padding: 15px;
    }
}

/* Enhanced Filter Bar Mobile */
@media (max-width: 768px) {
    .filter-bar {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-group label {
        font-weight: 600;
        color: var(--accent-gold);
    }
    
    .filter-select {
        flex: 1;
        margin-left: 10px;
    }
}

/* Mobile-First Event Grid */
@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .event-image {
        height: 150px;
    }
    
    .event-date-overlay {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
    }
    
    .event-day {
        font-size: 1.2rem;
    }
    
    .event-badges {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .event-badge {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
}
/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .event-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
/* Landscape Mobile Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-nav {
        width: 250px;
    }
    
    .events-header {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .events-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}
/* Event Detail Page CSS Enhancements - Add to style.css */

/* Attendance Status Indicators */
.attendance-status {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 10px 0;
}

.attendance-status.confirmed {
    background: rgba(0, 200, 81, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.attendance-status.available {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.attendance-status.cancelled {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Availability Status */
.availability-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.availability-status.available {
    background: rgba(0, 200, 81, 0.2);
    color: var(--success);
}

.availability-status.full {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.availability-status.limited {
    background: rgba(255, 187, 51, 0.2);
    color: var(--warning);
}

/* Event Action Buttons */
.event-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.attend-btn {
    background: linear-gradient(45deg, var(--success), #28a745);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 81, 0.4);
}

.attend-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    background: transparent;
    color: var(--error);
    border: 2px solid var(--error);
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn:hover {
    background: var(--error);
    color: white;
    transform: translateY(-2px);
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Event Status Badges */
.event-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status-badge.upcoming {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.event-status-badge.ongoing {
    background: rgba(0, 200, 81, 0.2);
    color: var(--success);
}

.event-status-badge.ended {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.event-status-badge.cancelled {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

/* Attendee List Styling */
.attendee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.attendee-item {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.attendee-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.attendee-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(45deg, var(--accent-red), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.attendee-name {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 5px;
}

.attendee-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Event Details Enhancement */
.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

.event-main-content {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
}

.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Event Meta Information */
.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.meta-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.meta-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.meta-value {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Progress Bar for Event Capacity */
.capacity-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--accent-gold));
    transition: width 0.3s ease;
    border-radius: 4px;
}

.capacity-fill.warning {
    background: linear-gradient(90deg, var(--warning), var(--accent-gold));
}

.capacity-fill.danger {
    background: linear-gradient(90deg, var(--error), var(--accent-red));
}

/* Responsive Design for Event Details */
@media (max-width: 992px) {
    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-sidebar {
        order: -1;
    }
    
    .event-meta-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .event-main-content {
        padding: 20px;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .attend-btn,
    .cancel-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
    
    .attendee-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .attendee-item {
        padding: 10px;
    }
    
    .attendee-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .meta-item {
        padding: 10px;
    }
    
    .meta-icon {
        font-size: 1.2rem;
    }
}

/* Animation for successful actions */
@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: success-pulse 0.6s ease-in-out;
}

/* Tooltip for disabled buttons */
.btn-disabled-tooltip {
    position: relative;
}

.btn-disabled-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-black);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.btn-disabled-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border-color);
    z-index: 1000;
}