/* MojiEdit Emoji Combos — all styles prefixed .mojiedit-ec- */

.mojiedit-ec-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
}

/* Search */
.mojiedit-ec-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.mojiedit-ec-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.mojiedit-ec-search {
    width: 100%;
    padding: 14px 44px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.mojiedit-ec-search:focus {
    border-color: #4A90D9;
}

.mojiedit-ec-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
}

.mojiedit-ec-search-clear:hover {
    background: #d1d5db;
}

/* Tags */
.mojiedit-ec-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    flex-wrap: nowrap;
}

.mojiedit-ec-tags::-webkit-scrollbar {
    display: none;
}

.mojiedit-ec-tag {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}

.mojiedit-ec-tag:hover {
    border-color: #4A90D9;
    color: #4A90D9;
}

.mojiedit-ec-tag.mojiedit-ec-tag--active {
    background: #4A90D9;
    color: #fff;
    border-color: #4A90D9;
}

/* Grid */
.mojiedit-ec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 960px) {
    .mojiedit-ec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mojiedit-ec-grid {
        grid-template-columns: 1fr;
    }

    .mojiedit-ec-tags {
        flex-wrap: nowrap;
    }
}

@media (min-width: 601px) {
    .mojiedit-ec-tags {
        flex-wrap: wrap;
    }
}

/* Cards */
.mojiedit-ec-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.mojiedit-ec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

.mojiedit-ec-combo-text {
    font-size: 28px;
    line-height: 1.4;
    padding: 12px 8px;
    cursor: pointer;
    word-break: break-word;
    transition: background 0.15s;
    border-radius: 8px;
    width: 100%;
}

.mojiedit-ec-combo-text:hover {
    background: #f3f4f6;
}

.mojiedit-ec-combo-name {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 8px;
    font-weight: 500;
}

.mojiedit-ec-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 12px;
}

