/* ===== SCREENSHOTS ===== */

/* Modal Screenshot */
.screenshot-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.screenshot-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.screenshot-modal-backdrop {
    position: absolute;
    inset: 0;
}

.screenshot-modal {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
    border: 3px solid var(--gold);
    border-radius: 25px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.screenshot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
}

.screenshot-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #000;
}

.screenshot-close {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-close:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

.screenshot-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.screenshot-modal-body::-webkit-scrollbar {
    width: 8px;
}

.screenshot-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.screenshot-modal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* Preview */
.screenshot-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screenshot-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-preview:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-watermark {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.screenshot-program {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Actions */
.screenshot-actions h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.screenshot-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.share-btn {
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
}

.share-download {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: #000;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===== GALERIE ===== */

.gallery-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
}

.gallery-modal {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
    border: 3px solid var(--gold);
    border-radius: 25px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
}

.gallery-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #000;
}

.gallery-close {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

.gallery-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.gallery-modal-body::-webkit-scrollbar {
    width: 8px;
}

.gallery-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.gallery-modal-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gallery-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.gallery-item-user span {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.gallery-item-program {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.gallery-item-likes {
    font-size: 13px;
    color: var(--gold);
    font-weight: 700;
}

/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 80px 20px;
}

.gallery-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.gallery-empty h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
}

.gallery-empty p {
    color: rgba(255, 255, 255, 0.7);
}

.gallery-error {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .screenshot-modal,
    .gallery-modal {
        width: 95%;
    }
    
    .screenshot-modal-header,
    .gallery-modal-header {
        padding: 20px;
    }
    
    .screenshot-modal-header h2,
    .gallery-modal-header h2 {
        font-size: 20px;
    }
    
    .screenshot-modal-body,
    .gallery-modal-body {
        padding: 20px;
    }
    
    .screenshot-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}