/* ============================================================
   BUTTON COMPONENTS
   All button styling and states
============================================================ */

/* ============================================================
   BACK BUTTON
============================================================ */
.back-button {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--button-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

/* Hover state */
.back-button:hover {
    background-color: var(--button-bg-hover);
    transform: scale(1.05);
}

/* ============================================================
   THEME TOGGLE BUTTON
============================================================ */
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--button-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

/* Hover state */
.theme-toggle:hover {
    background-color: var(--button-bg-hover);
    transform: scale(1.05);
}

/* Icon visibility based on theme */
.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}
