/**
 * LLG Gaming Theme - Main Stylesheet
 * Compatible with MyBB 1.8.x
 * Version: 1.0.0
 * Author: LLG Team
 */

/* ============================================
   CSS VARIABLES & THEME CONFIGURATION
   ============================================ */
:root {
    /* Dark Theme (Default) */
    --llg-bg-primary: #0d0d0d;
    --llg-bg-secondary: #1a1a1a;
    --llg-bg-tertiary: #252525;
    --llg-bg-card: #1e1e1e;
    --llg-bg-header: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --llg-text-primary: #e0e0e0;
    --llg-text-secondary: #a0a0a0;
    --llg-text-muted: #6a6a6a;
    --llg-accent: #3498db;
    --llg-accent-hover: #2980b9;
    --llg-accent-glow: rgba(52, 152, 219, 0.3);
    --llg-border: #333333;
    --llg-border-light: #444444;
    --llg-success: #27ae60;
    --llg-danger: #e74c3c;
    --llg-warning: #f39c12;
    --llg-info: #3498db;
    --llg-shadow: rgba(0, 0, 0, 0.5);
    --llg-shadow-light: rgba(0, 0, 0, 0.3);

    /* Spacing */
    --llg-spacing-xs: 0.25rem;
    --llg-spacing-sm: 0.5rem;
    --llg-spacing-md: 1rem;
    --llg-spacing-lg: 1.5rem;
    --llg-spacing-xl: 2rem;
    --llg-spacing-xxl: 3rem;

    /* Border Radius */
    --llg-radius: 8px;
    --llg-radius-sm: 4px;
    --llg-radius-lg: 12px;
    --llg-radius-xl: 16px;
    --llg-radius-round: 50%;

    /* Transitions */
    --llg-transition: all 0.3s ease;
    --llg-transition-fast: all 0.15s ease;
    --llg-transition-slow: all 0.5s ease;

    /* Container Width */
    --llg-container-width: 1200px;
    --llg-container-padding: 20px;
}

/* Light Theme */
[data-theme="light"] {
    --llg-bg-primary: #f5f5f5;
    --llg-bg-secondary: #ffffff;
    --llg-bg-tertiary: #eeeeee;
    --llg-bg-card: #ffffff;
    --llg-bg-header: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    --llg-text-primary: #333333;
    --llg-text-secondary: #666666;
    --llg-text-muted: #999999;
    --llg-border: #dddddd;
    --llg-border-light: #eeeeee;
    --llg-shadow: rgba(0, 0, 0, 0.1);
    --llg-shadow-light: rgba(0, 0, 0, 0.05);
}

/* Blue Theme */
[data-theme="blue"] {
    --llg-bg-primary: #0a1929;
    --llg-bg-secondary: #0d2137;
    --llg-bg-tertiary: #112d4e;
    --llg-bg-card: #0f2847;
    --llg-bg-header: linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
    --llg-text-primary: #e8f4fc;
    --llg-text-secondary: #a8c5db;
    --llg-text-muted: #6a8fa8;
    --llg-accent: #00d4ff;
    --llg-accent-hover: #00b8e6;
    --llg-accent-glow: rgba(0, 212, 255, 0.3);
    --llg-border: #1a4a6e;
    --llg-border-light: #2a5a7e;
    --llg-shadow: rgba(0, 0, 0, 0.4);
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--llg-bg-primary);
    color: var(--llg-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--llg-accent);
    text-decoration: none;
    transition: var(--llg-transition);
}

a:hover {
    color: var(--llg-accent-hover);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--llg-text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--llg-spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--llg-spacing-md);
    color: var(--llg-text-secondary);
}

/* ============================================
   HEADER BANNER
   ============================================ */
.llg-header-banner {
    background: var(--llg-bg-header);
    padding: var(--llg-spacing-xl) var(--llg-container-padding);
    text-align: center;
    border-bottom: 2px solid var(--llg-accent);
    position: relative;
    overflow: hidden;
    transition: var(--llg-transition);
}

