/**
 * Video Reviews Widget Styles
 */

.jltma-video-reviews-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Empty State */
.jltma-video-reviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-size: 16px;
}

/* Video Reviews Grid */
.jltma-video-reviews-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Video Review Card */
.jltma-video-review-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 48px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.jltma-video-review-card:hover {
    transform: translateY(-8px);
}

/* Video Thumbnail */
.jltma-video-thumbnail {
    position: relative;
    height: 305px;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
}

.jltma-video-embed,
.jltma-custom-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.jltma-video-poster {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jltma-video-review-card:hover .jltma-video-poster {
    transform: scale(1.05);
}

.jltma-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #718096;
}

.jltma-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.jltma-placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

/* Play Button */
.jltma-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.jltma-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.jltma-play-button svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Video Content */
.jltma-video-title {
    line-height: 0 !important;
    margin: 0 !important;
}

.jltma-video-title a{
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #101828 !important;
    letter-spacing: normal !important;
}

.jltma-video-title a:hover{
   color: #3a3ae9 !important;
}

/* Author Info */
.jltma-video-author {
    margin-bottom: 20px;
    /* padding: 10px; */
    /* background: #f7fafc; */
}

.jltma-author-name {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    margin-bottom: 5px;
    color: #475467 !important;
}

.jltma-author-name a {
    color: #3a3ae9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jltma-author-name a:hover {
    color: #3a3ae9;
    text-decoration: underline;
}

.jltma-author-meta {
    font-size: 14px;
    /* color: #718096; */
    margin: 0;
    line-height: 1.5;
}

/* Video Meta */
.jltma-video-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    letter-spacing: 0 !important;
    color: #475467 !important;
}

.jltma-video-date,
.jltma-video-platform {
    font-weight: 500;
}

/* Action Buttons */
.jltma-video-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.jltma-watch-btn,
.jltma-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.jltma-watch-btn {
    background: #e53e3e;
    color: white;
}

.jltma-watch-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.jltma-author-link {
    background: #edf2f7;
    color: #4a5568;
}

.jltma-author-link:hover {
    background: #e2e8f0;
    color: #2d3748;
    text-decoration: none;
    transform: translateY(-2px);
}

.jltma-btn-icon {
    font-size: 14px;
}

/* Pagination */
.jltma-pagination {
    margin: 30px 0 0 0;
    text-align: center;
}

.jltma-pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jltma-pagination-item {
    margin: 0;
}

.jltma-pagination-item a,
.jltma-pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jltma-pagination-item a:hover,
.jltma-pagination-item .current {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.jltma-pagination-item .current {
    cursor: default;
}

/* Video Modal */
.jltma-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jltma-modal.jltma-modal-open {
    opacity: 1;
}

.jltma-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.jltma-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    overflow: visible !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* video modal close btn */
.jltma-modal-close {
    position: absolute;
    top: 0;
    right: -70px;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #ffff !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #ffff !important;
    border-radius: 30px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    transition: none !important;
}

.jltma-modal-close span {
    color:  #fff !important;
}

.jltma-modal-close:hover  {
    border-color: #dc3545 !important;
}
.jltma-modal-close:hover span {
    color: #dc3545 !important;
}

.jltma-modal-body {
    padding: 0;
}

.jltma-video-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.jltma-video-container iframe {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Body Modal Active State */
body.jltma-modal-active {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jltma-video-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .jltma-video-reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jltma-video-content {
        padding: 20px;
    }

    .jltma-video-actions {
        flex-direction: column;
    }

    .jltma-watch-btn,
    .jltma-author-link {
        justify-content: center;
    }

    .jltma-pagination-list {
        flex-wrap: wrap;
        padding: 10px;
    }

    .jltma-modal-content {
        width: 95%;
        margin: 20px;
    }

    .jltma-video-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .jltma-video-thumbnail {
        height: 200px;
    }

    .jltma-video-actions {
        gap: 8px;
    }

    .jltma-watch-btn,
    .jltma-author-link {
        flex: 1;
        padding: 12px 16px;
    }
}

/* Tablet Responsive */
@media (max-width: 1200px) and (min-width: 769px) {
    .jltma-video-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single Column Override */
.jltma-video-reviews-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
    grid-template-columns: 1fr !important;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Four Column Responsive */
@media (max-width: 1400px) {
    .jltma-video-reviews-grid[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .jltma-video-reviews-grid[style*="grid-template-columns: repeat(4, 1fr)"],
    .jltma-video-reviews-grid[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .jltma-video-review-card {
        background: #f6f6f6;
        /* background: #2d3748; */
    }

    .jltma-video-title {
        color: #f7fafc;
    }

    /* .jltma-video-author {
        background: #4a5568;
    } */

    .jltma-author-name {
        color: #f7fafc;
    }

    .jltma-pagination-list {
        background: #2d3748;
    }

    .jltma-modal-content {
        background: #2d3748;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .jltma-video-review-card {
        border: 2px solid #000;
    }

    .jltma-watch-btn {
        border: 2px solid #000;
    }

    .jltma-author-link {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .jltma-video-review-card,
    .jltma-video-poster,
    .jltma-play-button,
    .jltma-watch-btn,
    .jltma-author-link,
    .jltma-pagination-item a,
    .jltma-modal {
        transition: none;
    }

    .jltma-video-review-card:hover {
        transform: none;
    }

    .jltma-video-review-card:hover .jltma-video-poster {
        transform: none;
    }

    .jltma-play-button:hover {
        transform: translate(-50%, -50%);
    }
}

/* Print Styles */
@media print {
    .jltma-video-actions,
    .jltma-pagination,
    .jltma-play-button {
        display: none;
    }

    .jltma-video-review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .jltma-video-reviews-grid {
        grid-template-columns: 1fr !important;
    }
}
