:root {
    /* Dark theme (default) */
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --header-bg: #2d2d2d;
    --code-bg: #2d2d2d;
    --link-color: #61dafb;
    --border-color: #404040;
    --code-block-bg: #2d2d2d;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    flex-shrink: 0;
}

.main-nav {
    flex-grow: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--link-color);
}

.main-content {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
}

/* Code block styling */
pre {
    position: relative;
    background-color: var(--code-block-bg);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

pre:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--header-bg);
        z-index: 1000;
        padding: 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }
}

/* Desktop Navigation Styles */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }

    .main-nav {
        display: block !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }

    .header-container {
        justify-content: space-between;
    }

    .logo {
        margin-right: 2rem;
    }
}

/* Add transition for smooth mobile menu animation */
.main-nav {
    transition: all 0.3s ease-in-out;
}

/* Update the logo animation */
.logo img {
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Remove the old wiggle animation */
@keyframes wiggle {
    /* Remove this keyframe as we're not using it anymore */
}

/* Theme controls and icons */
.theme-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-controls i {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Theme palette icon */
#theme-toggle:hover {
    color: #00bf62;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
}

/* Font size icon */
#font-toggle:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

/* Reset/trash icon */
#reset-settings:hover {
    color: #F44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.6);
    transform: translateY(-2px);
}

/* Add these new styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h1 {
    color: var(--h1-color);
    font-size: 2.5em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.3em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h2 {
    color: var(--h2-color);
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h3 {
    color: var(--h3-color);
    font-size: 1.5em;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

h4 {
    color: var(--h4-color);
    font-size: 1.2em;
    margin-top: 1.2em;
    margin-bottom: 0.3em;
}

/* Inline code styling */
:not(pre) > code {
    background-color: var(--inline-code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Selection styling */
::selection {
    background-color: var(--selection-bg);
}

/* Link styling */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Code block enhancements */
pre {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Secondary text */
.secondary-text {
    color: var(--secondary-text);
}

/* Navigation menu styling */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-toggle {
    position: relative;
}

#nav-toggle {
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

#nav-toggle:hover {
    color: #FFB000;
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.6);
    transform: translateY(-2px);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--header-bg);
    min-width: 500px;
    max-width: 800px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    margin-top: 0.5rem;

    /* Ensure dropdown doesn't go off-screen on mobile */
    @media (max-width: 900px) {
        left: 50%;
        transform: translateX(-50%);
        min-width: 90vw;
        max-width: 95vw;
    }
}

.nav-dropdown.show {
    display: block;
}

.nav-dropdown ul {
    display: block;
    padding: 0;
    margin: 0;
}

.nav-dropdown li {
    padding: 0;
    margin: 0;
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.nav-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Question mark icon styling to match hamburger */
.main-nav .fa-circle-question {
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.main-nav .fa-circle-question:hover {
    color: #FFB000;
    text-shadow: 0 0 10px rgba(147, 51, 234, 0.6);
    transform: translateY(-2px);
} 