.llg-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, var(--llg-accent-glow) 50%, transparent 70%);
    animation: llg-shine 3s ease-in-out infinite;
}

@keyframes llg-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.llg-header-banner.hidden {
    display: none;
}

.llg-banner-content {
    position: relative;
    z-index: 1;
}

.llg-banner-logo img {
    max-height: 100px;
    filter: drop-shadow(0 0 20px var(--llg-accent-glow));
}

.llg-banner-text h1 {
    color: var(--llg-text-primary);
    font-size: 2.5rem;
    margin: var(--llg-spacing-md) 0 var(--llg-spacing-sm);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px var(--llg-accent-glow);
}

.llg-banner-text p {
    color: var(--llg-accent);
    font-size: 1.1rem;
    font-style: italic;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.llg-navbar {
    background: var(--llg-bg-secondary);
    border-bottom: 1px solid var(--llg-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--llg-transition);
}

.llg-nav-container {
    max-width: var(--llg-container-width);
    margin: 0 auto;
    padding: 0 var(--llg-container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.llg-nav-left {
    display: flex;
    align-items: center;
    gap: var(--llg-spacing-lg);
}

.llg-nav-logo img {
    max-height: 40px;
    transition: var(--llg-transition);
}

.llg-nav-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--llg-accent-glow));
}

.llg-nav-menu {
    display: flex;
    list-style: none;
    gap: var(--llg-spacing-md);
}

.llg-nav-menu li a {
    display: flex;
    align-items: center;
    gap: var(--llg-spacing-xs);
    padding: var(--llg-spacing-sm) var(--llg-spacing-md);
    color: var(--llg-text-primary);
    border-radius: var(--llg-radius);
    transition: var(--llg-transition);
}

.llg-nav-menu li a:hover {
    background: var(--llg-bg-tertiary);
    color: var(--llg-accent);
}

.llg-nav-menu li a i {
    font-size: 0.9rem;
}

.llg-nav-right {
    display: flex;
    align-items: center;
    gap: var(--llg-spacing-md);
}

.llg-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--llg-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--llg-spacing-sm);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.llg-wrapper {
    min-height: calc(100vh - 200px);
    transition: var(--llg-transition);
}

.llg-container {
    max-width: var(--llg-container-width);
    margin: 0 auto;
    padding: var(--llg-spacing-xl) var(--llg-container-padding);
    transition: var(--llg-transition);
}

.llg-wrapper.fluid-width .llg-container {
    max-width: 100%;
}

.llg-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--llg-spacing-xl);
    transition: var(--llg-transition);
}

/* ============================================
   SIDEBAR
   ============================================ */
.llg-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--llg-spacing-lg);
    transition: var(--llg-transition);
}

.llg-sidebar.hidden {
    display: none;
}

.llg-sidebar-section {
    background: var(--llg-bg-card);
    border-radius: var(--llg-radius-lg);
    overflow: hidden;
    transition: var(--llg-transition);
    @if {$llg-shadows} {
        box-shadow: 0 4px 15px var(--llg-shadow);
    }
}

@if {$llg-shadows} {
    .llg-sidebar-section {
        box-shadow: 0 4px 15px var(--llg-shadow);
    }
}

@else {
    .llg-sidebar-section {
        box-shadow: none;
    }
}

.llg-sidebar-header {
    background: var(--llg-bg-header);
    padding: var(--llg-spacing-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--llg-spacing-sm);
    border-bottom: 1px solid var(--llg-border);
}

.llg-sidebar-header i {
    color: var(--llg-accent);
}

