/**
 * Lightbox Modal, AI Summary & Social Modal Styles
 */

/* Lightbox Modal */
.rnd-lightbox-overlay,
.rnd-summary-modal,
.rnd-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rnd-lightbox-backdrop,
.rnd-summary-backdrop,
.rnd-share-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.rnd-lightbox-dialog {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.rnd-lightbox-player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.rnd-lightbox-player-container iframe,
.rnd-lightbox-player-container #rnd-youtube-player-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.rnd-lightbox-close {
    position: absolute !important;
    top: -16px !important;
    right: -16px !important;
    background: #0f172a !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    outline: none !important;
}

.rnd-lightbox-close svg {
    display: block !important;
    stroke: #ffffff !important;
    transition: transform 0.2s ease !important;
}

.rnd-lightbox-close:hover {
    background: #e11d48 !important;
    border-color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5) !important;
}

.rnd-lightbox-close:hover svg {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .rnd-lightbox-close {
        top: -12px !important;
        right: 0px !important;
        width: 34px !important;
        height: 34px !important;
    }
}

.rnd-lightbox-details {
    padding: 16px 20px;
    background: #1e293b;
    color: #fff;
    border-radius: 0 0 12px 12px;
}

.rnd-lightbox-details h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #fff;
}

.rnd-modal-channel-meta {
    font-size: 13px;
    color: #94a3b8;
}

/* AI Summary Modal */
.rnd-summary-dialog,
.rnd-share-dialog {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.rnd-summary-header,
.rnd-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--rnd-border);
}

.rnd-summary-header h3,
.rnd-share-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rnd-text);
}

.rnd-summary-close,
.rnd-share-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--rnd-text-muted);
}

.rnd-summary-body,
.rnd-share-body {
    padding: 20px;
    max-height: 480px;
    overflow-y: auto;
}

.rnd-summary-bullets {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
    color: var(--rnd-text);
    font-size: 14px;
}

/* Social Share Grid */
.rnd-social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.rnd-share-btn {
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.rnd-share-btn:hover {
    opacity: 0.9;
}

.rnd-share-facebook {
    background: #1877f2;
}

.rnd-share-x {
    background: #000000;
}

.rnd-share-whatsapp {
    background: #25d366;
}

.rnd-share-linkedin {
    background: #0a66c2;
}

.rnd-copy-link-group {
    display: flex;
    gap: 8px;
}

.rnd-copy-link-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--rnd-border);
    border-radius: 6px;
    font-size: 13px;
    background: #f8fafc;
}