/* ============================================
   Index Page Styles
   ============================================ */

/* Any index-page specific styles go here */
/* Currently using shared global.css for main styling */
.theme-toggle {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    border: 1px solid var(--line);
    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    background: var(--surface-muted);
    border-color: var(--brand);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.25);
}

.theme-icon {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.4s ease;
}

/* optional animation when toggling */
[data-theme="dark"] .theme-icon {
    transform: rotate(180deg);
}