/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 *
 * @package    Emojis_For_Posts_And_Pages
 * @subpackage Emojis_For_Posts_And_Pages/public/css
 * @since      1.0.0
 */

.emojfopo-container {
    display: block;
    clear: both;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.emojfopo-container.floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 10px 15px;
    margin: 0;
    max-width: 300px;
}

.emojfopo-title {
    margin-right: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.emojfopo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emojfopo-reaction-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    padding: 8px;
    border-radius: 50px;
    background: #f5f5f5;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.emojfopo-reaction-button:hover {
    background: #e9e9e9;
    transform: scale(1.05);
}

.emojfopo-reaction-button.active {
    border-color: #4e9ef8;
    background: #f0f7ff;
}

.emojfopo-reaction-button .emoji {
    font-size: 24px;
    line-height: 1;
    font-family: 'Noto Color Emoji', sans-serif;
}

.emojfopo-reaction-button .count {
    font-size: 12px;
    margin-top: 3px;
    color: #666;
}

/* Reaction name styling removed */

.emojfopo-message {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    width: 100%;
    text-align: center;
}

/* Special styling for archive/blog list pages */
.archive .emojfopo-container,
.blog .emojfopo-container,
.home .emojfopo-container {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    display: block;
    width: 100%;
    clear: both;
    border-top: 1px solid #eee;
}

/* Animation for reaction */
@keyframes reaction-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.emojfopo-reaction-button.reacting .emoji {
    animation: reaction-pulse 0.3s ease-in-out;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .emojfopo-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .emojfopo-title {
        margin-bottom: 10px;
    }
    
    .emojfopo-container.floating {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
    }
}
