/* =========================================================
   style.css - Core Styling, Dark/Light Mode & Layout
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* --- Light Theme Variables (Default) --- */
:root {
    --bg-color: #f4f7f6;
    --surface-color: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --primary-color: #4f46e5; /* Indigo */
    --primary-hover: #4338ca;
    --border-color: #e5e7eb;
    --nav-bg: #ffffff;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
    --bg-color: #0f172a; /* Slate 900 */
    --surface-color: #1e293b; /* Slate 800 */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --border-color: #334155;
    --nav-bg: #1e293b;
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    padding-bottom: 70px; /* Space for Mobile Bottom Nav */
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Buttons --- */
.btn {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--primary-hover);
}

/* --- Desktop Footer --- */
.desktop-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: none; /* Hidden on Desktop by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.mobile-bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.mobile-bottom-nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    transition: color 0.2s;
}

.mobile-bottom-nav a.active, 
.mobile-bottom-nav a:hover {
    color: var(--primary-color);
}

/* --- Responsive Breakpoints --- */
@media (min-width: 769px) {
    body {
        padding-bottom: 0; /* Remove padding on Desktop */
    }
}

@media (max-width: 768px) {
    .desktop-footer {
        display: none; /* Hide Footer on Mobile */
    }
    .mobile-bottom-nav {
        display: block; /* Show App-like Nav on Mobile */
    }
}