/* Emoji Picker Modal - Стилі для модального вікна */

/* Overlay */
.emoji-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease-out;
}

.emoji-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.emoji-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.emoji-modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px 16px 0 0;
}

.emoji-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.emoji-modal-title i {
    color: #3b82f6;
}

.emoji-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emoji-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

/* Categories */
.emoji-categories {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.emoji-category-btn {
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-category-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.emoji-category-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Emoji Grid */
.emoji-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.emoji-grid::-webkit-scrollbar {
    width: 8px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.emoji-item {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-item:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    z-index: 1;
}

.emoji-item:active {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 640px) {
    .emoji-modal-content {
        width: 95%;
        max-height: 80vh;
    }

    .emoji-modal-header {
        padding: 16px 20px;
    }

    .emoji-modal-title {
        font-size: 18px;
    }

    .emoji-categories {
        padding: 12px 16px;
    }

    .emoji-category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .emoji-grid {
        padding: 16px;
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
        gap: 6px;
    }

    .emoji-item {
        font-size: 24px;
    }
}

