/**
 * Theme Switcher - Dezenter Toggle-Button
 */

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.theme-toggle-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Switch Element */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    transition: background 0.3s;
}

.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch.active {
    background: #00ff41;
}

.switch.active::after {
    transform: translateX(20px);
}

/* Hacker Theme Anpassungen */
body[data-theme="hacker"] .theme-toggle {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

body[data-theme="hacker"] .theme-toggle:hover {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

body[data-theme="hacker"] .theme-toggle-label {
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

body[data-theme="hacker"] .switch {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
    }

    .theme-toggle {
        padding: 6px 10px;
    }

    .theme-toggle-label {
        font-size: 0.65rem;
    }

    .switch {
        width: 36px;
        height: 20px;
    }

    .switch::after {
        width: 16px;
        height: 16px;
    }

    .switch.active::after {
        transform: translateX(16px);
    }
}
