/* Sound Wall — custom styles */

/* ── Heart button ─────────────────────────────────────────────────────────── */
.sw-heart {
    cursor: pointer;
    color: #ddd;
    font-size: 18px;
    padding: 4px 6px;
    transition: color 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.sw-heart:hover { color: #e74c3c; }
.sw-heart.sw-active { color: #e74c3c; }
.sw-heart.sw-pop { animation: sw-heart-pop 0.3s ease; }

@keyframes sw-heart-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.6); }
    100% { transform: scale(1); }
}

/* ── Fly animation ────────────────────────────────────────────────────────── */
.sw-fly-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 20px;
    color: #e74c3c;
    transition: transform 0.55s cubic-bezier(0.4,0,0.8,1), opacity 0.55s ease-in;
}

/* ── Desktop favorites bar ────────────────────────────────────────────────── */
#sw-fav-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0d66bf;
    color: #fff;
    border-radius: 30px;
    padding: 10px 18px 10px 14px;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
    text-decoration: none;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    z-index: 1000;
    cursor: pointer;
    transition: background 0.2s;
}
#sw-fav-bar:hover { background: #0a55a0; }
#sw-fav-bar .sw-fav-icon { font-size: 18px; }

#sw-fav-count {
    background: #e74c3c;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 0 4px;
}
#sw-fav-count.sw-blink { animation: sw-blink 0.4s ease; }

@keyframes sw-blink {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.55); background: #ff6b6b; }
    100% { transform: scale(1); }
}

/* ── Mobile favorites footer ─────────────────────────────────────────────── */
#sw-fav-bar-mob {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.10);
    width: 100%;
}
#sw-mob-dice-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
#sw-fav-bar-mob a {
    flex: 2;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.01em;
}
#sw-refresh-btn-mob.sw-mob-hidden { display: none !important; }
#sw-refresh-btn-mob {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #fce700 !important;
    color: #000 !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 12px !important;
    padding: 7px 12px !important;
    cursor: pointer;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1;
}
#sw-refresh-btn-mob span {
    font-size: 10px !important;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
}
#sw-fav-bar-mob .sw-fav-icon {
    font-size: 20px;
    color: #e74c3c;
}

#sw-fav-count-mob {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: normal;
    padding: 0 5px;
}
#sw-fav-count-mob.sw-blink { animation: sw-blink 0.4s ease; }

.browseItemH { margin-bottom: 5px; }

/* Tag emoji icons row */
.sw-tag-icons {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    line-height: 1;
}
.sw-tag-icons span {
    font-size: 18px;
    line-height: 1;
}

/* Mobile heart — make it visible */
.browseItem .sw-heart {
    font-size: 20px;
    color: #bbb;
    padding: 5px 7px;
}
.browseItem .sw-heart:hover,
.browseItem .sw-heart.sw-active { color: #e74c3c; }

/* ── SW header (desktop) ─────────────────────────────────────────────────── */
#sw-topbar {
    background: #0d66bf;
    color: #fff;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
#sw-topbar a.sw-logo {
    color: #fff;
    font-size: 19px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: -0.3px;
}
#sw-topbar .sw-sep { color: #7eb8f0; font-size: 18px; }
#sw-topbar .sw-section { font-size: 16px; opacity: 0.92; }

/* ── SW footer (desktop) ─────────────────────────────────────────────────── */
#sw-footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 30px;
}

/* ── Favorites page ──────────────────────────────────────────────────────── */
.sw-fav-share {
    background: #f0f6ff;
    border: 1px solid #cde;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #555;
}
.sw-fav-share input {
    flex: 1;
    min-width: 180px;
    padding: 6px 10px;
    border: 1px solid #bcd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}
.sw-fav-share button {
    padding: 6px 14px;
    background: #0d66bf;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.sw-fav-share button:hover { background: #0a55a0; }

.sw-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0d66bf;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 14px;
}
.sw-back-link:hover { text-decoration: underline; }

/* ── Page title row ─────────────────────────────────────────────────────── */
.sw-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.sw-title-row h1 {
    margin: 0;
    font-size: 1.35em;
    line-height: 1.2;
}

/* ── Refresh button ──────────────────────────────────────────────────────── */
#sw-refresh-btn {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #fce700 !important;
    color: #000 !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 12px !important;
    padding: 7px 12px !important;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background 0.2s;
    line-height: 1;
}
#sw-refresh-btn span {
    font-size: 10px !important;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #000;
}
#sw-refresh-btn:hover { background: #f0d800 !important; }
