/* Theme variables for Railhub Pictures */
:root {
    /* Light theme variables */
    --background-color: #f8f8f8;
    --text-color: #333;
    --secondary-text: #666;
    --card-background: #fff;
    --header-background: #fff;
    --border-color: #eee;
    --shadow-color: rgba(0,0,0,0.08);
    --hover-shadow: rgba(0,0,0,0.12);
    --button-background: #444;
    --button-text: #fff;
    --button-border: transparent;
    --section-alt-background: #f5f5f5;
    --input-background: #f5f5f5;
    --input-border: #eee;
    --card-bg: #ffffff;
    --footer-bg: #f8f8f8;
    --footer-text: #666;
    --accent-color: #4a7dff;
    --nav-text: #333;
    --nav-active: #333;
    --nav-hover: #000;
    --search-background: #f5f5f5;
    --quick-find-bg: #f5f5f5;
    --major-railroads-bg: #f8f8f8;
    --category-bg: #f5f5f5;
    --category-border: #e5e5e5;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Card styling */
.card, .container-card {
    background-color: var(--card-background);
    border-color: var(--border-color);
    box-shadow: 0 2px 5px var(--shadow-color);
}

/* Links and buttons */
a {
    color: var(--accent-color);
}

button, .button {
    background-color: var(--button-background);
    color: var(--button-text);
    border: 1px solid var(--button-border);
    box-shadow: 0 1px 3px var(--shadow-color);
}

/* Input fields */
input, select, textarea {
    background-color: var(--input-background);
    border-color: var(--input-border);
    color: var(--text-color);
}

/* Sections and containers */
.section-alt {
    background-color: var(--section-alt-background);
}

/* Header elements */
header {
    background-color: var(--header-background);
    border-bottom-color: var(--border-color);
}

header a {
    color: var(--nav-text);
}

header a:hover {
    color: var(--nav-hover);
}

/* Navigation */
nav a {
    color: var(--nav-text);
}

nav a:hover {
    color: var(--nav-hover);
}

nav a.active {
    color: var(--nav-active);
}

/* Transitions for smooth theme changes */
body, a, button, input, textarea, select,
header, footer, section, div, span, p, h1, h2, h3, h4, h5, h6 {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme toggle button styling */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    color: var(--footer-text);
    margin-left: 10px;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
    position: relative;
}

.theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Only show moon icon by default */
.moon-icon {
    display: block;
}

.sun-icon {
    display: none;
}

/* Basic transitions for interactive elements */
a, button, input {
    transition: background-color 0.2s ease, color 0.2s ease;
}
