/* ===========================================
   Looking For Group - 揪團大廳樣式
   =========================================== */

/* 繼承 Game_Index 的變數 - 深色模式（預設） */
:root {
    --gaming-primary: #7c3aed;
    --gaming-primary-hover: #6d28d9;
    --gaming-secondary: #10b981;
    --gaming-accent: #f59e0b;
    --gaming-danger: #ef4444;
    --gaming-bg: #0f0f23;
    --gaming-surface: #1a1a2e;
    --gaming-surface-hover: #252542;
    --gaming-border: #2d2d4a;
    --gaming-text: #e2e8f0;
    --gaming-text-muted: #94a3b8;
    --gaming-gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    --gaming-glow: 0 0 20px rgba(124, 58, 237, 0.3);
    --gaming-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --gaming-overlay: rgba(0, 0, 0, 0.6);
    --gaming-input-bg: #252542;
}

/* 淺色模式變數 */
:root[data-theme="light"] {
    --gaming-bg: #f8fafc;
    --gaming-surface: #ffffff;
    --gaming-surface-hover: #f1f5f9;
    --gaming-border: #e2e8f0;
    --gaming-text: #1e293b;
    --gaming-text-muted: #64748b;
    --gaming-glow: 0 0 20px rgba(124, 58, 237, 0.15);
    --gaming-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --gaming-overlay: rgba(0, 0, 0, 0.4);
    --gaming-input-bg: #f1f5f9;
}

/* 跟隨系統 - 淺色 */
@media (prefers-color-scheme: light) {
    :root[data-theme="system"] {
        --gaming-bg: #f8fafc;
        --gaming-surface: #ffffff;
        --gaming-surface-hover: #f1f5f9;
        --gaming-border: #e2e8f0;
        --gaming-text: #1e293b;
        --gaming-text-muted: #64748b;
        --gaming-glow: 0 0 20px rgba(124, 58, 237, 0.15);
        --gaming-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        --gaming-overlay: rgba(0, 0, 0, 0.4);
        --gaming-input-bg: #f1f5f9;
    }
}

/* ==================== Accessibility ==================== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus 樣式 */
:focus-visible {
    outline: 2px solid var(--gaming-primary);
    outline-offset: 2px;
}

/* 選填標籤 */
.optional-label {
    font-size: 0.75rem;
    color: var(--gaming-text-muted);
    font-weight: 400;
}

/* 字數計數 */
.char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--gaming-text-muted);
    margin-top: 0.25rem;
}

/* Container */
.lfg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ==================== Header ==================== */
.lfg-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--gaming-border);
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gaming-text-muted);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--gaming-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--gaming-text);
}

.lfg-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gaming-text);
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lfg-header h1 i {
    color: var(--gaming-primary);
}

.header-subtitle {
    color: var(--gaming-text-muted);
    margin: 0;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn.primary {
    background: var(--gaming-gradient);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--gaming-glow);
}

.btn.success {
    background: var(--gaming-secondary);
    color: white;
}

.btn.success:hover {
    background: #059669;
}

.btn.ghost {
    background: transparent;
    color: var(--gaming-text);
    border: 1px solid var(--gaming-border);
}

.btn.ghost:hover {
    background: var(--gaming-surface);
    border-color: var(--gaming-primary);
}

.btn.danger {
    background: var(--gaming-danger);
    color: white;
}

.btn.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Filter Section ==================== */
.filter-section {
    margin-bottom: 2rem;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--gaming-surface);
    border: 1px solid var(--gaming-border);
    border-radius: 0.75rem;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 1rem;
    background: var(--gaming-bg);
    border: 1px solid var(--gaming-border);
    border-radius: 0.5rem;
}

.search-group i {
    color: var(--gaming-text-muted);
}

.search-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--gaming-text);
    font-size: 0.9375rem;
    outline: none;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.8125rem;
    color: var(--gaming-text-muted);
}

