/* =============================================
   Modern Dark Forum CSS - Discord/GitHub Inspired
   ============================================= */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   forum chat – extras (tip o linkach & drobne poprawki)
   ===================================================== */
.bad-link-tip{
  background: rgba(248, 81, 73, 0.12);
  color: #ff8a8a;
  border: 1px dashed rgba(248,81,73,0.5);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}

.chatbox-input .chat-form{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbox-messages a{
  text-decoration: underline;
}


:root {
    /* Dark Theme Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-elevated: #30363d;
    --bg-overlay: #1c2128;
    
    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-inverse: #0d1117;
    
    /* Accent Colors */
    --accent-primary: #58a6ff;
    --accent-secondary: #1f6feb;
    --accent-tertiary: #0969da;
    --accent-success: #3fb950;
    --accent-warning: #d29922;
    --accent-danger: #f85149;
    
    /* Border Colors */
    --border-default: #30363d;
    --border-muted: #21262d;
    --border-subtle: #161b22;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Base Typography */
body {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* =============================================
   Landing Page Styles
   ============================================= */

.landing-page {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Landing Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
    transition: var(--transition-normal);
}

.landing-nav.scrolled {
    background: rgba(13, 17, 23, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.nav-login {
    color: var(--accent-primary) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--text-secondary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    padding: 8rem var(--space-6) 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-default);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.card-info {
    flex: 1;
}

.card-name {
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
    width: 120px;
}

.card-time {
    height: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    width: 80px;
}

.card-content {
    margin-bottom: var(--space-4);
}

.card-title {
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.card-text {
    height: 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
}

.card-text.short {
    width: 60%;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-stats {
    display: flex;
    gap: var(--space-4);
}

.card-stat {
    width: 40px;
    height: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.card-button {
    width: 80px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-muted);
    color: var(--text-primary);
}

.btn-success {
    background: linear-gradient(135deg, #3fb950, #2ea043);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: linear-gradient(135deg, #4ac15f, #3fb950);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: linear-gradient(135deg, #f85149, #d73a49);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b6b, #f85149);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-info {
    background: linear-gradient(135deg, #1f6feb, #0969da);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-info:hover {
    background: linear-gradient(135deg, #388bfd, #1f6feb);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Categories Section */
.categories-section {
    padding: var(--space-20) 0;
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.category-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--border-default);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, var(--accent-primary));
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: var(--space-4);
}

.category-card h3 {
    margin-bottom: var(--space-3);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.category-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.stats-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-6);
}

.stats-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.stats-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.stats-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-primary);
    font-weight: 500;
}

.stats-feature svg {
    color: var(--accent-primary);
}

.stats-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.stat-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-inverse);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-6);
    color: var(--text-inverse);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.cta-actions {
    margin-bottom: var(--space-6);
}

.cta-note {
    opacity: 0.8;
}

.cta-note a {
    color: var(--text-inverse);
    text-decoration: underline;
}

/* Footer */
.landing-footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--border-default);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-column h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-default);
    color: var(--text-muted);
}

/* =============================================
   Forum Page Styles
   ============================================= */

.forum-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Forum Navigation */
.forum-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-badge {
    background: var(--accent-danger);
    color: var(--text-inverse);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: var(--space-1);
}

.user-credits {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: var(--space-3);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.forum-nav .nav-container {
    height: 4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-8);
    align-items: center;
}

.nav-search {
    max-width: 400px;
    width: 100%;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: var(--space-12);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: var(--space-3);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-1);
}

.forum-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-create {
    background: var(--accent-primary);
    color: var(--text-inverse);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
}

.nav-create:hover {
    background: var(--accent-secondary);
    color: var(--text-inverse);
}

.nav-admin {
    color: var(--accent-warning);
    font-weight: 600;
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-user:hover {
    background: var(--bg-tertiary);
}

.user-avatar, .user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar {
    background: var(--accent-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-fast);
}

.nav-user.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--space-2) var(--space-3);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-menu hr {
    margin: var(--space-2) 0;
    border: none;
    border-top: 1px solid var(--border-default);
}

/* Forum Container */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

/* Forum Header */
.forum-header {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    border: 1px solid var(--border-default);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-title h1 {
    font-size: 2rem;
    margin-bottom: var(--space-2);
}

.forum-title p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.forum-stats {
    display: flex;
    gap: var(--space-8);
}

.forum-stats .stat-item {
    text-align: center;
}

.forum-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.forum-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Forum Content */
.forum-content {
    display: grid;
    gap: var(--space-8);
}

/* Categories List */
.categories-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--border-default);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--category-color, var(--accent-primary));
}

