@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Noto+Music&family=Noto+Sans+Symbols+2&display=swap');

/* Bravura Font for complete Music Symbol coverage */
@font-face {
  font-family: 'Bravura';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/bravura@latest/latin-400-normal.woff2) format('woff2'), 
       url(https://cdn.jsdelivr.net/fontsource/fonts/bravura@latest/latin-400-normal.woff) format('woff');
}

body {
    background-color: #fdfbf7;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: 'Quicksand', sans-serif;
    color: #334155; /* slate-700 */
}

.site-nav {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 18px rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(14px);
}

.site-nav-inner {
    width: min(100%, 72rem);
    height: 58px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.site-nav-brand,
.category-menu-button {
    height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav-brand {
    gap: 8px;
    padding: 0 12px;
    color: #334155;
}

.site-nav-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: block;
}

.site-nav-brand:hover {
    color: #ff6f93;
    background: #fff0f5;
}

.category-menu {
    position: relative;
    flex: 0 0 auto;
}

.category-menu-button {
    list-style: none;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid transparent;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.category-menu-button::-webkit-details-marker {
    display: none;
}

.category-menu-button:hover {
    background: #fff0f5;
    color: #ff6f93;
    border-color: #ffd1dc;
}

.category-menu-chevron {
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-1px);
}

.category-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(88vw, 420px);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(100, 116, 139, 0.18);
    backdrop-filter: blur(14px);
}

.category-menu-link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-menu-link:hover {
    color: #ff6f93;
    background: #fff0f5;
}

.category-menu-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1;
}

@media (max-width: 520px) {
    .site-nav-inner {
        height: 54px;
        padding: 0 0.75rem;
        gap: 4px;
    }

    .site-nav-brand,
    .category-menu-button {
        height: 36px;
        font-size: 0.85rem;
    }

    .site-nav-logo {
        width: 24px;
        height: 24px;
    }

    .category-menu-button {
        padding: 0 10px;
    }

    .category-menu-panel {
        width: calc(100vw - 1.5rem);
        grid-template-columns: 1fr;
    }

    .category-menu-link {
        white-space: normal;
    }
}

/* Symbol Font Fallback Stack - Prioritize Noto Music for consistency, Bravura for coverage */
.symbol-font {
    font-family: 'Noto Music', 'Bravura', 'Noto Sans Symbols 2', 'Symbola', 'Quivira', 'Segoe UI Symbol', sans-serif;
    line-height: 1; 
    display: inline-block; 
}

.hero-help {
    width: min(100%, 48rem);
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: #64748b;
    font-size: 0.9rem;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(12px);
    color: #475569;
    font-weight: 700;
    line-height: 1.2;
}

.font-support-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 1.2rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.font-support-badge::before {
    content: "Music font";
}

.font-support-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    max-width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    color: #64748b;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.07);
    line-height: 1.45;
    text-align: left;
}

.font-support-note-text {
    min-width: 0;
}

.symbol-card .font-support-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 20;
    background: rgba(255, 247, 237, 0.92);
    box-shadow: 0 4px 10px rgba(251, 146, 60, 0.12);
    font-size: 0.56rem;
    padding: 0.12rem 0.38rem;
    cursor: default;
}

@media (max-width: 640px) {
    .hero-help {
        width: 100%;
        padding: 0 1rem;
        font-size: 0.82rem;
    }

    .font-support-note {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }

}

.symbol-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; 
    cursor: pointer;
}
.symbol-card:active {
    transform: scale(0.95);
}
.symbol-card:focus-visible,
.symbol-copy-button:focus-visible {
    outline: 2px solid #ff8ba7;
    outline-offset: 3px;
}
.symbol-copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
    opacity: 0;
    transform: translateY(-2px);
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.symbol-card:hover .symbol-copy-button,
.symbol-card:focus-within .symbol-copy-button,
.symbol-card:focus-visible .symbol-copy-button,
.symbol-card.is-copy-complete .symbol-copy-button {
    opacity: 1;
    transform: translateY(0);
}
.symbol-copy-button:hover {
    color: #be123c;
    transform: translateY(0) scale(1.08);
}
.symbol-copy-button svg {
    width: 17px;
    height: 17px;
}
.symbol-copy-button .check-icon {
    display: none;
}
.symbol-card.is-copy-complete .symbol-copy-button {
    color: #047857;
}
.symbol-card.is-copy-complete .symbol-copy-button .copy-icon {
    display: none;
}
.symbol-card.is-copy-complete .symbol-copy-button .check-icon {
    display: inline-flex;
}
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.seo-content {
    color: #475569;
}

.seo-copy-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(148, 163, 184, 0.08);
}

.seo-copy-block h2 {
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.seo-copy-block h3 {
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 1rem;
    font-weight: 700;
}

.seo-copy-block p {
    color: #64748b;
    line-height: 1.75;
}

.symbol-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.symbol-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.symbol-table th,
.symbol-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.symbol-table th {
    color: #475569;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.symbol-table td {
    color: #334155;
    font-size: 0.95rem;
}

.symbol-table tr:last-child td {
    border-bottom: 0;
}

.symbol-table code {
    color: #be123c;
    font-size: 0.85rem;
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

/* Fast Hover Tooltip for Badges */
.has-tooltip {
    position: relative;
    cursor: help;
}
.has-tooltip .tooltip-content {
    visibility: hidden;
    background-color: #334155;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 50;
    bottom: 130%; 
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.1s; 
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: max-content;
}
.has-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}
.has-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #334155 transparent transparent transparent;
}


@keyframes breath {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.breathing-icon {
    animation: breath 3s infinite ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #ffd1dc; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff8ba7; 
}