.filter-group select {
    padding: 0.5rem 0.75rem;
    background: var(--gaming-bg);
    border: 1px solid var(--gaming-border);
    border-radius: 0.375rem;
    color: var(--gaming-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--gaming-primary);
}

/* ==================== Main Layout ==================== */
.lfg-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

/* ==================== Sessions Section ==================== */
.lfg-sessions-section {
    min-width: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gaming-text);
    margin: 0;
}

.section-header h2 i {
    color: var(--gaming-primary);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--gaming-primary);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gaming-surface);
    border: 1px solid var(--gaming-border);
    border-radius: 0.375rem;
    color: var(--gaming-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover,
.view-btn.active {
    background: var(--gaming-primary);
    border-color: var(--gaming-primary);
    color: white;
}

/* Sessions Container */
.sessions-container {
    min-height: 300px;
    overflow: visible;
}

.sessions-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.sessions-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Session Card */
.session-card {
    position: relative;
    background: var(--gaming-surface);
    border: 1px solid var(--gaming-border);
    border-radius: 0.75rem;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.session-card:hover {
    border-color: var(--gaming-primary);
    transform: translateY(-3px);
    box-shadow: var(--gaming-glow);
    z-index: 10;
}

.session-card .card-header {
    position: relative;
    height: 120px;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.session-card .card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--gaming-surface-hover);
}

.session-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.session-card .status-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.open {
    background: var(--gaming-secondary);
    color: white;
}

.status-badge.full {
    background: var(--gaming-accent);
    color: #1f2937;
}

.status-badge.closed {
    background: var(--gaming-text-muted);
    color: var(--gaming-bg);
}

.session-card .game-title {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.session-card .card-body {
    padding: 1rem;
}

.session-card .session-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.session-card .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gaming-text-muted);
}

.session-card .meta-item i {
    width: 16px;
    text-align: center;
    color: var(--gaming-primary);
}

.session-card .host-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gaming-border);
}

.session-card .host-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-card .host-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gaming-surface-hover);
    object-fit: cover;
    flex-shrink: 0;
}

.session-card .host-name {
    font-size: 0.8125rem;
    color: var(--gaming-text);
}

.session-card .slots-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.session-card .slots-info.open {
    color: var(--gaming-secondary);
}

.session-card .slots-info.full {
    color: var(--gaming-accent);
}

/* List View Session */
.sessions-container.list-view .session-card {
    display: flex;
    align-items: stretch;
}

.sessions-container.list-view .session-card .card-header {
    width: 200px;
    height: auto;
    min-height: 100px;
    flex-shrink: 0;
}

.sessions-container.list-view .session-card .game-title {
    font-size: 1rem;
}

.sessions-container.list-view .session-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sessions-container.list-view .session-card .session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Empty & Loading States */
.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gaming-text-muted);
}

.loading-state i,
.empty-state i {
    font-size: 3rem;
    color: var(--gaming-primary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gaming-text);
    margin: 0 0 0.5rem;
}

.empty-state p {
    margin: 0 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* ==================== Sidebar ==================== */
.lfg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: var(--gaming-surface);
    border: 1px solid var(--gaming-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.sidebar-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gaming-surface-hover);
    border-bottom: 1px solid var(--gaming-border);
}

.sidebar-card .card-header i {
    color: var(--gaming-primary);
}

.sidebar-card .card-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gaming-text);
    margin: 0;
}

.sidebar-card .card-body {
    padding: 1rem;
}

.sidebar-card .card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--gaming-border);
}

.empty-text {
    font-size: 0.875rem;
    color: var(--gaming-text-muted);
    text-align: center;
    margin: 0;
}

.empty-text.login-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gaming-text-muted);
}

