/* Custom styles for the baby names page */
.name-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.name-card {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 2px solid #374151;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.name-card:active {
    transform: translateY(0);
}

.name-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0;
    position: relative;
    z-index: 2;
}

.name-card.copied {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: copyPulse 0.6s ease-out;
}

.name-card.copied .name-text {
    color: white;
}

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

.controls-section {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f3f4f6;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #374151;
    border-radius: 8px;
    background-color: #1f2937;
    color: #f3f4f6;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.loading-animation {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff40;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

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

.results-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.copy-tooltip.show {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 1024px) {
    .name-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .name-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 1.5rem auto;
    }
    
    .name-card {
        padding: 1rem;
        min-height: 70px;
    }
    
    .name-text {
        font-size: 1.1rem;
    }
    
    .controls-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .name-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .name-card {
        padding: 0.875rem;
        min-height: 65px;
    }
    
    .name-text {
        font-size: 1rem;
    }
} 