.emoji-detail {
    max-width: 800px;
    margin: 100px auto 2rem;
    padding: 0 2rem;
}

.emoji-header {
    text-align: center;
    margin-bottom: 3rem;
}

.emoji-display {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    max-width: 100%;
    min-height: 100px;
    overflow-x: hidden;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.emoji-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    margin: 0.5rem;
    position: relative;
}

.emoji-display span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    min-height: 45px;
    padding: 0.4rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.emoji-display span:hover {
    transform: scale(1.1);
    background-color: #e9ecef;
}

/* Native tooltip styles */
.emoji-display span[title] {
    position: relative;
}

.emoji-display span[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
}

.emoji-display span[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -10px;
    z-index: 1000;
}

.emoji-header h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.emoji-info {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    list-style: none;
}

.emoji-info li {
    margin-bottom: 1rem;
}

.emoji-info li:last-child {
    margin-bottom: 0;
}

.emoji-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.emoji-content {
    font-size: 2rem;
    line-height: 1.5;
    word-wrap: break-word;
    text-align: center;
}

.copy-button {
    text-align: center;
    margin: 2rem 0;
}

.copy-button button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-button button:hover {
    background-color: var(--secondary-color);
}

.emoji-info {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.emoji-info h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.emoji-info p {
    margin: 1rem 0;
    line-height: 1.6;
}

.emoji-info ul, .emoji-info ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.emoji-info li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.emoji-copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.emoji-copy-btn:hover {
    background-color: #357abd;
}

.emoji-copy-btn.copied {
    background-color: #4CAF50;
}

.copy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.copy-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emoji-detail {
        padding: 0 1rem;
    }

    .emoji-display {
        font-size: 2.5rem;
    }

    .emoji-header h2 {
        font-size: 1.5rem;
    }
}

/* Special styles for popular emojis page */
.popular-emojis .emoji-display {
    font-size: 2rem;
    padding: 1.5rem;
    gap: 0.5rem;
}

.popular-emojis .emoji-display span {
    min-width: 40px;
    min-height: 40px;
    padding: 0.3rem;
}