.empty-text.login-hint a {
    color: var(--gaming-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.empty-text.login-hint a:hover {
    color: var(--gaming-primary-hover);
    text-decoration: underline;
}

/* Discord Card */
.discord-card .card-header {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
}

.discord-card .card-header i,
.discord-card .card-header h3 {
    color: white;
}

.discord-card .card-body p {
    font-size: 0.875rem;
    color: var(--gaming-text-muted);
    margin: 0 0 1rem;
}

.command-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.command-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--gaming-text-muted);
    border-bottom: 1px solid var(--gaming-border);
}

.command-list li:last-child {
    border-bottom: none;
}

.command-list code {
    padding: 0.25rem 0.5rem;
    background: var(--gaming-surface-hover);
    border-radius: 0.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--gaming-primary);
}

/* ==================== Modal ==================== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.modal-content {
    position: relative;
    z-index: 2001;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--gaming-surface);
    border: 1px solid var(--gaming-border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gaming-surface-hover);
    border-bottom: 1px solid var(--gaming-border);
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gaming-text);
    margin: 0;
}

.modal-header h2 i {
    color: var(--gaming-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--gaming-border);
    border-radius: 50%;
    color: var(--gaming-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gaming-danger);
    border-color: var(--gaming-danger);
    color: white;
}

.modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gaming-surface-hover);
    border-top: 1px solid var(--gaming-border);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gaming-text);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gaming-border);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gaming-text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gaming-bg);
    border: 1px solid var(--gaming-border);
    border-radius: 0.5rem;
    color: var(--gaming-text);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gaming-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Search Input Wrapper */
.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.search-input-wrapper input {
    flex: 1;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: var(--gaming-gradient);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Game Search Results */
.game-search-results,
.watch-search-results {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 1rem;
}

.hint-text {
    font-size: 0.875rem;
    color: var(--gaming-text-muted);
    text-align: center;
    padding: 1rem;
}

.game-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gaming-bg);
    border: 1px solid var(--gaming-border);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-result-item:hover {
    border-color: var(--gaming-primary);
    background: var(--gaming-surface-hover);
}

.game-result-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.game-result-item .game-info {
    flex: 1;
    min-width: 0;
}

.game-result-item .game-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gaming-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-result-item .game-meta {
    font-size: 0.75rem;
    color: var(--gaming-text-muted);
    margin: 0.25rem 0 0;
}

/* Selected Game Preview */
.selected-game {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gaming-bg);
    border: 2px solid var(--gaming-secondary);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.selected-game .game-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.selected-game .game-info {
    flex: 1;
}

.selected-game .game-name {
    font-weight: 600;
    color: var(--gaming-text);
    margin: 0 0 0.25rem;
}

.selected-game .game-genres {
    font-size: 0.75rem;
    color: var(--gaming-text-muted);
    margin: 0;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    gap: 0.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    background: var(--gaming-border);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.step-dot.active {
    background: var(--gaming-primary);
}

/* Watches List */
.watches-list {
    max-height: 300px;
    overflow-y: auto;
}

.watch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--gaming-bg);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.watch-item .game-name {
    font-size: 0.9375rem;
    color: var(--gaming-text);
}

