
/**
 * 貼圖與表情貼選擇器樣式
 */

.sticker-emote-selector {
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    background: var(--background-color, #fff);
    margin-top: 10px;
    overflow: hidden;
}

/* 搜尋框樣式 */
.sticker-emote-search-container {
    padding: 10px;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.sticker-emote-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-size: 14px;
    background: var(--background-color, #fff);
    color: var(--text-color, #333);
    transition: all 0.3s ease;
}

.sticker-emote-search-input:focus {
    outline: none;
    border-color: var(--primary-color, #3498db);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.sticker-emote-search-input::placeholder {
    color: var(--text-color-secondary, #999);
}

.sticker-emote-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color, #ddd);
    background: rgba(0, 0, 0, 0.05);
}

.sticker-emote-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color, #333);
    transition: all 0.3s ease;
}

.sticker-emote-tab:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sticker-emote-tab.active {
    background: var(--primary-color, #3498db);
    color: white;
}

.sticker-emote-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.sticker-pack, .emote-pack {
    margin-bottom: 15px;
}

.sticker-pack-header, .emote-pack-header {
    font-weight: bold;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 8px;
}

.stickers-container, .emotes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sticker-item, .emote-item {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sticker-item:hover, .emote-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sticker-item img, .emote-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.emote-item {
    width: 40px;
    height: 40px;
}

.sticker-preview-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-color, #fff);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

.close-preview-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color, #333);
}

.sticker-preview-image {
    max-width: 300px;
    max-height: 300px;
    margin-bottom: 15px;
}

.insert-sticker-btn {
    background: var(--primary-color, #3498db);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.insert-sticker-btn:hover {
    background: var(--primary-color-dark, #2980b9);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .sticker-item {
        width: 60px;
        height: 60px;
    }

    .emote-item {
        width: 35px;
        height: 35px;
    }

    .sticker-preview-image {
        max-width: 200px;
        max-height: 200px;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .sticker-item img, .emote-item img {
        filter: brightness(1.1);
    }
}
