/* WP Photo Gallery Frontend Styles */

/* RTL Support */
.wppg-albums-grid,
.wppg-photos-grid,
.wppg-sticker {
    direction: inherit;
}

/* Albums Grid */
.wppg-albums-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.wppg-album-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wppg-album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wppg-album-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.wppg-album-item img:hover {
    opacity: 0.9;
}

.wppg-album-item h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.wppg-album-item p {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
}

.wppg-album-item a {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.wppg-album-item a:hover {
    background: #005a87;
}

/* Photos Grid */
.wppg-photos-grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.wppg-photo-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wppg-photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.wppg-photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.wppg-photo-item img:hover {
    opacity: 0.9;
}

.wppg-photo-info {
    padding: 10px;
}

.wppg-photo-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #333;
}

.wppg-photo-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.wppg-photo-actions {
    margin-top: 8px;
}

.wppg-photo-actions button {
    background: #25d366;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wppg-photo-actions button:hover {
    background: #1da851;
}

/* Album Header */
.wppg-album-header {
    margin-bottom: 20px;
    text-align: center;
}

.wppg-album-header h2 {
    margin: 0 0 10px;
    color: #333;
}

.wppg-album-controls {
    margin: 10px 0;
}

#wppg-slideshow-toggle {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#wppg-slideshow-toggle:hover {
    background: #005a87;
}

/* Lightbox */
#wppg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#wppg-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

#wppg-lightbox button {
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

#wppg-lightbox button:hover {
    background: rgba(255,255,255,1);
}

/* Upload Form */
.wppg-upload-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.wppg-upload-form h3 {
    margin: 0 0 20px;
    text-align: center;
    color: #333;
}

.wppg-upload-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.wppg-upload-form input,
.wppg-upload-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wppg-upload-form button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.wppg-upload-form button:hover {
    background: #005a87;
}

/* Photo Sticker */
.wppg-sticker {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
}

.wppg-sticker h3 {
    margin: 0 0 15px;
    color: #333;
}

.wppg-sticker-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.wppg-sticker-photos img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.wppg-sticker-photos img:hover {
    opacity: 0.8;
}

.wppg-sticker-buttons {
    margin-top: 15px;
}

.wppg-sticker-buttons a,
.wppg-sticker-buttons button {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.wppg-sticker-buttons a {
    background: #0073aa;
    color: white;
}

.wppg-sticker-buttons a:hover {
    background: #005a87;
}

.wppg-sticker-buttons button {
    background: #25d366;
    color: white;
}

.wppg-sticker-buttons button:hover {
    background: #1da851;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wppg-albums-grid,
    .wppg-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .wppg-sticker-photos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wppg-upload-form {
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wppg-albums-grid,
    .wppg-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .wppg-sticker-buttons a,
    .wppg-sticker-buttons button {
        display: block;
        margin: 5px 0;
    }
}

/* Loading Animation */
.wppg-loading {
    text-align: center;
    padding: 20px;
}

.wppg-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: wppg-spin 1s linear infinite;
}

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

