/* Photo Gallery Styles */
/* Fix Gallery Image Sizing */
/* Mobile enhancements and fixes for MakPixel */
/* Add this to your style.css */

/* Enhanced upload form styling */
.upload-form {
    transition: all 0.3s ease;
}

.upload-form.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

/* File input enhancements */
.file-input-wrapper {
    position: relative;
}

.file-input {
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.file-input:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

/* Upload preview enhancements */
.upload-preview {
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.3s ease;
}

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

/* Progress bar styling */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-bar.complete {
    background: linear-gradient(45deg, #28a745, #20c997);
}

/* Enhanced notification system */
.notification {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 10px 0;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #d4edda;
}

.notification.error {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #f8d7da;
}

.notification.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #fff3cd;
}

/* Enhanced gallery photo cards */
.photo-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(78, 205, 196, 0.3);
}

.photo-preview {
    position: relative;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    border-radius: 15px 15px 0 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain; max-height: 300px;
    transition: transform 0.4s ease;
}

.photo-preview:hover img {
    transform: scale(1.08);
}

/* Image Viewer Zoom Controls */
.zoom-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.zoom-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}
.zoom-btn.active {
    background: rgba(102, 126, 234, 0.8);
}

/* Enhanced photo stats overlay */
.photo-stats {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 15;
    pointer-events: none;
}

@media (max-width: 768px) {
    .photo-stats {
    }
}

@media (max-width: 768px) {
    .photo-stats {
    }
}
.photo-actions {
            display: flex;
            gap: 15px;
            margin-top: 25px;
        }