.watch-item .remove-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--gaming-border);
    border-radius: 50%;
    color: var(--gaming-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-item .remove-btn:hover {
    background: var(--gaming-danger);
    border-color: var(--gaming-danger);
    color: white;
}

.divider {
    height: 1px;
    background: var(--gaming-border);
    margin: 1.5rem 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--gaming-surface);
    border: 1px solid var(--gaming-border);
    border-radius: 0.5rem;
    color: var(--gaming-text);
    font-size: 0.9375rem;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.success {
    border-color: var(--gaming-secondary);
    background: rgba(16, 185, 129, 0.1);
}

.toast.error {
    border-color: var(--gaming-danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .lfg-main {
        grid-template-columns: 1fr;
    }
    
    .lfg-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lfg-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .search-group {
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .sessions-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .lfg-sidebar {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content.large {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .lfg-container {
        padding: 0 1rem 2rem;
    }
    
    .sessions-container.list-view .session-card {
        flex-direction: column;
    }
    
    .sessions-container.list-view .session-card .card-header {
        width: 100%;
        height: 120px;
    }
}

/* ==================== Light Mode Adjustments ==================== */
:root[data-theme="light"] .lfg-container {
    background: transparent;
}

:root[data-theme="light"] .session-card,
:root[data-theme="light"] .sidebar-card,
:root[data-theme="light"] .filter-bar {
    box-shadow: var(--gaming-card-shadow);
}

:root[data-theme="light"] .session-card:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

:root[data-theme="light"] .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

:root[data-theme="light"] .btn.ghost {
    border-color: var(--gaming-border);
    color: var(--gaming-text);
}

:root[data-theme="light"] .btn.ghost:hover {
    background: var(--gaming-surface-hover);
    border-color: var(--gaming-primary);
}

:root[data-theme="light"] .filter-bar input,
:root[data-theme="light"] .filter-bar select,
:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
    background: var(--gaming-input-bg);
    border: 1px solid var(--gaming-border);
}

:root[data-theme="light"] .filter-bar input:focus,
:root[data-theme="light"] .filter-bar select:focus,
:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus {
    border-color: var(--gaming-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

:root[data-theme="light"] .sidebar-card.discord-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-color: #c7d2fe;
}

:root[data-theme="light"] .status-badge.open {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

:root[data-theme="light"] .status-badge.full {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

:root[data-theme="light"] .status-badge.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .loading-state {
    color: var(--gaming-text-muted);
}

:root[data-theme="light"] code {
    background: rgba(124, 58, 237, 0.1);
    color: var(--gaming-primary);
}

/* 跟隨系統淺色模式 */
@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .lfg-container {
        background: transparent;
    }

    :root[data-theme="system"] .session-card,
    :root[data-theme="system"] .sidebar-card,
    :root[data-theme="system"] .filter-bar {
        box-shadow: var(--gaming-card-shadow);
    }

    :root[data-theme="system"] .session-card:hover {
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
    }

    :root[data-theme="system"] .modal-content {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    :root[data-theme="system"] .btn.ghost {
        border-color: var(--gaming-border);
        color: var(--gaming-text);
    }

    :root[data-theme="system"] .btn.ghost:hover {
        background: var(--gaming-surface-hover);
        border-color: var(--gaming-primary);
    }

    :root[data-theme="system"] .filter-bar input,
    :root[data-theme="system"] .filter-bar select,
    :root[data-theme="system"] .form-group input,
    :root[data-theme="system"] .form-group select,
    :root[data-theme="system"] .form-group textarea {
        background: var(--gaming-input-bg);
        border: 1px solid var(--gaming-border);
    }

    :root[data-theme="system"] .filter-bar input:focus,
    :root[data-theme="system"] .filter-bar select:focus,
    :root[data-theme="system"] .form-group input:focus,
    :root[data-theme="system"] .form-group select:focus,
    :root[data-theme="system"] .form-group textarea:focus {
        border-color: var(--gaming-primary);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }

    :root[data-theme="system"] .sidebar-card.discord-card {
        background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
        border-color: #c7d2fe;
    }

    :root[data-theme="system"] .status-badge.open {
        background: rgba(16, 185, 129, 0.15);
        color: #059669;
    }

    :root[data-theme="system"] .status-badge.full {
        background: rgba(245, 158, 11, 0.15);
        color: #d97706;
    }

    :root[data-theme="system"] .status-badge.closed {
        background: rgba(239, 68, 68, 0.15);
        color: #dc2626;
    }

    :root[data-theme="system"] .empty-state,
    :root[data-theme="system"] .loading-state {
        color: var(--gaming-text-muted);
    }

    :root[data-theme="system"] code {
        background: rgba(124, 58, 237, 0.1);
        color: var(--gaming-primary);
    }
}