.llg-sidebar-content {
    padding: var(--llg-spacing-md);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.llg-main-content {
    background: var(--llg-bg-card);
    border-radius: var(--llg-radius-lg);
    padding: var(--llg-spacing-xl);
    transition: var(--llg-transition);
}

.llg-forum-section {
    background: var(--llg-bg-card);
    border-radius: var(--llg-radius-lg);
    margin-bottom: var(--llg-spacing-lg);
    overflow: hidden;
    transition: var(--llg-transition);
}

.llg-forum-header {
    display: grid;
    grid-template-columns: 60px 1fr 150px 200px;
    gap: var(--llg-spacing-lg);
    padding: var(--llg-spacing-lg);
    align-items: center;
    background: var(--llg-bg-secondary);
}

.llg-forum-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--llg-accent) 0%, var(--llg-accent-hover) 100%);
    border-radius: var(--llg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--llg-transition);
}

.llg-forum-title {
    margin: 0;
    font-size: 1.2rem;
}

.llg-forum-title a {
    color: var(--llg-text-primary);
}

.llg-forum-title a:hover {
    color: var(--llg-accent);
}

.llg-forum-stats {
    display: flex;
    gap: var(--llg-spacing-lg);
    justify-content: center;
}

.llg-stat-box {
    text-align: center;
}

.llg-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--llg-accent);
}

.llg-stat-label {
    font-size: 0.75rem;
    color: var(--llg-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.llg-forum-lastpost {
    text-align: right;
    font-size: 0.875rem;
}

.llg-lastpost-info {
    color: var(--llg-text-muted);
    margin-top: var(--llg-spacing-xs);
}

/* ============================================
   THREAD LIST
   ============================================ */
.llg-thread-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.llg-thread-list thead th {
    background: var(--llg-bg-header);
    padding: var(--llg-spacing-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--llg-accent);
}

.llg-thread-list tbody tr {
    transition: var(--llg-transition);
}

.llg-thread-list tbody tr:hover {
    background: var(--llg-bg-tertiary);
}

.llg-thread-list tbody td {
    padding: var(--llg-spacing-md);
    border-bottom: 1px solid var(--llg-border);
}

.llg-thread-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--llg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--llg-transition);
}

.llg-thread-icon.sticky {
    background: linear-gradient(135deg, var(--llg-warning) 0%, #e67e22 100%);
    color: white;
}

.llg-thread-icon.normal {
    background: linear-gradient(135deg, var(--llg-accent) 0%, var(--llg-accent-hover) 100%);
    color: white;
}

.llg-thread-icon.closed {
    background: var(--llg-danger);
    color: white;
}

.llg-thread-icon.hidden {
    display: none;
}

.llg-thread-title {
    font-weight: 600;
    margin-bottom: var(--llg-spacing-xs);
}

.llg-thread-title a {
    color: var(--llg-text-primary);
}

.llg-thread-title a:hover {
    color: var(--llg-accent);
}

.llg-thread-info {
    font-size: 0.875rem;
    color: var(--llg-text-muted);
    display: flex;
    gap: var(--llg-spacing-md);
}

.llg-thread-info span {
    display: flex;
    align-items: center;
    gap: var(--llg-spacing-xs);
}

/* ============================================
   POSTS
   ============================================ */
.llg-post {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--llg-spacing-lg);
    background: var(--llg-bg-card);
    border-radius: var(--llg-radius-lg);
    margin-bottom: var(--llg-spacing-lg);
    overflow: hidden;
    transition: var(--llg-transition);
}

.llg-post-author {
    background: var(--llg-bg-secondary);
    padding: var(--llg-spacing-lg);
    text-align: center;
    border-right: 1px solid var(--llg-border);
}

.llg-author-avatar {
    margin-bottom: var(--llg-spacing-md);
}

.llg-author-avatar img {
    border-radius: var(--llg-radius-round);
    border: 3px solid var(--llg-accent);
    padding: 3px;
    max-width: 150px;
}

.llg-author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--llg-spacing-xs);
}

.llg-author-name a {
    color: var(--llg-accent);
}

.llg-author-group {
    font-size: 0.875rem;
    color: var(--llg-text-muted);
    margin-bottom: var(--llg-spacing-md);
}