.fullsize-action-btn, .share-action-btn {
	flex: 1;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.fullsize-action-btn {
	background: #667eea;
	color: white;
}

.share-action-btn {
	background: #f8f9fa;
	color: #333;
	border: 2px solid #e9ecef;
}

.fullsize-action-btn:hover {
	background: #5a6fd8;
	transform: translateY(-2px);
}

.share-action-btn:hover {
	background: #e9ecef;
	transform: translateY(-2px);
}
.stat-item {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.view-count {
    color: #4ecdc4;
}

.like-count {
    color: #ff6b6b;
}

/* Enhanced photo info section */
.photo-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-item .emoji {
    font-size: 0.9rem;
}

.photo-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-tag {
    background: linear-gradient(45deg, #4ecdc4, #45b7b8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Enhanced action buttons */
.photo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.like-btn {
    background: none;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    justify-content: center;
}

.like-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.05);
}

.like-btn.liked {
    background: #ff6b6b;
    color: white;
    border-color: #ff4757;
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.download-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.download-btn:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4c93);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.like-count-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    min-width: 20px;
}
/* Copy just the parts you want from the artifact CSS */
.modern-photo-card {
    transition: all 0.3s ease;
    border-radius: 20px;
}

.modern-photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    /* Mobile navigation improvements */
    .nav {
        padding: 15px 4%;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .user-section {
        gap: 10px;
    }
    
    .user-details {
        display: none;
    }
    
    /* Mobile modal improvements */
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    /* Mobile upload form */
    .upload-section {
        padding: 30px 0;
    }
    
    .upload-section > div {
        margin: 0 10px;
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-input {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px;
    }
    
    /* Mobile gallery */
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .photo-preview {
        height: 280px;
    }
    
    .photo-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .like-btn, .download-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        min-height: 44px;
    }
    
    /* Mobile hero section */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
        padding: 15px;
    }
    
    .photo-preview {
        height: 250px;
    }
    
    .stat-item {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Loading states */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.photo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    gap: 10px;
}

/* Enhanced form validation styles */
.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.form-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-success {
    color: #28a745;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Focus styles for keyboard navigation */
.nav-links a:focus,
.auth-btn:focus,
.like-btn:focus,
.download-btn:focus,
.form-input:focus,
.submit-btn:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-preview {
    position: relative;
    height: 220px !important;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.photo-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-preview img {
    transform: scale(1.05);
}
/* View and Like counters overlay */
.photo-stats {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 15;
    pointer-events: none;
}

@media (max-width: 768px) {
    .photo-stats {
    }
}

@media (max-width: 768px) {
    .photo-stats {
    }
}

.stat-item {
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 6px 10px !important;
    border-radius: 15px !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-width: 50px !important;
    justify-content: center !important;
}

.view-count {
    color: #4ecdc4 !important;
    background: rgba(78, 205, 196, 0.2) !important;
}

.like-count {
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.2) !important;
}

.like-btn {
    background: none !important;
    border: 2px solid #ff6b6b !important;
    color: #ff6b6b !important;
    cursor: pointer !important;
    padding: 10px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    font-size: 1.2rem !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.like-btn:hover {
    background: rgba(255, 107, 107, 0.2) !important;
    transform: scale(1.1) !important;
}

.like-btn.liked {
    background: #ff6b6b !important;
    color: white !important;
    border-color: #ff4757 !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .photo-preview {
        height: 200px !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 16px !important;
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .photo-preview {
        height: 180px !important;
    }
}
.photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-preview {
    cursor: pointer;
    position: relative;
}

.photo-info {
    padding: 15px;
}

.photo-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.photo-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.photo-tags {
    margin-bottom: 10px;
}

.tag {
    background: #f0f2ff;
    color: #667eea;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 5px;
}

.photo-stats {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 15;
    pointer-events: none;
}

@media (max-width: 768px) {
    .photo-stats {
    }
}

@media (max-width: 768px) {
    .photo-stats {
    }
}

.quality-score {
    color: #f59e0b;
    font-weight: 600;
}

.photo-price {
    margin-bottom: 15px;
}

.price {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.earnings {
    display: block;
    font-size: 0.75rem;
    color: #10b981;
}

.photo-actions {
    display: flex;
    gap: 10px;
}

.download-btn, .like-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.download-btn:hover {
    transform: translateY(-1px);
}

.like-btn {
    background: #f3f4f6;
    color: #374151;
}

.like-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal Styles */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px;
}

.modal-image {
    text-align: center;
}

.modal-info {
    padding: 20px;
}

.photo-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.photo-details p {
    margin-bottom: 8px;
}

.photo-tags-full, .seo-keywords {
    margin-top: 15px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.download-btn-large, .like-btn-large {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.download-btn-large {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.like-btn-large {
    background: #f3f4f6;
    color: #374151;
}

/* Loading and empty states */
.loading-state, .empty-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .photo-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
}
/* Modern Gallery Styles - Mobile Optimized */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.photo-preview {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain; max-height: 300px;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-preview img {
    transform: scale(1.05);
}

.photo-info {
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.photo-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #718096;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item .emoji {
    font-size: 0.9rem;
}

.photo-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.price-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.file-size {
    background: #f7fafc;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Full-size Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.modal-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    color: #4a5568;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-close {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-close:hover {
    background: #cbd5e0;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4a5568;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: white;
    transform: scale(1.1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
        padding: 16px;
    }
    
    .photo-card {
        border-radius: 12px;
    }
    
    .photo-preview {
        height: 200px;
    }
    
    .photo-info {
        padding: 12px;
    }
    
    .photo-title {
        font-size: 0.95rem;
    }
    
    .photo-meta {
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .download-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
        margin: 1vh;
    }
    
    .modal-info {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .photo-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .photo-price {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Loading Animation */
.photo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #718096;
    font-size: 0.9rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Full-size button styling */
.btn-fullsize {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-fullsize:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669, #047857);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
        gap: 40px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 80%;
        text-align: center;
    }
    
/* Fix navigation text visibility */
	.nav-links a {
		color: #ffffff !important;
		text-decoration: none;
		font-weight: 500;
		transition: all 0.3s ease;
		cursor: pointer;
		padding: 8px 16px;
		border-radius: 20px;
	}

	.nav-links a:hover {
		color: #4ecdc4 !important;
		background: rgba(78, 205, 196, 0.1);
	}

	/* Ensure user info is visible */
	.username {
		color: #ffffff !important;
		font-size: 0.9rem;
		font-weight: 600;
	}

	.user-stats {
		color: #4ecdc4 !important;
		font-size: 0.8rem;
	}
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: white;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
}

/* Mobile Navigation Fix */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: white;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column !important;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
        gap: 30px !important;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 80%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        font-size: 1.2rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .user-section {
        gap: 15px;
    }
}

/* Desktop - hide hamburger */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}
/* VIEW AND LIKE COUNTERS - ESSENTIAL FOR DISPLAYING COUNTERS */
.photo-stats {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 15;
    pointer-events: none;
}

@media (max-width: 768px) {
    .photo-stats {
    }
}

@media (max-width: 768px) {
    .photo-stats {
    }
}

.stat-item {
	background: rgba(0, 0, 0, 0.8) !important;
	padding: 6px 10px !important;
	border-radius: 15px !important;
	font-size: 0.85rem !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	backdrop-filter: blur(10px) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	min-width: 50px !important;
	justify-content: center !important;
}

.view-count {
	color: #4ecdc4 !important;
	background: rgba(78, 205, 196, 0.2) !important;
}

.like-count {
	color: #ff6b6b !important;
	background: rgba(255, 107, 107, 0.2) !important;
}

.like-btn {
	background: none !important;
	border: 2px solid #ff6b6b !important;
	color: #ff6b6b !important;
	cursor: pointer !important;
	padding: 10px !important;
	border-radius: 50% !important;
	transition: all 0.3s ease !important;
	font-size: 1.2rem !important;
	width: 45px !important;
	height: 45px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.like-btn:hover {
	background: rgba(255, 107, 107, 0.2) !important;
	transform: scale(1.1) !important;
}

.like-btn.liked {
	background: #ff6b6b !important;
	color: white !important;
	border-color: #ff4757 !important;
}

.like-count-text {
	color: #ff6b6b;
	font-weight: 600;
	font-size: 0.9rem;
}

.photo-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
}

.download-btn {
	background: linear-gradient(45deg, #667eea, #764ba2);
	border: none;
	color: white;
	padding: 12px 20px;
	border-radius: 25px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	justify-content: center;
	max-width: 200px;
}

.download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
/* AI Upload Enhancement Styles */
.ai-suggestions {
    margin: 20px 0;
}

.ai-loading-card,
.ai-results-card,
.ai-error-card {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(102, 126, 234, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ai-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4ecdc4;
    font-size: 1.2rem;
    margin: 0;
}

.ai-icon {
    font-size: 1.5rem;
}

.ai-confidence {
    background: rgba(78, 205, 196, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4ecdc4;
    font-weight: 600;
}

.ai-loading {
    text-align: center;
    padding: 30px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(78, 205, 196, 0.3);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 10px;
}

.suggestion-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.suggestion-header label {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 0.9rem;
}

.apply-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7b8);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.suggestion-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.safety-score {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.safety-excellent { background: rgba(46, 213, 115, 0.2); color: #2ed573; }
.safety-good { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.safety-warning { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.safety-danger { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }

.safety-warning {
    color: #ff9800;
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 6px;
}

.ai-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.apply-all-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.apply-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.dismiss-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.error-content {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.error-content p {
    margin-bottom: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-loading-card,
    .ai-results-card,
    .ai-error-card {
        padding: 15px;
        margin: 15px 0;
    }
    
    .suggestion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ai-actions {
        flex-direction: column;
    }
    
    .apply-all-btn,
    .dismiss-btn {
        max-width: 100%;
    }
}

/* Mobile responsive for counters */
@media (max-width: 768px) {
	.photo-stats {
	}
	
	.stat-item {
		padding: 4px 8px !important;
		font-size: 0.8rem !important;
		min-width: 45px !important;
	}
	
	.like-btn {
		width: 40px !important;
		height: 40px !important;
		font-size: 1rem !important;
	}
	
}
/* Upload form visibility fix */
.upload-form.show {
    display: block !important;
}

/* AI suggestions styling */
.ai-suggestions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.ai-results-card, .ai-loading-card, .ai-error-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-icon {
    font-size: 1.5rem;
}

.suggestion-item {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.apply-btn, .apply-all-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7b8);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover, .apply-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3);
}

.dismiss-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tags .tag {
    display: inline-block;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px;
}

.ai-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Enhanced AI Analysis Styles for Stock Photography Platform */

/* Landmark detection specific styles */
.landmark-info {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.landmark-highlight {
    color: #FFD700;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* AI confidence and badges */
.ai-confidence {
    display: flex;
    gap: 10px;
    align-items: center;
}

.confidence-badge {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.landmark-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Enhanced suggestion items */
.title-suggestion {
    border-left: 3px solid #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.suggestion-item {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.suggestion-header label {
    font-weight: 600;
    color: #4ecdc4;
    font-size: 0.9rem;
}

/* SEO filename display */
.seo-filename {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.seo-filename code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
}

/* Technical data grid */
.technical-data {
    border-left: 3px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.tech-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-value {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

/* Quality assessment */
.quality-assessment {
    border-left: 3px solid #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.quality-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.quality-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.safety-score {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.safety-excellent {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.safety-good {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.safety-warning {
    background: rgba(255, 133, 27, 0.2);
    color: #fd7e14;
}

.safety-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.viability-score {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.viability-high {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.viability-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.viability-low {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Enhanced action buttons */
.apply-all-btn.premium {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.apply-all-btn.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFA500, #FFD700);
}

.apply-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7b8);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3);
    background: linear-gradient(45deg, #45b7b8, #4ecdc4);
}

/* Filename preview */
.filename-preview {
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 184, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    animation: slideInUp 0.3s ease;
}

.filename-preview-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filename-icon {
    font-size: 1.2rem;
}

.filename-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.filename-text strong {
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.filename-edit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.filename-edit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced tags display */
.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.suggestion-tags .tag {
    display: inline-block;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.suggestion-tags .tag:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: scale(1.05);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for enhanced features */
@media (max-width: 768px) {
    .technical-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .quality-item {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .filename-preview-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .apply-all-btn.premium {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .landmark-highlight {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Loading states for enhanced AI */
.ai-loading-enhanced {
    text-align: center;
    padding: 30px;
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 10px;
}

.loading-spinner-enhanced {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(78, 205, 196, 0.3);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text-enhanced {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Success animations */
.ai-success-animation {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Enhanced notification for AI features */
.notification.ai-enhanced {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(78, 205, 196, 0.1));
    border-left: 4px solid #FFD700;
    color: #FFD700;
}

.notification.ai-enhanced::before {
    content: "🤖 ";
    font-size: 1.2rem;
}

/* UI Visibility Fixes */
.photo-info {
    background: rgba(26, 26, 26, 0.95) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

.photo-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-meta, .meta-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.stat-item {
    background: rgba(0, 0, 0, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.view-count {
    color: #4ecdc4 !important;
    font-weight: 600;
}

.like-count {
    color: #ff6b6b !important;
    font-weight: 600;
}

.file-size {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
}

.like-count-text {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 10px;
}

/* UI Visibility Fixes */
.photo-info {
    background: rgba(26, 26, 26, 0.95) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

.photo-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-meta, .meta-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.stat-item {
    background: rgba(0, 0, 0, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.view-count {
    color: #4ecdc4 !important;
    font-weight: 600;
}

.like-count {
    color: #ff6b6b !important;
    font-weight: 600;
}

.file-size {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
}

.like-count-text {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 10px;
}

/* CRITICAL UI VISIBILITY FIXES */
.photo-info {
    background: rgba(26, 26, 26, 0.95) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

.photo-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-meta, .meta-item {
    color: rgba(255, 255, 255, 0.8) !important;
}

.stat-item {
    background: rgba(0, 0, 0, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.view-count {
    color: #4ecdc4 !important;
    font-weight: 600;
}

.like-count {
    color: #ff6b6b !important;
    font-weight: 600;
}

.file-size {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
}

.like-count-text {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 10px;
}

/* MODAL TEXT VISIBILITY FIXES */
.image-modal {
    background: rgba(0, 0, 0, 0.95) !important;
}

.image-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.modal-title {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-meta {
    color: rgba(255, 255, 255, 0.9) !important;
}

.modal-meta strong {
    color: #4ecdc4 !important;
}

.modal-meta div {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 8px 0;
}

/* SOCIAL SHARING BUTTONS */
.social-share-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-share-title {
    color: #4ecdc4;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn-telegram {
    background: linear-gradient(45deg, #0088cc, #0099dd);
    color: white;
}

.social-btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
}

.social-btn-twitter {
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
    color: white;
}

.social-btn-copy {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

.social-btn-copy.copied {
    background: linear-gradient(45deg, #28a745, #20c997);
}

/* COPY LINK NOTIFICATION */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 10000;
    animation: copyNotification 2s ease;
}

@keyframes copyNotification {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* PERMALINK DISPLAY */
.permalink-container {
    margin: 15px 0;
    padding: 12px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.permalink-label {
    color: #4ecdc4;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permalink-url {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-break: break-all;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .social-share-buttons {
        gap: 8px;
    }
    
    .social-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .image-modal .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .social-share-container {
        margin: 15px 0;
        padding: 15px;
    }
}

/* COMPLETE MODAL TEXT FIXES */
.image-modal * {
    color: #ffffff !important;
}

.image-modal .modal-content * {
    color: #ffffff !important;
}

.modal-info * {
    color: rgba(255, 255, 255, 0.9) !important;
}

.modal-meta * {
    color: rgba(255, 255, 255, 0.8) !important;
}

.modal-meta strong {
    color: #4ecdc4 !important;
}

/* Specific targeting for all text elements */
#modalInfo, #modalInfo *, 
#modalMeta, #modalMeta *,
#modalTitle, #modalTitle * {
    color: #ffffff !important;
}

/* Photo info section text */
.photo-info-section {
    background: rgba(26, 26, 26, 0.95) !important;
    color: #ffffff !important;
    padding: 20px;
    border-radius: 0 0 15px 15px;
}

.photo-info-section * {
    color: rgba(255, 255, 255, 0.9) !important;
}

.photo-info-section strong {
    color: #4ecdc4 !important;
}

/* THUMBNAIL ASPECT RATIO FIXES */
.photo-preview {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain; max-height: 300px;
    object-position: center;
    transition: transform 0.3s ease;
}

.photo-preview:hover img {
    transform: scale(1.05);
}

/* WATERMARK STYLES */
.watermarked-image {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.image-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    user-select: none;
    font-family: Arial, sans-serif;
}

.watermark-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.1) 100px,
            rgba(255, 255, 255, 0.1) 120px
        );
    pointer-events: none;
}

/* FULL SIZE VIEW BUTTON */
.view-fullsize-btn {
    background: linear-gradient(45deg, #6f42c1, #8a63d2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 0;
    width: 100%;
    transition: all 0.3s ease;
}

.view-fullsize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4);
}

/* DOWNLOAD PROTECTION */
.protected-image {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 5;
}
/* RESTORE BEAUTIFUL MODAL DESIGN */
.image-modal {
    background: rgba(0, 0, 0, 0.95) !important;
}

.image-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
    max-width: 95vw;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 0;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px 0 0 15px;
    background: #000;
}

.modal-info {
    padding: 30px;
    background: rgba(26, 26, 26, 0.95);
    color: #ffffff !important;
    border-radius: 0 15px 15px 0;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-meta {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-meta div {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8) !important;
}

.modal-meta strong {
    color: #4ecdc4 !important;
}

/* RESTORE PERFECT GALLERY THUMBNAILS */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.photo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-preview {
    position: relative;
    height: 250px !important;
    overflow: hidden;
    cursor: pointer;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    transition: transform 0.3s ease;
}

.photo-preview:hover img {
    transform: scale(1.05);
}

/* BEAUTIFUL WATERMARK */
.image-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 10;
    pointer-events: none;
    user-select: none;
    font-family: Arial, sans-serif;
}

/* BEAUTIFUL PERMALINK DISPLAY */
.permalink-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.permalink-label {
    color: #4ecdc4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permalink-url {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-break: break-all;
}

/* BEAUTIFUL SOCIAL SHARING */
.social-share-container {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-share-title {
    color: #4ecdc4;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-btn-telegram {
    background: linear-gradient(45deg, #0088cc, #0099dd);
    color: white;
}

.social-btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
}

.social-btn-twitter {
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
    color: white;
}

.social-btn-copy {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .image-modal .modal-content {
        grid-template-columns: 1fr;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-image {
        border-radius: 15px 15px 0 0;
        max-height: 50vh;
    }
    
    .modal-info {
        border-radius: 0 0 15px 15px;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .social-share-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* MODAL TEXT VISIBILITY FIX */
.image-modal * {
    color: #ffffff !important;
}

.modal-content * {
    color: #ffffff !important;
}

.modal-title {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}

.modal-meta {
    color: #e0e0e0 !important;
    background: rgba(255,255,255,0.05) !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

.modal-info {
    color: #ffffff !important;
}

/* Ensure all text in modal is visible */
#imageModal .modal-content div {
    color: #ffffff !important;
}

#imageModal .modal-content span {
    color: #e0e0e0 !important;
}

#imageModal .modal-content strong {
    color: #ffffff !important;
}

/* Clean Mobile Photo Stats - Consolidated Rule */
@media (max-width: 768px) {
    .photo-stats {
        top: 8px !important;
        right: 8px !important;
        gap: 6px !important;
        flex-direction: column !important;
    }
    
    .stat-item {
        padding: 4px 8px !important;
        font-size: 0.8rem !important;
        min-width: 45px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border-radius: 12px !important;
    }
    
    .photo-actions .action-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
}
