/* =============================================
   顔文字コピーマネージャー - フロントエンドスタイル
================================================ */

.kcm-kaomoji-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'MS PGothic', 'MS Gothic', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    padding: 20px 0;
}

/* テキスト切り替えセクション */
.kcm-text-switcher {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kcm-switcher-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.kcm-switcher-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.kcm-switcher-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.kcm-switcher-btn:hover {
    background: #f0f8ff;
}

.kcm-switcher-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.kcm-current-setting {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.kcm-current-text {
    font-family: monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

/* カテゴリー */
.kcm-category {
    margin-bottom: 30px;
}

.kcm-category-title {
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eaeaea;
    color: #555;
    font-weight: 700;
    font-size: 18px;
}

/* 顔文字グリッド */
.kcm-kaomoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.kcm-kaomoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
    word-break: break-all;
    position: relative;
    font-family: 'Consolas', 'Monaco', 'Courier New', 'Menlo', 'DejaVu Sans Mono', 'MS PGothic', 'MS Gothic', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', monospace, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.kcm-kaomoji-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.kcm-kaomoji-btn.long-text {
    font-size: 14px;
    min-height: 80px;
}

.kcm-kaomoji-btn:hover {
    background: #eef7ff;
    border-color: #a8d4ff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.kcm-kaomoji-btn.copied {
    background: #e6f7e6;
    border-color: #a8ffa8;
    color: #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .kcm-kaomoji-container {
        padding: 15px 0;
    }
    
    .kcm-kaomoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .kcm-kaomoji-btn {
        min-height: 50px;
        padding: 8px;
        font-size: 14px;
    }
    
    .kcm-text-switcher {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .kcm-kaomoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .kcm-kaomoji-btn {
        min-height: 45px;
        padding: 6px;
        font-size: 13px;
    }
    
    .kcm-switcher-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}
