/**
 * Temajet Video Gallery Module Styling
 * Matches exact UI from news media reference
 */

.jet-video-module-section {
    margin: 10px 0 20px 0;
    width: 100%;
}

.widget.jet-widget-video-module {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
}

.widget.jet-widget-video-module .jet-video-module-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.widget + .widget.jet-widget-video-module {
    margin-top: 12px !important;
}

.jet-video-module-card {
    background: linear-gradient(135deg, #4a3b8c, #3b2d71);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(59, 45, 113, 0.25);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Header Bar */
.jet-video-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}

.jet-video-title-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.jet-video-heading {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.jet-video-header-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    flex: 1;
}

.jet-video-header-more {
    display: flex;
    align-items: center;
}

.jet-video-more-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jet-video-more-dots span {
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.jet-video-more-dots:hover span {
    opacity: 1;
    transform: scale(1.2);
}

/* Grid Layout (60% Left Hero, 40% Right Stack) */
.jet-video-body-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.jet-video-hero-column {
    flex: 0 0 58%;
    max-width: 58%;
}

.jet-video-side-column {
    flex: 0 0 calc(42% - 24px);
    max-width: calc(42% - 24px);
}

/* Left Hero Video Card */
.jet-video-hero-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 310px;
    background-color: #000000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.jet-video-hero-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.jet-video-hero-thumb {
    width: 100%;
    height: 100%;
    min-height: 310px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.35s ease;
}

.jet-video-hero-item:hover .jet-video-hero-thumb {
    transform: scale(1.025);
}

.jet-video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
}

/* Top Left Play Icon */
.jet-video-top-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    padding-left: 2px;
    z-index: 2;
    transition: all 0.2s ease;
}

.jet-video-hero-item:hover .jet-video-top-icon {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: scale(1.1);
}

.jet-video-duration-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Bottom "HEMEN İZLE" Button */
.jet-video-hemen-izle-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.4);
    z-index: 2;
    transition: all 0.25s ease;
}

.jet-hemen-play-circle {
    width: 20px;
    height: 20px;
    background: #ffffff;
    color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    padding-left: 1px;
}

.jet-video-hero-item:hover .jet-video-hemen-izle-btn {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Right Side 4-Video List */
.jet-video-side-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}

.jet-video-side-item {
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.jet-video-side-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.jet-video-side-thumb-wrap {
    flex: 0 0 115px;
    max-width: 115px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.jet-video-side-thumb {
    width: 100%;
    height: 68px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.jet-video-side-item:hover .jet-video-side-thumb {
    transform: scale(1.05);
}

.jet-video-mini-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 8px;
    padding-left: 1px;
    transition: all 0.2s ease;
}

.jet-video-side-item:hover .jet-video-mini-play {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: translate(-50%, -50%) scale(1.15);
}

.jet-video-mini-duration {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

.jet-video-side-info {
    flex: 1;
    min-width: 0;
}

.jet-video-side-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.jet-video-side-item:hover .jet-video-side-title {
    color: #ffd166;
}

/* Lightbox Modal Popup */
.jet-video-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 18, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: jetModalFadeIn 0.25s ease forwards;
}

.jet-video-modal-dialog {
    width: 100%;
    max-width: 900px;
    position: relative;
    animation: jetModalScaleUp 0.25s ease forwards;
}

.jet-video-modal-content {
    background: #11141c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jet-video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #181d28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jet-video-modal-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.jet-video-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.jet-video-modal-close:hover {
    color: #ffffff;
}

.jet-video-modal-body {
    position: relative;
    background: #000000;
}

.jet-video-modal-ratio {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.jet-video-modal-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@keyframes jetModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jetModalScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Queries */
@media screen and (max-width: 992px) {
    .jet-video-body-grid {
        flex-direction: column;
    }
    .jet-video-hero-column,
    .jet-video-side-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .jet-video-side-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 600px) {
    .jet-video-module-card {
        padding: 16px;
        border-radius: 8px;
    }
    .jet-video-heading {
        font-size: 18px;
    }
    .jet-video-hero-item,
    .jet-video-hero-thumb {
        min-height: 220px;
    }
    .jet-video-hemen-izle-btn {
        padding: 5px 14px;
        font-size: 11px;
    }
    .jet-video-side-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .jet-video-side-thumb-wrap {
        flex: 0 0 95px;
        max-width: 95px;
    }
    .jet-video-side-thumb {
        height: 60px;
    }
    .jet-video-side-title {
        font-size: 13px;
    }
}
