/* theme.css - Dark Mode Styles v3.1 */
/* Uključi ovaj fajl na svim stranicama za dark mode podršku */

:root {
    --bg-primary: #f5f1ed;
    --bg-secondary: #fff;
    --text-primary: #0a0a0a;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #333;
    --footer-bg: #0a0a0a;
    --footer-text: #f5f1ed;
}

/* Dark mode varijable - primenljivo i na html i na body */
html.dark-mode,
body.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #f5f1ed;
    --text-secondary: #b0b0b0;
    --text-muted: #666;
    --border-color: #333;
    --footer-bg: #000;
    --footer-text: #f5f1ed;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--text-primary);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.theme-toggle-icon {
    width: 22px;
    height: 22px;
    color: var(--bg-primary);
    transition: all 0.4s ease;
}

.theme-toggle .sun-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.theme-toggle .moon-icon {
    position: absolute;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark mode ikone - primenljivo i na html.dark-mode i na body.dark-mode */
html.dark-mode .theme-toggle .sun-icon,
body.dark-mode .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html.dark-mode .theme-toggle .moon-icon,
body.dark-mode .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* Responsive */
@media (max-width: 768px) {
    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    .theme-toggle-icon {
        width: 20px;
        height: 20px;
    }
}
