/* Custom Styles for FotoSphere Collective */

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

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Photo card hover effects */
.photo-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Drop zone styling */
#dropZone.dragover {
    border-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.1);
}

/* Theme transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(45deg, #22d3ee, #a855f7, #22d3ee);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive image grid */
.image-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Dark mode specific styles */
.dark .photo-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.light .photo-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

/* Button focus states */
.btn-focus:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}