/* PetChamp - Custom Styles */

/* Global styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Enhanced gradients and animations */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pet-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pet-card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7C3AED, #0891B2);
}

/* Loading animations */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Pet type icons animation */
.pet-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.pet-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Competition status badges */
.status-badge {
    position: relative;
    overflow: hidden;
}

.status-badge::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;
}

.status-badge:hover::before {
    left: 100%;
}

/* Mobile responsiveness enhancements */
@media (max-width: 768px) {
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .mobile-hide {
        display: none;
    }
}

/* Prize styling */
.prize-glow {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.prize-first {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
}

.prize-second {
    background: linear-gradient(135deg, #E5E7EB, #9CA3AF);
}

.prize-third {
    background: linear-gradient(135deg, #FED7AA, #FB923C);
}

/* Vote button animation */
.vote-btn {
    position: relative;
    overflow: hidden;
}

.vote-btn::after {
    content: '❤️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.vote-btn:active::after {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Global leaderboard styling */
.rank-1 {
    background: linear-gradient(135deg, #FEF3C7, #FCD34D);
    border-left: 4px solid #F59E0B;
}

.rank-2 {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-left: 4px solid #9CA3AF;
}

.rank-3 {
    background: linear-gradient(135deg, #FED7AA, #FDBA74);
    border-left: 4px solid #FB923C;
}

/* Image loading placeholder */
.img-placeholder {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Success/Error message styling */
.success-message {
    background: linear-gradient(135deg, #D1FAE5, #10B981);
    color: #065F46;
    border: 1px solid #10B981;
}

.error-message {
    background: linear-gradient(135deg, #FEE2E2, #EF4444);
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* Multi-language support indicators */
.lang-flag {
    font-size: 1.2em;
    margin-right: 0.5em;
}

/* Progressive Web App styles */
.pwa-install {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.pwa-install.show {
    transform: translateY(0);
}

.pwa-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Competition modal enhancements */
.modal-backdrop {
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Tournament bracket styles */
.bracket-match {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.bracket-match:hover {
    border-color: #8B5CF6;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.bracket-match.winner {
    border-color: #10B981;
    background: linear-gradient(135deg, #D1FAE5, #ECFDF5);
}

/* Statistics counter animation */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Photo quality indicators */
.photo-quality-high {
    border: 3px solid #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.photo-quality-medium {
    border: 3px solid #F59E0B;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.photo-quality-low {
    border: 3px solid #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Social sharing buttons */
.social-share {
    background: transparent;
    border: 2px solid currentColor;
    color: #6B7280;
    transition: all 0.3s ease;
}

.social-share:hover {
    background: currentColor;
    color: white;
    transform: translateY(-2px);
}

.social-share.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-share.instagram:hover { background: #E4405F; border-color: #E4405F; }
.social-share.twitter:hover { background: #1DA1F2; border-color: #1DA1F2; }
.social-share.tiktok:hover { background: #000000; border-color: #000000; }

/* Loading states for images */
.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    .dark-mode-bg {
        background: linear-gradient(135deg, #1F2937, #374151);
    }
    
    .dark-mode-text {
        color: #F9FAFB;
    }
    
    .dark-mode-card {
        background: rgba(31, 41, 55, 0.8);
        border-color: #4B5563;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-full-width {
        width: 100% !important;
    }
}

/* Accessibility improvements */
.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .high-contrast {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}