.llg-author-stats {
    font-size: 0.875rem;
    text-align: left;
}

.llg-stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--llg-spacing-xs) 0;
    border-bottom: 1px solid var(--llg-border);
}

.llg-post-content {
    padding: var(--llg-spacing-lg);
}

.llg-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--llg-spacing-md);
    border-bottom: 1px solid var(--llg-border);
    margin-bottom: var(--llg-spacing-lg);
}

.llg-post-meta {
    display: flex;
    gap: var(--llg-spacing-lg);
    font-size: 0.875rem;
    color: var(--llg-text-muted);
}

.llg-post-meta span {
    display: flex;
    align-items: center;
    gap: var(--llg-spacing-xs);
}

.llg-post-controls {
    display: flex;
    gap: var(--llg-spacing-sm);
}

.llg-post-body {
    line-height: 1.8;
    margin-bottom: var(--llg-spacing-lg);
}

.llg-post-footer {
    padding-top: var(--llg-spacing-md);
    border-top: 1px solid var(--llg-border);
}

/* ============================================
   BUTTONS
   ============================================ */
.llg-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--llg-spacing-sm);
    padding: var(--llg-spacing-sm) var(--llg-spacing-lg);
    border: none;
    border-radius: var(--llg-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--llg-transition);
}

.llg-btn-primary {
    background: linear-gradient(135deg, var(--llg-accent) 0%, var(--llg-accent-hover) 100%);
    color: white;
}

.llg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--llg-accent-glow);
}

.llg-btn-secondary {
    background: var(--llg-bg-tertiary);
    color: var(--llg-text-primary);
}

.llg-btn-secondary:hover {
    background: var(--llg-border);
}

.llg-btn-success {
    background: linear-gradient(135deg, var(--llg-success) 0%, #219a52 100%);
    color: white;
}

.llg-btn-danger {
    background: linear-gradient(135deg, var(--llg-danger) 0%, #c0392b 100%);
    color: white;
}

/* ============================================
   ALERTS
   ============================================ */
.llg-alert {
    display: flex;
    gap: var(--llg-spacing-md);
    padding: var(--llg-spacing-lg);
    border-radius: var(--llg-radius-lg);
    margin-bottom: var(--llg-spacing-lg);
}

.llg-alert-icon {
    font-size: 1.5rem;
}

.llg-alert-content {
    flex: 1;
}

.llg-alert-title {
    margin: 0 0 var(--llg-spacing-xs);
    font-size: 1rem;
}

.llg-alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--llg-danger);
}

.llg-alert-error .llg-alert-icon {
    color: var(--llg-danger);
}

.llg-alert-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--llg-success);
}

.llg-alert-success .llg-alert-icon {
    color: var(--llg-success);
}

.llg-alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid var(--llg-warning);
}

.llg-alert-warning .llg-alert-icon {
    color: var(--llg-warning);
}

.llg-alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--llg-info);
}

.llg-alert-info .llg-alert-icon {
    color: var(--llg-info);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.llg-breadcrumb {
    margin-bottom: var(--llg-spacing-lg);
}

.llg-breadcrumb-list {
    display: flex;
    list-style: none;
    gap: var(--llg-spacing-sm);
    font-size: 0.875rem;
}

.llg-breadcrumb-list li {
    display: flex;
    align-items: center;
}

.llg-breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: var(--llg-spacing-sm);
    color: var(--llg-text-muted);
}

.llg-breadcrumb-list li a {
    color: var(--llg-text-secondary);
}

.llg-breadcrumb-list li a:hover {
    color: var(--llg-accent);
}

/* ============================================
   PAGINATION
   ============================================ */
.llg-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--llg-spacing-xl);
    padding-top: var(--llg-spacing-lg);
    border-top: 1px solid var(--llg-border);
}

.llg-pagination-info {
    color: var(--llg-text-muted);
}

