/* Baby Name Generator Styles */
.bng-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: #333;
    position: relative;
    overflow: hidden;
}

.bng-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* SEO Content Styles */
.bng-seo-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.bng-seo-content h2 {
    color: #5a67d8;
    margin-bottom: 15px;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bng-seo-content h2 i {
    color: #ff6b6b;
    margin-right: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.bng-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.bng-feature {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bng-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.bng-feature:hover::before {
    left: 100%;
}

.bng-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.bng-feature i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.bng-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Generator Form Styles */
.bng-generator {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.bng-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bng-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.bng-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bng-form-group-full {
    grid-column: 1 / -1;
}

.bng-form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bng-form-group label i {
    color: #667eea;
    width: 16px;
}

.bng-form-group select,
.bng-form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.bng-form-group select:focus,
.bng-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.bng-generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.bng-generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.bng-generate-btn:hover::before {
    left: 100%;
}

.bng-generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.bng-generate-btn:active {
    transform: translateY(-1px);
}

/* Loading Animation */
.bng-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
}

.bng-loading i {
    font-size: 2rem;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Styles */
.bng-results {
    margin-top: 30px;
}

.bng-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.bng-results-header h3 {
    font-size: 2rem;
    color: #5a67d8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bng-results-header h3 i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.bng-names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.bng-name-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    opacity: 0;
    overflow: hidden;
}

.bng-name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bng-name-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.bng-name-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.bng-name-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bng-name-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bng-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.bng-badge-boy {
    background: linear-gradient(45deg, #4299e1, #63b3ed);
    color: white;
}

.bng-badge-girl {
    background: linear-gradient(45deg, #ed64a6, #f687b3);
    color: white;
}

.bng-badge-unisex {
    background: linear-gradient(45deg, #9f7aea, #b794f6);
    color: white;
}

.bng-badge-popularity {
    background: linear-gradient(45deg, #f6ad55, #fbb042);
    color: white;
}

.bng-name-details {
    margin-bottom: 20px;
}

.bng-name-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bng-name-detail:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.bng-name-detail i {
    color: #667eea;
    margin-top: 2px;
    width: 16px;
    flex-shrink: 0;
}

.bng-name-detail span {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bng-name-actions {
    display: flex;
    gap: 10px;
}

.bng-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.bng-btn-favorite {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.bng-btn-favorite:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.bng-btn-favorited {
    background: linear-gradient(45deg, #48bb78, #38a169) !important;
}

.bng-btn-share {
    background: linear-gradient(45deg, #4299e1, #3182ce);
    color: white;
}

.bng-btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.bng-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bng-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Results Summary */
.bng-results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    margin-top: 20px;
}

.bng-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 20px;
    font-weight: 600;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.bng-summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bng-summary-item i {
    color: #667eea;
}

/* No Results & Error States */
.bng-no-results,
.bng-error {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.bng-no-results-icon,
.bng-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.bng-no-results-icon i {
    color: #a0aec0;
}

.bng-error-icon i {
    color: #f56565;
}

.bng-no-results h3,
.bng-error h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.bng-no-results ul {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
    color: #4a5568;
}

/* SEO Footer */
.bng-seo-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.bng-seo-footer h3,
.bng-seo-footer h4 {
    color: #5a67d8;
    margin-bottom: 15px;
}

.bng-seo-footer ul {
    color: #4a5568;
    line-height: 1.6;
}

.bng-seo-footer ul li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bng-container {
        padding: 15px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .bng-seo-content,
    .bng-generator,
    .bng-seo-footer {
        padding: 20px;
    }
    
    .bng-seo-content h2 {
        font-size: 2rem;
    }
    
    .bng-form-row {
        grid-template-columns: 1fr;
    }
    
    .bng-names-grid {
        grid-template-columns: 1fr;
    }
    
    .bng-name-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .bng-name-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .bng-results-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .bng-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bng-seo-content h2 {
        font-size: 1.5rem;
    }
    
    .bng-name-card {
        padding: 20px;
    }
    
    .bng-name-title {
        font-size: 1.5rem;
    }
    
    .bng-name-actions {
        flex-direction: column;
    }
}