/* Pride Photo Sharing Frontend Styles */

.pps-gallery-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.pps-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pps-gallery-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pps-gallery-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.pps-gallery-header h2 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    font-weight: 400;
    opacity: 0.9;
}

.pps-gallery-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
}

.pps-gallery-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pps-button {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.pps-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pps-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pps-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.pps-share-tips {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.pps-share-tips h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
}

.pps-share-tips ul {
    margin: 0;
    padding-left: 20px;
}

.pps-share-tips li {
    margin: 8px 0;
    color: #6c757d;
}

.pps-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.pps-photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.pps-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pps-photo-thumbnail {
    position: relative;
    overflow: hidden;
}

.pps-photo-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.pps-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pps-photo-card:hover .pps-photo-overlay {
    opacity: 1;
}

.pps-view-fullscreen,
.pps-download-btn {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pps-view-fullscreen:hover,
.pps-download-btn:hover {
    background: white;
    transform: scale(1.05);
}

.pps-photo-info {
    padding: 20px;
}

.pps-photo-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.pps-photo-date {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.pps-no-photos {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pps-no-photos h3 {
    color: #666;
    margin-bottom: 15px;
}

.pps-gallery-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.pps-gallery-footer a {
    color: #667eea;
    text-decoration: none;
}

.pps-gallery-footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.pps-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.pps-modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pps-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pps-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.pps-modal-image-container {
    position: relative;
    max-height: 70vh;
    overflow: hidden;
}

.pps-modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.pps-modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.pps-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s ease;
    margin: 0 15px;
}

.pps-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.pps-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pps-modal-info {
    padding: 20px;
    text-align: center;
}

.pps-modal-info h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.pps-modal-actions {
    margin-top: 15px;
}

/* Shortcode Styles */
.pps-gallery-shortcode {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.pps-gallery-shortcode .pps-gallery-header {
    background: none;
    color: #333;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}

.pps-gallery-shortcode .pps-gallery-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pps-gallery-container {
        padding: 10px;
    }
    
    .pps-gallery-header {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .pps-gallery-header h1 {
        font-size: 2rem;
    }
    
    .pps-gallery-header h2 {
        font-size: 1.2rem;
    }
    
    .pps-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        margin: 20px 0;
    }
    
    .pps-photo-thumbnail img {
        height: 150px;
    }
    
    .pps-photo-info {
        padding: 15px;
    }
    
    .pps-photo-overlay {
        gap: 10px;
    }
    
    .pps-view-fullscreen,
    .pps-download-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .pps-modal-content {
        margin: 2% auto;
        max-width: 95%;
        max-height: 95%;
    }
    
    .pps-modal-image-container {
        max-height: 60vh;
    }
    
    .pps-modal-image-container img {
        max-height: 60vh;
    }
    
    .pps-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .pps-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .pps-photo-thumbnail img {
        height: 120px;
    }
    
    .pps-photo-info {
        padding: 10px;
    }
    
    .pps-photo-info h4 {
        font-size: 1rem;
    }
    
    .pps-photo-date {
        font-size: 0.8rem;
    }
}

/* Animation Classes */
.pps-photo-zoom {
    transform: scale(1.02);
}

.pps-modal-open {
    overflow: hidden;
}

/* Loading States */
.pps-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pps-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: pps-spin 1s linear infinite;
}

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

/* Accessibility */
.pps-button:focus,
.pps-view-fullscreen:focus,
.pps-download-btn:focus,
.pps-nav-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pps-photo-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .pps-view-fullscreen,
    .pps-download-btn {
        background: white;
        color: black;
        border: 2px solid black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pps-photo-card,
    .pps-photo-thumbnail img,
    .pps-photo-overlay,
    .pps-button,
    .pps-modal-close,
    .pps-nav-btn {
        transition: none;
    }
    
    .pps-photo-card:hover {
        transform: none;
    }
    
    .pps-photo-card:hover .pps-photo-thumbnail img {
        transform: none;
    }
}


