/* Symbols / KituHay Module Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --primary-hover: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
    --card-shadow: 0 4px 20px -2px rgba(236, 72, 153, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
    --border-pink: #fbcfe8;
    --bg-light-pink: #fdf2f8;
}

.symbols-hero-card {
    background: linear-gradient(135deg, #fff5f7 0%, #faf5ff 100%);
    border: 2px dashed #f472b6;
    border-radius: 1.25rem;
    position: relative;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.symbols-hero-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    background: #fff;
    border: 1px solid #fbcfe8;
    color: #db2777;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    box-shadow: 0 2px 6px rgba(219, 39, 119, 0.15);
}

.symbols-input-lg {
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 0.875rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    text-align: center;
    padding: 0.85rem 1rem;
}

.symbols-input-lg:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
    outline: none;
}

.symbols-char-counter {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    pointer-events: none;
    user-select: none;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.symbols-select-box {
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    font-size: 0.925rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
}

.symbols-select-box:focus,
.symbols-select-box:hover {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.symbols-select-box optgroup {
    font-weight: 700;
    color: #db2777;
    background: #fff5f8;
}

.symbols-select-box option {
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    padding: 0.35rem;
}

.btn-gradient-primary {
    background: var(--primary-gradient);
    color: #fff !important;
    border: none;
    font-weight: 700;
    border-radius: 0.875rem;
    padding: 0.85rem 2rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.btn-gradient-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
}

.symbols-nav-pill {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    background: #f1f5f9;
    color: #475569 !important;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-block;
}

.symbols-nav-pill:hover,
.symbols-nav-pill.active {
    background: var(--primary-gradient);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.symbols-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
    transition: all 0.2s;
}

.symbols-card:hover {
    border-color: #fbcfe8;
    box-shadow: var(--card-shadow);
}

.char-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    min-height: 42px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    position: relative;
    word-break: break-all;
}

.char-item-btn:hover {
    background: #fdf2f8;
    border-color: #f472b6;
    color: #db2777;
    transform: scale(1.04);
}

.char-item-btn:active {
    transform: scale(0.96);
}

.nickname-variant-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.65rem;
    transition: all 0.2s;
}

.nickname-variant-box:hover {
    border-color: #ec4899;
    background: #fffdfd;
    box-shadow: 0 2px 12px rgba(236, 72, 153, 0.1);
}

.nickname-variant-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    word-break: break-all;
}

.btn-copy-sm {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
    border-radius: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-copy-sm:hover {
    background: #db2777;
    color: #ffffff;
}

.symbols-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e293b;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.symbols-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.vote-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    transition: all 0.2s;
}

.vote-chip.up:hover {
    background: #dcfce7;
    color: #15803d;
}

.vote-chip.down:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-fav-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 0.45rem;
    border: 1px solid #f472b6;
    background: #fff;
    color: #db2777;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-fav-sm.is-saved,
.btn-fav-sm:hover {
    background: #fdf2f8;
    border-color: #db2777;
    transform: scale(1.04);
}

.r8-sym-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.r8-sym-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 720px) {
    .r8-sym-grid-2,
    .r8-sym-grid-3 {
        grid-template-columns: 1fr;
    }
}

.r8-chip-btn {
    padding: 3px 8px;
    font-size: 0.82rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
}

.r8-chip-btn:hover,
.r8-chip-btn.active {
    background: #ec4899;
    border-color: #db2777;
    color: #fff;
}
