@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Base Website Styles */
:root {
    --primary: #e30613;
    --secondary: #bb0a21;
    --background-light: #ffffff;
    --text-light: #333333;
    --card-bg-light: #ffffff;
    --border-light: #dee2e6;
    --text-muted-light: #666666;
    
    --background-dark: #1a1a1a;
    --text-dark: #f0f0f0;
    --card-bg-dark: #2d2d2d;
    --border-dark: #404040;
    --text-muted-dark: #a0a0a0;

    /* Default light theme */
    --background: var(--background-light);
    --text: var(--text-light);
    --card-bg: var(--card-bg-light);
    --border: var(--border-light);
    --text-muted: var(--text-muted-light);
}

[data-theme="dark"] {
    --background: var(--background-dark);
    --text: var(--text-dark);
    --card-bg: var(--card-bg-dark);
    --border: var(--border-dark);
    --text-muted: var(--text-muted-dark);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

header h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin: 1.5rem 0;
    font-weight: 600;
}

summary { cursor: pointer; }

article {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    transition: background 0.3s, border-color 0.3s;
}

article h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

article h2 .material-icons { font-size: 1.5rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #b31329;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    margin: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
}

li .material-icons {
    position: absolute;
    left: 0;
    top: 0.2rem;
    font-size: 1rem;
    color: var(--primary);
}

ol {
    padding-left: 1.2rem;
}

ol li {
    padding-left: 0.5rem;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    transition: border-color 0.3s;
}

/* Light/Dark Mode */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.theme-toggle__input {
    display: none;
}

.theme-toggle__label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}

.theme-toggle__label .material-icons {
    font-size: 1.5rem;
    transition: opacity 0.3s;
    color: var(--text);
}

.theme-toggle__input:checked + .theme-toggle__label .material-icons:first-child { opacity: 0; }

.theme-toggle__input:not(:checked) + .theme-toggle__label .material-icons:last-child { opacity: 0; }

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1.5rem;
    }
}