.mojiedit-ec-card-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Tag colors */
.mojiedit-ec-card-tag[data-tag="aesthetic"] { background: #ede9fe; color: #7c3aed; }
.mojiedit-ec-card-tag[data-tag="love"] { background: #fce7f3; color: #db2777; }
.mojiedit-ec-card-tag[data-tag="cute"] { background: #fdf2f8; color: #ec4899; }
.mojiedit-ec-card-tag[data-tag="sad"] { background: #e0e7ff; color: #4f46e5; }
.mojiedit-ec-card-tag[data-tag="happy"] { background: #fef9c3; color: #a16207; }
.mojiedit-ec-card-tag[data-tag="funny"] { background: #ffedd5; color: #c2410c; }
.mojiedit-ec-card-tag[data-tag="cool"] { background: #dbeafe; color: #2563eb; }
.mojiedit-ec-card-tag[data-tag="goth"] { background: #1f2937; color: #e5e7eb; }
.mojiedit-ec-card-tag[data-tag="coquette"] { background: #fce7f3; color: #be185d; }
.mojiedit-ec-card-tag[data-tag="birthday"] { background: #fef3c7; color: #b45309; }
.mojiedit-ec-card-tag[data-tag="christmas"] { background: #dcfce7; color: #15803d; }
.mojiedit-ec-card-tag[data-tag="friendship"] { background: #fae8ff; color: #a21caf; }
.mojiedit-ec-card-tag[data-tag="music"] { background: #e0f2fe; color: #0369a1; }
.mojiedit-ec-card-tag[data-tag="nature"] { background: #dcfce7; color: #166534; }
.mojiedit-ec-card-tag[data-tag="food"] { background: #ffedd5; color: #9a3412; }
.mojiedit-ec-card-tag[data-tag="hearts"] { background: #ffe4e6; color: #e11d48; }
.mojiedit-ec-card-tag[data-tag="stars"] { background: #fef9c3; color: #854d0e; }
.mojiedit-ec-card-tag[data-tag="flowers"] { background: #fce7f3; color: #9d174d; }
.mojiedit-ec-card-tag[data-tag="animals"] { background: #d1fae5; color: #065f46; }
.mojiedit-ec-card-tag[data-tag="kaomoji"] { background: #f3f4f6; color: #374151; }
.mojiedit-ec-card-tag[data-tag="cottagecore"] { background: #fef3c7; color: #92400e; }
.mojiedit-ec-card-tag[data-tag="dark-academia"] { background: #d6d3d1; color: #44403c; }
.mojiedit-ec-card-tag[data-tag="fairycore"] { background: #ede9fe; color: #6d28d9; }
.mojiedit-ec-card-tag[data-tag="witchcore"] { background: #2e1065; color: #c4b5fd; }
.mojiedit-ec-card-tag[data-tag="angelcore"] { background: #fefce8; color: #a16207; }
.mojiedit-ec-card-tag[data-tag="y2k"] { background: #e9d5ff; color: #7e22ce; }
.mojiedit-ec-card-tag[data-tag="gaming"] { background: #dbeafe; color: #1d4ed8; }
.mojiedit-ec-card-tag[data-tag="anime"] { background: #fce7f3; color: #be185d; }
.mojiedit-ec-card-tag[data-tag="zodiac"] { background: #e0e7ff; color: #3730a3; }
.mojiedit-ec-card-tag[data-tag="pride"] { background: linear-gradient(90deg,#fee2e2,#fef9c3,#dcfce7,#dbeafe,#ede9fe); color: #374151; }
.mojiedit-ec-card-tag[data-tag="self-care"] { background: #d1fae5; color: #065f46; }
.mojiedit-ec-card-tag[data-tag="halloween"] { background: #ffedd5; color: #7c2d12; }
.mojiedit-ec-card-tag[data-tag="valentine"] { background: #ffe4e6; color: #be123c; }
.mojiedit-ec-card-tag[data-tag="new-year"] { background: #fef9c3; color: #713f12; }
.mojiedit-ec-card-tag[data-tag="summer"] { background: #fef3c7; color: #b45309; }
.mojiedit-ec-card-tag[data-tag="autumn"] { background: #ffedd5; color: #9a3412; }
.mojiedit-ec-card-tag[data-tag="winter"] { background: #e0f2fe; color: #075985; }
.mojiedit-ec-card-tag[data-tag="spring"] { background: #dcfce7; color: #166534; }
.mojiedit-ec-card-tag[data-tag="dividers"] { background: #f3f4f6; color: #4b5563; }

/* Copy button */
.mojiedit-ec-copy-btn {
    background: #4A90D9;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 160px;
}

.mojiedit-ec-copy-btn:hover {
    background: #3a7bc8;
}

.mojiedit-ec-copy-btn.mojiedit-ec-copy-btn--copied {
    background: #16a34a;
}

/* Copy count */
.mojiedit-ec-copy-count {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Empty state */
.mojiedit-ec-empty {
    text-align: center;
    padding: 48px 16px;
    color: #6b7280;
    font-size: 16px;
}

/* Load more */
.mojiedit-ec-load-more-wrap {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 16px;
}

.mojiedit-ec-load-more {
    background: transparent;
    color: #4A90D9;
    border: 2px solid #4A90D9;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mojiedit-ec-load-more:hover {
    background: #4A90D9;
    color: #fff;
}

/* Toast */
.mojiedit-ec-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99999;
    white-space: nowrap;
}

.mojiedit-ec-toast.mojiedit-ec-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* FAQ */
.mojiedit-ec-faq {
    max-width: 800px;
    margin: 40px auto 0;
}

.mojiedit-ec-faq h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.mojiedit-ec-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.mojiedit-ec-faq-q {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    user-select: none;
    font-size: 15px;
}

.mojiedit-ec-faq-q:hover {
    background: #f3f4f6;
}

.mojiedit-ec-faq-arrow {
    transition: transform 0.2s;
    font-size: 12px;
    color: #9ca3af;
}

.mojiedit-ec-faq-item.mojiedit-ec-faq-item--open .mojiedit-ec-faq-arrow {
    transform: rotate(180deg);
}

.mojiedit-ec-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mojiedit-ec-faq-item.mojiedit-ec-faq-item--open .mojiedit-ec-faq-a {
    max-height: 300px;
}

.mojiedit-ec-faq-a p {
    padding: 0 20px 16px;
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

/* Loading skeleton */
.mojiedit-ec-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: mojiedit-ec-shimmer 1.5s infinite;
    border-radius: 12px;
    height: 200px;
}

@keyframes mojiedit-ec-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