.category-item:hover {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.category-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
}

.category-item .category-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
}

.category-details h3 {
    margin-bottom: var(--space-1);
    font-size: 1.125rem;
}

.category-details h3 a {
    color: var(--text-primary);
    font-weight: 600;
}

.category-details h3 a:hover {
    color: var(--accent-primary);
}

.category-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.category-stats {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.category-stats .stat {
    margin-bottom: var(--space-1);
}

.category-stats .stat-number {
    font-weight: 600;
    color: var(--text-primary);
}

.last-post {
    font-size: 0.75rem;
}

.last-post-time {
    display: block;
    font-weight: 500;
}

.last-post-author {
    color: var(--text-muted);
}

/* Recent Activity */
.recent-activity-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--border-default);
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    transition: var(--transition-fast);
}

.recent-post-item:hover {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}

.recent-post-item .post-category {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--category-color, var(--accent-primary));
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.post-content {
    flex: 1;
}

.post-content h4 {
    margin-bottom: var(--space-1);
    font-size: 1rem;
}

.post-content h4 a {
    color: var(--text-primary);
    font-weight: 600;
}

.post-content h4 a:hover {
    color: var(--accent-primary);
}

.post-meta {
    display: flex;
    gap: var(--space-4);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-author {
    font-weight: 500;
    color: var(--text-secondary);
}

.post-stats {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.post-stats .stat {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* =============================================
   Auth Page Styles
   ============================================= */

.auth-page {
    background: var(--bg-primary) !important;
    min-height: 100vh;
}

.auth-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    padding: var(--space-4) 0;
}

.auth-nav .nav-logo h2 a {
    color: var(--accent-primary);
}

.auth-container {
    padding: var(--space-8) var(--space-6);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    max-width: 1000px;
    width: 100%;
    background: var(--bg-secondary) !important;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    border: 1px solid var(--border-default);
}

.login-wrapper {
    max-width: 900px;
}

.auth-form-section {
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: var(--space-8);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.error-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-list li {
    margin-bottom: var(--space-1);
}

.auth-footer {
    margin-top: var(--space-8);
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.auth-benefits-section,
.auth-welcome-section {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-inverse);
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-content h2,
.welcome-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--text-inverse);
}

.benefits-content p,
.welcome-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.benefits-list,
.welcome-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.benefit-item,
.feature-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-inverse);
}

.benefit-text p {
    opacity: 0.8;
    line-height: 1.5;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: var(--space-3);
    font-size: 1.125rem;
    line-height: 1.6;
}

.testimonial cite {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Demo Section */
.demo-section {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
}

.demo-header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.demo-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.demo-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.demo-credentials {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.demo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.demo-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.demo-value {
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.copy-btn {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border: none;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--accent-secondary);
}

/* =============================================
   Create Post Page Styles
   ============================================= */

.create-post-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.create-post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.create-post-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
}

.post-form-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--border-default);
}

.form-header {
    margin-bottom: var(--space-8);
}

.form-header h1 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.category-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.account-info-group {
    position: relative;
}

.secure-badge {
    background: var(--accent-success);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: var(--space-2);
}

.security-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.form-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-end;
    margin-top: var(--space-6);
}

.guidelines-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.guidelines-card,
.tips-card,
.stats-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--border-default);
}

.guidelines-card h3,
.tips-card h3,
.stats-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.guidelines-list,
.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.guidelines-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tips-list li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.user-stats .stat-item {
    text-align: center;
}

.user-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: var(--space-1);
}

.user-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.character-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: var(--space-1);
}

/* Alerts */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    border-left: 4px solid;
    font-weight: 500;
    transition: var(--transition-normal);
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

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

