/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --sidebar-width: 260px;
    --header-height: 64px;
}

body.dark {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: var(--header-height);
    transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
    font-size: 1.4rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 1.5rem;
    z-index: 900;
    transition: transform 0.3s ease;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 4px;
    display: block;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}

/* Cards */
.cheat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.cheat-header {
    background-color: rgba(79, 70, 229, 0.05);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cheat-body {
    padding: 1.25rem;
}

/* Code Blocks */
pre {
    background-color: #1e293b;
    border-radius: 6px;
    position: relative;
    margin: 0;
    padding: 1rem;
}

code {
    font-family: 'Roboto Mono', monospace;
    color: #f8fafc;
    font-size: 0.9rem;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

pre:hover .copy-btn {
    opacity: 1;
}

/* AdSense Containers */
.ad-banner {
    background-color: var(--border); /* Placeholder color */
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ad-header { height: 90px; width: 100%; max-width: 728px; margin: 0 auto; }
.ad-sidebar { height: 250px; width: 100%; margin-top: 2rem; }
.ad-content { height: 100px; width: 100%; }

/* Mobile Responsive */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; }
}