﻿/* site.css - TCGListings.com - Dark & Light Theme - Cleaned & Fixed January 2026 */

:root {
    /* Dark mode (default) */
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #2d3748;
    --bg-surface-active: #374151;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #6366f1; /* Indigo */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #a78bfa;
    --price: #f472b6;
    --success: #34d399;
    --danger: #f87171;
    --border: #334155;
    --border-hover: #475569;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.55);
    --radius: 10px;
    --transition: all 0.2s ease;
}

/* Light mode */
.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-surface: #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    --bg-surface-active: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --border-hover: #9ca3af;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

/* Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.5;
}
/* Additional styles for info sections - extend your existing home.css */
.info-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin: 3.5rem auto;
    max-width: 1100px;
}

.info-card {
    flex: 1;
    min-width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

    .info-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

    .info-card h2 {
        font-size: 2.2rem;
        color: var(--primary);
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .info-card ul {
        list-style: none;
        padding: 0;
        font-size: 1.15rem;
        color: black;
        line-height: 1.7;
    }

        .info-card ul li {
            margin-bottom: 1.2rem;
            position: relative;
            padding-left: 2.2rem;
        }

            .info-card ul li::before {
                content: "✓";
                position: absolute;
                left: 0;
                color: var(--primary);
                font-weight: bold;
                font-size: 1.3rem;
            }

/* Layout */
.container {
    /*max-width: 1400px;*/
    margin-left: var(--sidebar-width);
    margin: 0 auto;
    
}

.main-content {
    margin-left: 12%;
    padding: 24px 16px;
    min-height: calc(100vh - 56px);
}

/* Sidebar - Improved spacing & separation */
.sidebar {
    width: var(--sidebar-width, 260px);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    min-height: 52px;
}

    .sidebar-item:last-child {
        border-bottom: none;
    }

    .sidebar-item:hover,
    .sidebar-item:focus {
        background: var(--bg-surface-hover);
        color: var(--text-primary);
    }

    .sidebar-item i {
        margin-right: 16px;
        width: 24px;
        text-align: center;
        color: var(--text-muted);
    }

    .sidebar-item:hover i {
        color: var(--primary-light);
    }

/* Treeview - Better spacing */
.treeview-header {
    padding: 14px 24px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

    .treeview-header:hover {
        background: var(--bg-surface-hover);
        color: var(--text-primary);
    }

.treeview-content {
    padding: 8px 0;
}

    .treeview-content a {
        display: block;
        padding: 12px 32px 12px 56px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        transition: var(--transition);
    }

        .treeview-content a:hover {
            background: var(--bg-surface-hover);
            color: var(--primary-light);
        }

/* Cards & common elements */
.card-item, .card-preview, .marketplace-container, .filter-form {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .card-item:hover, .card-preview:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary);
    }

/* Links & Price */
a {
    color: var(--primary-light);
}

    a:hover {
        color: var(--primary);
    }

.card-price {
    color: var(--price);
    font-weight: 700;
}
/* Small floating legal footer */
.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 40, 0.92); /* semi-transparent dark for dark mode */
    color: #aaa;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(100, 100, 120, 0.4);
    z-index: 900;
    backdrop-filter: blur(6px); /* nice modern blur effect */
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

    .legal-footer p {
        margin: 0;
    }

    .legal-footer a {
        color: #6ab0f3; /* your --primary or similar blue */
        text-decoration: underline;
        font-weight: 500;
    }

        .legal-footer a:hover {
            color: #8cc4ff;
            text-decoration: none;
        }

/* Light mode adjustment */
body.light-mode .legal-footer {
    background: rgba(245, 245, 250, 0.95);
    color: #555;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

    body.light-mode .legal-footer a {
        color: #0066cc;
    }

        body.light-mode .legal-footer a:hover {
            color: #004080;
        }

/* Ensure main content isn't hidden behind footer on short pages */
main.main-content {
    margin-bottom: 50px; /* push content up so footer doesn't overlap */
}
/* Buttons */
.cta-button, input[type="submit"], button.primary-action {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem 1.6rem;
    transition: var(--transition);
}

    .cta-button:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* Mobile sidebar */
@media (max-width: 900px) {
    :root {
        --sidebar-width: 72px;
    }

  

    
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        transition: transform 0.3s ease;
    }

        .sidebar.sidebar-visible {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }
}