.animate {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .stats-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .forum-header {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

    .create-post-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-default);
        padding: var(--space-4);
        flex-direction: column;
        gap: var(--space-2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-numbers {
        grid-template-columns: 1fr;
    }
    
    .forum-nav .nav-container {
        grid-template-columns: auto 1fr;
        gap: var(--space-4);
    }
    
    .nav-search {
        display: none;
    }
    
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .category-stats {
        text-align: left;
        width: 100%;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;
        margin: var(--space-4);
    }

    .auth-benefits-section,
    .auth-welcome-section {
        order: -1;
        padding: var(--space-8);
    }

    .auth-form-section {
        padding: var(--space-8);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Very Small Screens */
    .container,
    .forum-container,
    .create-post-container {
        padding: var(--space-3) var(--space-2) !important;
    }
    
    .hero-section {
        padding: 5rem var(--space-3) 3rem !important;
    }
    
    /* Nav Logo Mobile */
    .nav-logo h2 {
        font-size: 1rem !important;
    }
    
    /* Nav Links Smaller */
    .nav-link svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .user-avatar, .user-avatar-img {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Forum Header */
    .forum-header h1 {
        font-size: 1.25rem !important;
    }
    
    .forum-header p {
        font-size: 0.8rem !important;
    }
    
    /* Stats */
    .forum-stats {
        gap: var(--space-2) !important;
    }
    
    .forum-stats .stat-item {
        min-width: 70px;
    }
    
    .forum-stats .stat-number {
        font-size: 1.1rem !important;
    }
    
    .forum-stats .stat-label {
        font-size: 0.6rem !important;
    }
    
    /* Categories */
    .category-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-3) !important;
    }
    
    .category-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: var(--space-2);
    }
    
    .category-name {
        font-size: 0.9rem !important;
    }
    
    .category-description {
        display: none;
    }
    
    /* Chat */
    .forum-chatbox {
        height: 350px !important;
    }
    
    .chat-input {
        font-size: 0.85rem !important;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.85rem !important;
        padding: var(--space-2) var(--space-3) !important;
    }
    
    /* Profile */
    .profile-username {
        font-size: 1.5rem !important;
    }
    
    .profile-rank {
        font-size: 0.9rem !important;
    }
    
    /* Admin Panel */
    .tab-btn {
        font-size: 0.7rem !important;
        padding: var(--space-2) !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .forum-header {
        padding: var(--space-6);
    }
    
    .forum-stats {
        gap: var(--space-4);
    }
}

/* ============================================= */
/* WIDGETS */
/* ============================================= */

.widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.widget-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.widget-body {
    padding: var(--space-3);
}

.widget-empty, .widget-error {
    padding: var(--space-6);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.widget-error {
    color: var(--accent-danger);
}

/* Widget User Item */
.widget-user-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
}

.widget-user-item:hover {
    background: var(--bg-tertiary);
}

.widget-user-avatar, .widget-user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-user-avatar {
    object-fit: cover;
}

.widget-user-avatar-placeholder {
    background: var(--accent-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.widget-user-info {
    flex: 1;
    min-width: 0;
}

.widget-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: 2px;
}

.widget-user-rank, .widget-user-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.widget-post-count {
    color: var(--text-secondary);
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    animation: pulse 2s infinite;
}

/* Ranked Item */
.widget-ranked-item {
    padding-left: var(--space-2);
}

.widget-rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Achievement Item */
.achievement-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.achievement-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Widget Post Item */
.widget-post-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.widget-post-item:hover {
    background: var(--bg-tertiary);
}

.widget-post-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.widget-post-info {
    flex: 1;
    min-width: 0;
}

.widget-post-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.widget-post-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

@media (max-width: 768px) {
    /* Navigation Mobile */
    .forum-nav {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100 !important;
    }
    
    .nav-container {
        padding: var(--space-2) var(--space-3) !important;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    .nav-text {
        display: none;
    }
    
    .user-credits {
        display: none !important;
    }
    
    .nav-menu {
        gap: var(--space-1) !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
    }
    
    .nav-link {
        padding: var(--space-2) !important;
        min-width: 44px;
        height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .nav-link svg {
        display: block;
    }
    
    .nav-logo h2 {
        font-size: 1.125rem !important;
    }
    
    .nav-logo h2 a {
        white-space: nowrap;
    }
    
    .user-avatar, .user-avatar-img {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
        display: block !important;
    }
    
    .nav-user {
        display: flex !important;
        align-items: center !important;
    }
    
    .user-dropdown {
        position: relative !important;
    }
    
    .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
    
    /* Search Bar Mobile */
    .nav-search {
        display: none !important;
    }
    
    /* Forum Container Mobile */
    .forum-container {
        padding: var(--space-4) var(--space-3) !important;
        margin-top: 60px !important;
    }
    
    .forum-header {
        padding: var(--space-4) !important;
        margin-bottom: var(--space-4) !important;
    }
    
    .forum-header h1 {
        font-size: 1.5rem !important;
    }
    
    /* Forum Stats Mobile */
    .forum-stats {
        flex-wrap: wrap;
        gap: var(--space-4) !important;
        justify-content: center;
    }
    
    .forum-stats .stat-item {
        min-width: 80px;
    }
    
    .forum-stats .stat-number {
        font-size: 1.25rem !important;
    }
    
    .forum-stats .stat-label {
        font-size: 0.65rem !important;
    }
    
    /* Forum Content Mobile */
    .forum-content {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: var(--space-4) !important;
    }
    
    /* Categories Mobile */
    .categories-section {
        padding: var(--space-4) !important;
    }
    
    .category-card {
        padding: var(--space-3) !important;
    }
    
    .category-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.25rem !important;
    }
    
    .category-name {
        font-size: 0.95rem !important;
    }
    
    .category-description {
        font-size: 0.75rem !important;
    }
    
    .category-stats {
        font-size: 0.7rem !important;
    }
    
    /* Chatbox Mobile */
    .forum-chatbox {
        position: relative !important;
        top: 0 !important;
        height: 400px;
        margin-top: var(--space-6);
        display: block !important;
    }
    
    .chat-header h3 {
        font-size: 1rem !important;
    }
    
    .chat-messages {
        font-size: 0.85rem !important;
    }
    
    /* Profile Mobile */
    .profile-username {
        font-size: 1.75rem !important;
    }
    
    .profile-title-row {
        flex-direction: column !important;
    }
    
    .profile-actions {
        width: 100%;
        flex-direction: column;
        gap: var(--space-2) !important;
    }
    
    .profile-actions .btn {
        flex: 1;
        width: 100%;
    }
    
    /* Admin Panel Mobile */
    .admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        gap: 0 !important;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 0.75rem !important;
        padding: var(--space-2) var(--space-3) !important;
        flex-shrink: 0;
    }
    
    .admin-container {
        padding: var(--space-4) var(--space-3) !important;
    }
    
    /* Posts Mobile */
    .post-card {
        padding: var(--space-3) !important;
    }
    
    .post-title {
        font-size: 1rem !important;
    }
    
    .post-meta {
        flex-wrap: wrap;
        font-size: 0.75rem !important;
    }
    
    /* Recent Posts Mobile */
    .recent-posts-section {
        padding: var(--space-4) !important;
    }
    
    .recent-posts-list {
        gap: var(--space-3) !important;
    }
}

/* =============================================
   MOBILE DRAWER MENU
   ============================================= */

/* Hamburger Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(88, 166, 255, 0.3);
}

.mobile-menu-btn:active {
    background: var(--accent-primary);
    transform: scale(0.95);
}

.mobile-menu-btn:hover {
    background: var(--accent-primary);
    transform: scale(1.05);
}

.mobile-menu-btn svg {
    display: block;
    pointer-events: none;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 300px;
    background: var(--bg-secondary);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

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

/* Drawer Header */
.mobile-drawer-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.drawer-user-info {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex: 1;
}

.drawer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-success));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-inverse);
    flex-shrink: 0;
}

.drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.drawer-user-details {
    flex: 1;
    min-width: 0;
}

.drawer-username {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-credits {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.drawer-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Drawer Content */
.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    margin-bottom: var(--space-2);
    position: relative;
}

.drawer-link:hover {
    background: var(--bg-tertiary);
}

.drawer-link svg {
    flex-shrink: 0;
    stroke: var(--text-secondary);
    transition: var(--transition-fast);
}

.drawer-link:hover svg {
    stroke: var(--accent-primary);
}

.drawer-link span {
    font-weight: 500;
}

.drawer-link-admin {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.drawer-link-admin:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
}

.drawer-link-admin svg {
    stroke: #ffc107;
}

.drawer-link-logout {
    color: var(--accent-danger);
}

.drawer-link-logout svg {
    stroke: var(--accent-danger);
}

.drawer-link-logout:hover {
    background: rgba(248, 81, 73, 0.1);
}

.drawer-badge {
    background: var(--accent-primary);
    color: var(--text-inverse);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
}

.drawer-divider {
    height: 1px;
    background: var(--border-default);
    margin: var(--space-4) 0;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Hide regular nav links on mobile */
    .nav-menu {
        gap: var(--space-2);
    }
    
    .nav-link:not(.nav-user) {
        display: none !important;
    }
    
    .nav-search {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-drawer {
        width: 280px;
        left: -280px;
    }
    
    .drawer-username {
        font-size: 1rem;
    }
    
    .drawer-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}
/* =============================================
   ENHANCED ANIMATIONS & EFFECTS
   Ultimate Professional Design
   ============================================= */

/* Enhanced Shadows */
:root {
    --shadow-glow: 0 0 20px rgba(88, 166, 255, 0.3);
    --shadow-glow-hover: 0 0 30px rgba(88, 166, 255, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 1px rgba(88, 166, 255, 0.1);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 2px rgba(88, 166, 255, 0.2);
    --shadow-floating: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Smooth Page Enter Animation */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageEnter 0.5s ease-out;
}

/* Enhanced Card Animations */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Profile Banner */
.profile-banner {
    position: relative;
    overflow: hidden;
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* Enhanced Profile Avatar */
.profile-avatar-large {
    position: relative;
    box-shadow: 
        0 0 0 4px var(--bg-secondary),
        0 0 20px rgba(88, 166, 255, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.profile-avatar-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 0 4px var(--bg-secondary),
        0 0 30px rgba(88, 166, 255, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.5);
}

.profile-avatar-large img {
    animation: fadeIn 0.5s ease;
}

/* Admin Crown Glow */
.admin-crown {
    animation: pulseGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

/* Enhanced Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-primary);
}

.stat-icon {
    animation: scaleIn 0.5s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Enhanced Category Items */
.category-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-primary);
}

.category-icon {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.category-item:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Enhanced Post Cards */
.recent-post-item,
.post-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.recent-post-item::after,
.post-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-post-item:hover::after,
.post-item:hover::after {
    opacity: 1;
}

.recent-post-item:hover,
.post-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-primary);
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(88, 166, 255, 0.5);
}

/* Enhanced Marketplace Cards */
.product-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(88, 166, 255, 0.2);
    border-color: var(--accent-primary);
}

/* Enhanced Navigation */
.sidebar {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-right: 1px solid var(--border-default);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    transition: height 0.3s ease;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    height: 70%;
}

.sidebar-link:hover {
    background: rgba(88, 166, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.15), transparent);
    box-shadow: inset 3px 0 0 var(--accent-primary);
}

/* Enhanced Topbar */
.topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.topbar-dropdown {
    transition: all 0.3s ease;
}

.topbar-dropdown:hover {
    transform: translateY(-2px);
}

.topbar-dropdown-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-floating);
    animation: slideInUp 0.2s ease;
}

