/*
Theme Name: emojicenter
Theme URI: https://99jimu.com
Description: Jimu Child Theme
Author: 99jimu
Author URI: https://99jimu.com
Template: jimutheme
Version: 1.1
*/

/* ================== CSS样式部分 ================== */

/* 修改CSS部分 */
.emoji-card {
    position: relative;
    transition: all 0.2s ease;
}
.emoji-icon {
    font-size: 48px;
    line-height: 1;
}
.emoji-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.people-body .emoji-name-container{
    min-height: 40px!important;
}
.people-body .copy-button-overlay-title{
    height: 40px!important;
}
.emoji-name-container {
    position: relative;
}
.emoji-name {
    transition: opacity 0.2s ease;
}
.copy-button-overlay-title {
    position: absolute;
    top: auto;
    bottom: 32px; /* 调整这个值，给皮肤圆点留空间 */
    left: 0;
    right: 0;
    height: 0px; /* 改小高度，只覆盖名称 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
    background: transparent;
}

.emoji-card.has-skin-variants .copy-button-overlay-title {
    height: 60px; /* 有变体时较大 */
}

.emoji-card:hover .copy-button-overlay-title {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.emoji-card:hover .emoji-name {
    opacity: 0.3;
}
.copy-emoji-btn {
    pointer-events: auto;
}
.copy-emoji-btn::after {
    content: attr(data-copy-text);
    margin-left: 5px;
}
.copy-emoji-btn[data-copy-text=""]::after {
    content: "Copy";
    margin-left: 5px;
}
.copy-emoji-btn:hover {
    background: #0056CC;
    transform: scale(1.05);
}
.copy-emoji-btn:active {
    transform: scale(0.95);
}

/* 肤色选择圆点样式 */
.skin-tone-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 0 4px 0;
    margin-top: -4px;
}

.skin-tone-dot {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #FFD93D;
    outline: none;
}

.skin-tone-dot:hover {
    transform: scale(1.2);
    border-color: #007AFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.skin-tone-dot[data-active="true"],
.skin-tone-dot.active {
    border-color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}

/* 特定肤色的背景色 */
.skin-tone-dot[title*="默认"] { background-color: #FFD93D; }
.skin-tone-dot[title*="浅肤色"] { background-color: #F7D7C4; }
.skin-tone-dot[title*="中浅肤色"] { background-color: #D4A574; }
.skin-tone-dot[title*="中等肤色"] { background-color: #B7956A; }
.skin-tone-dot[title*="中深肤色"] { background-color: #8B6914; }
.skin-tone-dot[title*="深肤色"] { background-color: #5D4037; }

/* 有肤色变体的卡片稍微高一点 */
.emoji-card.has-skin-variants {
    padding-bottom: 8px;
}

/* 手机端调整 */
@media (max-width: 640px) {
    .emoji-name-container {
        min-height: auto;
    }
    
    .copy-button-overlay-title {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        margin-bottom: 20px; /* 增加间距 */
        height: 28px;
    }

    .emoji-card.has-skin-variants .copy-button-overlay-title {
        height: 28px; /* 有变体时较大 */
    }
    
    .emoji-card .emoji-name {
        opacity: 1;
    }
    
    .copy-emoji-btn {
        font-size: 11px;
        min-height: 28px;
    }
    
    .emoji-card .uk-card-body {
        padding-bottom: 12px; /* 增加间距 */
    }
    
    /* 手机端皮肤圆点间距调整 */
    .skin-tone-dots {
        margin-top: 8px; /* 手机端增加更多间距 */
        padding: 8px 0;
    }
}


.em-heading-h2{
	    padding-top: 40px;
    font-size: 20px;
    font-weight: 400;
    position: relative;
    padding-bottom: .5em;
    border-bottom: 4px solid #ccc;
}
.em-heading-h2::after{
	position: absolute;
    bottom: -4px;
    left: 0;
    z-index: 2;
    content: '';
    width: 20%;
    height: 4px;
    background-color: #3498db;
}

/* info card */

#em-sidebar .info-card{
    width:280px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1.1rem;
}
.info-card h2{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1.2rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
}

/* Tooltip样式 */
.tooltip, .temp-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #28a745;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::after, .temp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 4px solid transparent;
    border-top-color: #28a745;
}

.tooltip.show, .temp-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip.error, .temp-tooltip.error {
    background: #dc3545;
}

.tooltip.error::after, .temp-tooltip.error::after {
    border-top-color: #dc3545;
}

/* copy card */
        
.copy-card {
    background:linear-gradient(51deg,#7141f1 50%,#4d6bd8 75%,#3183e2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.copy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.copy-input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px 0 0 4px;
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.copy-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    transition: all 0.2s ease;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0 4px 4px 0;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: scale(1.05);
}

/*platform */
.platform-item {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.platform-emoji{
    font-size: 3.75rem;
}

.platform-emoji img{
    width:4rem;
}

.platform-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

/*combos*/
.combo-item {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.combo-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.combo-emojis {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.combo-desc {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.combo-item .copy-success-tooltip {
    position: absolute;
    bottom: 120%;
    right: 0;
    left: auto;
    transform: none;
    background: #28a745;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.combo-item .copy-success-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 4px solid transparent;
    border-top-color: #28a745;
}

.combo-item .copy-success-tooltip.show {
    opacity: 1;
    visibility: visible;
    bottom: 125%;
}

/* to top */
/* To Top 按钮样式 */
.totop-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.totop-btn.show {
    opacity: 1;
    visibility: visible;
}

.totop-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .totop-btn {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }
}

.ad-container {   
    text-align: center;
    margin: 20px 0;
}