/**
 * Share Modal Styles for AVExpo
 * This file contains all styles for the share functionality in the movie player
 */

.share-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin: 5% auto;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.share-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.share-close:hover {
    color: var(--accent-color);
}

.share-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--text-color);
    font-weight: 600;
}

.share-movie-info {
    display: flex;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.share-thumbnail {
    width: 100px;
    height: 56px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.share-movie-details {
    flex: 1;
}

.share-movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.share-movie-code {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.share-movie-actress {
    font-size: 13px;
    color: var(--text-secondary);
}

.share-url-container {
    display: flex;
    margin-bottom: 20px;
}

.share-url-container input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-size: 14px;
}

.copy-url-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-url-btn:hover {
    background: linear-gradient(45deg, #7240ff, #8257ff);
}

.share-social {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.share-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.share-social-btn:hover {
    transform: translateY(-2px);
}

.share-social-btn.facebook {
    background: #1877F2;
}

.share-social-btn.twitter {
    background: #1DA1F2;
}

.share-social-btn.telegram {
    background: #0088cc;
}

.share-social-btn.whatsapp {
    background: #25D366;
}

.share-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#shareQRCode {
    background: white;
    padding: 10px;
    border-radius: 5px;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#shareQRCode img {
    max-width: 100%;
    max-height: 100%;
}

.download-qr-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-qr-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Copy animation */
@keyframes copiedAnimation {
    0% { background: var(--accent-color); }
    50% { background: #4CAF50; }
    100% { background: var(--accent-color); }
}

.copied-animation {
    animation: copiedAnimation 1s ease;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive adjustments */
@media (max-width: 576px) {
    .share-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .share-social {
        grid-template-columns: 1fr;
    }
}