.llg-pagination-pages {
    display: flex;
    gap: var(--llg-spacing-xs);
}

.llg-pagination-pages a,
.llg-pagination-pages span {
    padding: var(--llg-spacing-sm) var(--llg-spacing-md);
    background: var(--llg-bg-secondary);
    border-radius: var(--llg-radius);
    color: var(--llg-text-primary);
    transition: var(--llg-transition);
}

.llg-pagination-pages a:hover {
    background: var(--llg-accent);
    color: white;
}

.llg-pagination-pages .active {
    background: var(--llg-accent);
    color: white;
}

/* ============================================
   CUSTOMISER MODAL
   ============================================ */
.llg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.llg-modal.active {
    display: flex;
}

.llg-modal-content {
    background: var(--llg-bg-secondary);
    border-radius: var(--llg-radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: llg-modal-pop 0.3s ease forwards;
}

@keyframes llg-modal-pop {
    to {
        transform: scale(1);
    }
}

.llg-modal-header {
    background: var(--llg-bg-header);
    padding: var(--llg-spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--llg-border);
}

.llg-modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--llg-spacing-sm);
}

.llg-modal-header h3 i {
    color: var(--llg-accent);
}

.llg-modal-close {
    font-size: 1.5rem;
    color: var(--llg-text-muted);
    cursor: pointer;
    transition: var(--llg-transition);
}

.llg-modal-close:hover {
    color: var(--llg-danger);
}

.llg-modal-body {
    padding: var(--llg-spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
}

.llg-option-group {
    margin-bottom: var(--llg-spacing-lg);
    padding-bottom: var(--llg-spacing-lg);
    border-bottom: 1px solid var(--llg-border);
}

.llg-option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.llg-option-desc {
    font-size: 0.875rem;
    color: var(--llg-text-muted);
    margin-top: var(--llg-spacing-xs);
}

/* Toggle Switch */
.llg-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.llg-toggle-input {
    display: none;
}

.llg-toggle-slider {
    width: 50px;
    height: 26px;
    background: var(--llg-bg-tertiary);
    border-radius: 13px;
    position: relative;
    transition: var(--llg-transition);
}

.llg-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: var(--llg-transition);
}

.llg-toggle-input:checked + .llg-toggle-slider {
    background: var(--llg-accent);
}

.llg-toggle-input:checked + .llg-toggle-slider::before {
    transform: translateX(24px);
}

/* Select Input */
.llg-select-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.llg-select-input {
    padding: var(--llg-spacing-sm) var(--llg-spacing-md);
    background: var(--llg-bg-tertiary);
    border: 1px solid var(--llg-border);
    border-radius: var(--llg-radius);
    color: var(--llg-text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--llg-transition);
}

.llg-select-input:hover,
.llg-select-input:focus {
    border-color: var(--llg-accent);
    outline: none;
}

.llg-modal-footer {
    padding: var(--llg-spacing-lg);
    background: var(--llg-bg-tertiary);
    display: flex;
    gap: var(--llg-spacing-md);
    justify-content: flex-end;
    border-top: 1px solid var(--llg-border);
}

/* Customiser Toggle Button */
#llg-customizer-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--llg-accent) 0%, var(--llg-accent-hover) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--llg-accent-glow);
    z-index: 1000;
    transition: var(--llg-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#llg-customizer-toggle:hover {
    transform: scale(1.1) rotate(30deg);
}

#llg-customizer-toggle i {
    animation: llg-spin 2s linear infinite;
}

@keyframes llg-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.llg-footer {
    background: var(--llg-bg-secondary);
    border-top: 1px solid var(--llg-border);
    padding: var(--llg-spacing-xl) 0;
    margin-top: var(--llg-spacing-xxl);
}

.llg-footer-container {
    max-width: var(--llg-container-width);
    margin: 0 auto;
    padding: 0 var(--llg-container-padding);
    text-align: center;
}

.llg-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--llg-spacing-xl);
    margin-bottom: var(--llg-spacing-lg);
}

