/* Мистер Пушистый — общие стили */

/* === Кастомные курсоры (лапки кота) === */

/* Обычный курсор — лапка */
html {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="18" font-size="18">🐾</text></svg>') 8 8, auto;
}

/* Pointer на ссылках и кнопках — кот */
a, button, [role="button"], input[type="submit"], input[type="button"],
.clickable, .card:hover, .wisdom-card:hover {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><text y="22" font-size="22">😼</text></svg>') 12 12, pointer;
}

/* Курсор при клике */
a:active, button:active, [role="button"]:active {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><text y="22" font-size="22">😸</text></svg>') 12 12, pointer;
}

/* Текстовый курсор — усы */
input[type="text"], input[type="search"], textarea, [contenteditable] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="18" font-size="14">|🐱</text></svg>') 2 12, text;
}

/* Загрузка */
.loading, [aria-busy="true"] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><text y="22" font-size="22">😺</text></svg>') 12 12, wait;
}

/* Grab (drag) */
[draggable="true"] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><text y="22" font-size="22">🙀</text></svg>') 12 12, grab;
}

/* === Theme Toggle Button === */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent);
    transform: rotate(20deg) scale(1.1);
}

/* === Breathing Cat Footer === */
.breathing-cat-container {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.breathing-cat {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    line-height: 1.1;
    color: var(--accent2, #f39c12);
    margin: 0 auto;
    display: inline-block;
    transition: color 0.3s;
}

.breathing-cat-container:hover .breathing-cat {
    color: var(--accent, #e94560);
}

.cat-status {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.3rem;
    font-style: italic;
    opacity: 0.7;
}

/* Тонкая анимация дыхания */
@keyframes breathe {
    0%, 100% { 
        transform: scaleY(1); 
        opacity: 0.9;
    }
    50% { 
        transform: scaleY(1.03); 
        opacity: 1;
    }
}

.breathing-cat {
    animation: breathe 3s ease-in-out infinite;
}

/* === Улучшенный Footer === */
footer {
    margin-top: auto;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid var(--card);
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent2);
}

/* === Плавные переходы для темы === */
body,
.card,
.wisdom-card,
.stat,
nav a,
footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* === Light theme adjustments === */
body[data-theme="light"] .card,
body[data-theme="light"] .wisdom-card {
    box-shadow: 0 2px 10px var(--shadow);
}

/* === Hover effect на карточках в light mode === */
@media (prefers-color-scheme: light) {
    .card:hover,
    .wisdom-card:hover {
        box-shadow: 0 4px 20px var(--shadow);
    }
}
