* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-container h1 {
    font-size: 1.8rem;
    color: #4a5568;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

#keyword-input {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: box-shadow 0.3s ease;
}

#keyword-input:focus {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

#generate-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

/* Content Section */
.content-section {
    background: white;
    margin-top: 2rem;
    border-radius: 20px 20px 0 0;
    min-height: 80vh;
}

.breadcrumb {
    padding: 1rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

/* Page Header */
.page-header {
    padding: 2rem 0;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.copy-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.emoji-display {
    font-size: 4rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 15px;
    min-width: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
}

.copy-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Multiple Copy Section */
.multiple-copy-section {
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.multiple-copy-section h2 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.number-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.number-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.number-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.number-btn.highlighted {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    font-weight: 700;
    border: 2px solid #fff;
}

.number-btn.highlighted:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.main-content h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.content-block {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    line-height: 1.8;
    border: 1px solid #e2e8f0;
}

/* Sidebar */
.sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.internal-links {
    margin-bottom: 2rem;
}

.internal-links ul {
    list-style: none;
}

.internal-links li {
    margin-bottom: 0.5rem;
}

.internal-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.internal-links a:hover {
    color: #4c51bf;
    text-decoration: underline;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.emoji-item {
    padding: 0.8rem;
    text-align: center;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: 2px solid transparent;
}

.emoji-item:hover {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Emoji links styling */
a.emoji-item {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

a.emoji-item:hover {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

a.emoji-item:visited {
    color: inherit;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Success Animation */
.copy-success {
    background: linear-gradient(45deg, #48bb78, #38a169) !important;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    #keyword-input {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .number-buttons {
        justify-content: center;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
