/* 
 * Pet Name Generator - Shared Styles
 * Beautiful, modern UI with animations and gradients
 */

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Fade Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Button Press Effect */
.button-press {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Paw Print Background Pattern */
.paw-pattern {
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(255, 107, 157, 0.05) 10px, transparent 10px),
        radial-gradient(circle at 60px 60px, rgba(255, 158, 101, 0.05) 10px, transparent 10px);
    background-size: 80px 80px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.bounce-hover:hover {
    animation: bounce 0.5s ease-in-out;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffa06b 50%, #c781ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
}

/* Cute Button */
.cute-button {
    position: relative;
    overflow: hidden;
}

.cute-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cute-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Heart Beat Animation */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(0.9); }
    20%, 40%, 60%, 80% { transform: scale(1.1); }
    50%, 70% { transform: scale(1.05); }
}

.heart-beat:hover {
    animation: heartbeat 1.3s ease-in-out infinite;
}

/* Pet Type Specific Colors */
.dog-gradient {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fa3 100%);
}

.cat-gradient {
    background: linear-gradient(135deg, #c781ff 0%, #9d6fff 100%);
}

.bird-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.fish-gradient {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.horse-gradient {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