/* Enhanced Chat Messages */
.chat-message {
    animation: slideInRight 0.3s ease;
    transition: all 0.2s ease;
}

.chat-message:hover {
    background: rgba(88, 166, 255, 0.05);
    transform: translateX(3px);
}

.chat-avatar,
.chat-avatar-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.chat-message:hover .chat-avatar,
.chat-message:hover .chat-avatar-img {
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced Online Users */
.online-user-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.online-user-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0%;
    background: var(--accent-success);
    transition: height 0.3s ease;
}

.online-user-item:hover::before {
    height: 80%;
}

.online-user-item:hover {
    background: rgba(88, 166, 255, 0.1);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
}

/* Enhanced Achievements */
.achievement-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 215, 0, 0.1) 60deg,
        transparent 120deg
    );
    animation: rotate 3s linear infinite;
    opacity: 0;
}

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

.achievement-item:hover::before {
    opacity: 1;
}

.achievement-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

/* Enhanced Modals */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-floating);
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Forms */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 3px rgba(88, 166, 255, 0.1),
        0 4px 12px rgba(88, 166, 255, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Alerts */
.alert {
    animation: slideInUp 0.5s ease;
    box-shadow: var(--shadow-card);
}

.alert-success {
    background: linear-gradient(135deg, rgba(63, 185, 80, 0.15) 0%, rgba(63, 185, 80, 0.05) 100%);
    border-left: 4px solid var(--accent-success);
}

.alert-error {
    background: linear-gradient(135deg, rgba(248, 81, 73, 0.15) 0%, rgba(248, 81, 73, 0.05) 100%);
    border-left: 4px solid var(--accent-danger);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(210, 153, 34, 0.15) 0%, rgba(210, 153, 34, 0.05) 100%);
    border-left: 4px solid var(--accent-warning);
}

/* Enhanced Profile Tabs */
.profile-tab {
    position: relative;
    transition: all 0.3s ease;
}

.profile-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.profile-tab:hover::after {
    width: 80%;
}

.profile-tab.active::after {
    width: 100%;
}

.profile-tab:hover {
    transform: translateY(-2px);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 166, 255, 0.1);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Badge Glow */
.nav-badge,
.drawer-badge {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Enhanced Visitors List */
.visitor-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.visitor-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.1), transparent);
    transition: width 0.3s ease;
}

.visitor-item:hover::before {
    width: 100%;
}

.visitor-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-card);
}

/* Page Transitions */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Anti-Glitch Fixes */
* {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Performance Optimizations */
.category-item,
.recent-post-item,
.product-card,
.stat-card {
    will-change: transform;
}

/* Ensure no overflow glitches */
body {
    overflow-x: hidden;
}

.main-content {
    overflow-x: hidden;
}

