/**
 * PhotoPro AI Public Styles
 */

/* Client Gallery Styles */
.photopro-ai-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.photopro-ai-gallery-item {
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photopro-ai-gallery-item:hover {
    transform: translateY(-5px);
}

.photopro-ai-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photopro-ai-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photopro-ai-gallery-item:hover .photopro-ai-gallery-overlay {
    opacity: 1;
}

/* Gallery Login Form */
.photopro-ai-gallery-login {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.photopro-ai-gallery-login h2 {
    margin-bottom: 20px;
    color: #333;
}

.photopro-ai-gallery-login input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

.photopro-ai-gallery-login button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.photopro-ai-gallery-login button:hover {
    background: #135e96;
}

/* Lazy Loading */
.photopro-ai-lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.photopro-ai-lazy.loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photopro-ai-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .photopro-ai-gallery-item img {
        height: 150px;
    }
}

