/* Random Emoji Generator Styles */

/* Main Container - Full Page Layout */
.emoji-generator-tool {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
    margin: 0;
}

.emoji-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: rgb(36, 32, 32);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-description {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Main Emoji Display Section */
.emoji-display-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.current-emoji-display {
    margin-bottom: 2rem;
}

.emoji-character {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.emoji-character:hover {
    transform: scale(1.1);
}

.emoji-info {
    max-width: 500px;
    margin: 0 auto;
}

.emoji-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.emoji-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.emoji-unicode {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--secondary-color);
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Action Buttons */
.emoji-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.generate-btn, .copy-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.generate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 146, 109, 0.3);
}

.copy-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: var(--white);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Category Filter Section */
.filter-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-btn {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(50, 146, 109, 0.3);
}

/* Recent Emojis Section */
.recent-section {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recent-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.recent-emojis {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    min-height: 80px;
    align-items: center;
}

.recent-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.recent-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.recent-emoji {
    font-size: 2.5rem;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
    border: 2px solid transparent;
}

.recent-emoji:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(50, 146, 109, 0.3);
}

/* Copy Success Message */
.copy-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-message.show {
    opacity: 1;
    visibility: visible;
}

/* Loading Animation */
.generate-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.generate-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.mr-2 { margin-right: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.text-center { text-align: center; }

/* Enhanced Hover Effects */
.generate-btn:active, .copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.recent-emoji:active {
    transform: scale(1.05);
}

/* Improved Focus States for Accessibility */
.generate-btn:focus, .copy-btn:focus, .category-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.recent-emoji:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Enhanced Animation for Emoji Display */
.emoji-character.animate {
    animation: emojiPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes emojiPop {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Improved Copy Message Animation */
.copy-message {
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.copy-message.show {
    animation-name: copyMessageShow;
}

@keyframes copyMessageShow {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

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

    .tool-header h1 {
        font-size: 2rem;
    }

    .emoji-display-section {
        padding: 2rem 1.5rem;
    }

    .emoji-character {
        font-size: 6rem;
    }

    .emoji-name {
        font-size: 1.5rem;
    }

    .emoji-actions {
        flex-direction: column;
        align-items: center;
    }

    .generate-btn, .copy-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .category-filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .category-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .filter-section, .recent-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .emoji-character {
        font-size: 5rem;
    }

    .tool-header h1 {
        font-size: 1.75rem;
    }

    .tool-description {
        font-size: 1rem;
    }

    .copy-message {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .emoji-generator-tool {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .emoji-display-section, .filter-section, .recent-section {
        background: #2d3748;
        color: #e2e8f0;
    }

    .emoji-name {
        color: #e2e8f0;
    }

    .emoji-description {
        color: #a0aec0;
    }

    .emoji-unicode {
        background: #4a5568;
        color: #e2e8f0;
    }

    .category-btn {
        background: #4a5568;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .category-btn:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .recent-emoji {
        background: #4a5568;
    }
}
