/* ====================================
   Emoji Picker Tool - Professional Styling
   Matches the barcode-generator theme
   ==================================== */

/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #2196F3;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '😊😄😍';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    left: -50px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* Emoji Container */
.emoji-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.emoji-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    padding: 45px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.emoji-header::before {
    content: '🎨';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    top: -20px;
    right: -20px;
}

.emoji-header h2 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.emoji-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.emoji-body {
    padding: 40px 30px;
}

/* Controls Section */
.emoji-controls-section {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
}

.emoji-controls-section h3 {
    color: #E65100;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Search Box */
.emoji-search-wrapper {
    margin-bottom: 25px;
}

.emoji-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 3px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: white;
    transition: all 0.3s;
}

.emoji-search-input:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.1);
}

.emoji-search-input::placeholder {
    color: #999;
    font-weight: 500;
}

/* Category Filters */
.emoji-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 152, 0, 0.3);
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #FF9800;
    color: #FF9800;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Emoji Grid Section */
.emoji-grid-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 3px solid #E3F2FD;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 10px;
    padding: 20px;
    border-radius: 15px;
    background: #f8f9fa;
    max-height: 500px;
    overflow-y: auto;
    border: 2px dashed #FF9800;
}

.emoji-grid::-webkit-scrollbar {
    width: 10px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-radius: 10px;
}

.emoji-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s;
    user-select: none;
}

.emoji-tile:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
    border-color: #FF6B6B;
    z-index: 10;
}

.emoji-tile:focus {
    outline: 3px solid rgba(255, 107, 107, 0.5);
    outline-offset: 2px;
    transform: translateY(-5px) scale(1.1);
}

/* Preview Panel */
.emoji-preview-panel {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
}

.emoji-preview-panel h3 {
    color: #1976D2;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.preview-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 3px solid rgba(33, 150, 243, 0.3);
}

.preview-emoji {
    font-size: 120px;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.preview-name {
    font-weight: 700;
    color: #1976D2;
    font-size: 18px;
    text-transform: capitalize;
}

/* Action Buttons */
.emoji-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.primary {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn.secondary {
    background: white;
    color: #FF6B6B;
    border: 3px solid #FF6B6B;
}

.btn.secondary:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notice Message */
.notice {
    min-height: 24px;
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.1);
    font-weight: 600;
}

/* Bulk Actions Section */
.emoji-bulk-section {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.15);
}

.emoji-bulk-section h3 {
    color: #7B1FA2;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.emoji-bulk-section p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.bulk-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.bulk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

/* Info Box */
.emoji-info-box {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 5px solid #FF9800;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.emoji-info-box h4 {
    color: #E65100;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
}

.info-item strong {
    color: #E65100;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Keyboard Shortcuts Box */
.keyboard-shortcuts {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    margin-top: 15px;
}

.keyboard-shortcuts h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.shortcuts-list {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.shortcuts-list kbd {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results-icon {
    font-size: 72px;
    margin-bottom: 15px;
}

.no-results h4 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.no-results p {
    color: #999;
    font-size: 14px;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #FF6B6B;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
}

/* Notification */
.emoji-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 16px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
        gap: 8px;
    }
    
    .emoji-tile {
        height: 48px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }

    .emoji-header h2 {
        font-size: 28px;
    }
    
    .emoji-body {
        padding: 30px 20px;
    }
    
    .emoji-controls-section,
    .emoji-grid-section,
    .emoji-preview-panel,
    .emoji-bulk-section {
        padding: 25px 20px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
        gap: 6px;
        max-height: 400px;
    }
    
    .emoji-tile {
        height: 44px;
        font-size: 22px;
    }
    
    .preview-emoji {
        font-size: 80px;
    }
    
    .emoji-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .emoji-header {
        padding: 35px 20px;
    }
    
    .emoji-header h2 {
        font-size: 24px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        padding: 12px;
        max-height: 350px;
    }
    
    .emoji-tile {
        height: 40px;
        font-size: 20px;
    }
    
    .preview-emoji {
        font-size: 64px;
    }
    
    .emoji-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}