.llg-footer-links a {
    color: var(--llg-text-secondary);
}

.llg-footer-links a:hover {
    color: var(--llg-accent);
}

.llg-footer-info {
    font-size: 0.875rem;
    color: var(--llg-text-muted);
}

.llg-footer-info p {
    margin-bottom: var(--llg-spacing-xs);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#llg-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--llg-bg-tertiary);
    border: 1px solid var(--llg-border);
    border-radius: 50%;
    color: var(--llg-text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--llg-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#llg-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#llg-back-to-top:hover {
    background: var(--llg-accent);
    color: white;
    border-color: var(--llg-accent);
}

/* ============================================
   SNOW EFFECT
   ============================================ */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    display: none;
}

#snow-container.active {
    display: block;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    text-shadow: 0 0 5px white;
    animation: llg-fall linear infinite;
}

@keyframes llg-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ============================================
   ROUNDED CORNERS MODIFIER
   ============================================ */
.no-rounded {
    border-radius: 0 !important;
}

.no-rounded * {
    border-radius: 0 !important;
}

/* ============================================
   SHADOWS MODIFIER
   ============================================ */
.no-shadows {
    box-shadow: none !important;
}

.no-shadows * {
    box-shadow: none !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .llg-layout {
        grid-template-columns: 1fr;
    }

    .llg-sidebar {
        display: none;
    }

    .llg-sidebar.visible-mobile {
        display: flex;
    }

    .llg-forum-header {
        grid-template-columns: 50px 1fr;
        gap: var(--llg-spacing-md);
    }

    .llg-forum-stats,
    .llg-forum-lastpost {
        display: none;
    }

    .llg-post {
        grid-template-columns: 1fr;
    }

    .llg-post-author {
        border-right: none;
        border-bottom: 1px solid var(--llg-border);
        display: flex;
        align-items: center;
        gap: var(--llg-spacing-md);
        text-align: left;
    }

    .llg-author-avatar img {
        max-width: 80px;
    }

    .llg-nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--llg-bg-secondary);
        flex-direction: column;
        padding: var(--llg-spacing-md);
        border-top: 1px solid var(--llg-border);
    }

    .llg-nav-menu.active {
        display: flex;
    }

    .llg-nav-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --llg-container-padding: 15px;
    }

    .llg-header-banner {
        padding: var(--llg-spacing-lg) var(--llg-container-padding);
    }

    .llg-banner-text h1 {
        font-size: 1.8rem;
    }

    .llg-main-content {
        padding: var(--llg-spacing-md);
    }

    .llg-thread-list {
        font-size: 0.875rem;
    }

    .llg-thread-list thead th:first-child,
    .llg-thread-list tbody td:first-child {
        display: none;
    }

    .llg-pagination {
        flex-direction: column;
        gap: var(--llg-spacing-md);
    }

    .llg-modal-content {
        width: 95%;
    }

    #llg-customizer-toggle {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    #llg-back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .llg-footer-links {
        flex-wrap: wrap;
        gap: var(--llg-spacing-md);
    }
}

@media (max-width: 480px) {
    .llg-banner-logo img {
        max-height: 60px;
    }

    .llg-banner-text h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .llg-banner-text p {
        font-size: 0.9rem;
    }

    .llg-forum-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .llg-forum-title {
        font-size: 1rem;
    }

    .llg-stat-number {
        font-size: 1.2rem;
    }

    .llg-modal-header,
    .llg-modal-body,
    .llg-modal-footer {
        padding: var(--llg-spacing-md);
    }

    .llg-modal-footer {
        flex-direction: column;
    }

    .llg-modal-footer .llg-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .llg-navbar,
    .llg-sidebar,
    #llg-customizer-toggle,
    #llg-back-to-top,
    #snow-container,
    .llg-post-controls,
    .llg-post-footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .llg-main-content {
        background: white;
        box-shadow: none;
    }
}
