/* ========================================
   AMUM Video Display CSS - Separate File
   Path: assets/css/amum-video-display.css
   ======================================== */

/* Container & Grid */
.amum-latest-videos-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.amum-section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.amum-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Video Card */
.amum-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amum-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.amum-video-trigger {
    cursor: pointer;
}

/* Film Strip Container */
.amum-film-strip-container {
    position: relative;
    display: flex;
    width: 100%;
    background: #000;
}

.amum-film-left,
.amum-film-right {
    width: 20px;
    background: repeating-linear-gradient(to bottom,
            #333 0px,
            #333 8px,
            #000 8px,
            #000 12px);
    flex-shrink: 0;
}

/* Video Thumbnail */
.amum-video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.amum-video-thumbnail img,
.amum-video-thumbnail video,
.amum-thumbnail-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Overlay - Only for videos */
.amum-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hide play button for non-video posts */
.amum-video-card[data-is-video="0"] .amum-play-overlay {
    display: none !important;
}

.amum-video-trigger:hover .amum-play-overlay {
    opacity: 1;
}

.amum-play-icon {
    width: 60px;
    height: 60px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Badges */
.amum-media-badge,
.amum-free-badge {
    position: absolute;
    top: 10px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.amum-media-badge {
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.amum-free-badge {
    left: 10px;
    background: #4CAF50;
    color: #fff;
}

/* PRO Badge - Yellow Background */
.amum-pro-badge {
    background: #FFD700 !important;
    color: #000 !important;
}

/* Video Info */
.amum-video-info {
    padding: 15px;
}

.amum-video-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #222;
    line-height: 1.4;
}

.amum-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.amum-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.amum-icon {
    width: 16px;
    height: 16px;
}

.amum-video-date {
    font-size: 12px;
    color: #999;
}

/* Action Icons - Below each video card */
.amum-video-actions {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    justify-content: space-around;
}

/* Action Icons - Below ALL posts (after grid) */
.amum-all-posts-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px auto 40px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
}

.amum-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: #555;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Style for action buttons below all posts */
.amum-all-posts-actions .amum-action-btn {
    padding: 15px 25px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    min-width: 120px;
}

.amum-action-btn:hover {
    color: #2196F3;
    transform: translateY(-2px);
}

.amum-all-posts-actions .amum-action-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.amum-action-icon {
    width: 20px;
    height: 20px;
}

.amum-all-posts-actions .amum-action-icon {
    width: 28px;
    height: 28px;
}

.amum-all-posts-actions .amum-action-btn:hover .amum-action-icon {
    fill: #fff;
}

.amum-action-btn span {
    font-weight: 500;
}

/* Modal */
.amum-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.amum-modal.active {
    display: block;
}

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

.amum-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #1a1a1a;
    border-radius: 8px;
    overflow-y: auto;
    z-index: 10000;
}

/* Modal Navigation Buttons - With Clear White Text */
.amum-modal-nav-buttons {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10001;
    justify-content: center;
    flex-wrap: wrap;
}

.amum-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amum-nav-btn:hover {
    background: rgba(33, 150, 243, 0.9);
    transform: scale(1.05);
}

.amum-nav-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.amum-btn-label {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.amum-modal-close-btn:hover {
    background: rgba(220, 53, 69, 0.9) !important;
}

.amum-modal-payment {
    background: rgba(255, 193, 7, 0.9) !important;
    border-color: #ffc107 !important;
}

.amum-modal-payment:hover {
    background: rgba(255, 152, 0, 0.9) !important;
}

/* Payment Modal */
.amum-payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.amum-payment-modal.active {
    display: block;
}

.amum-payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.amum-payment-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 10vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    z-index: 100000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.amum-payment-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amum-payment-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

.amum-payment-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
}

.amum-payment-price {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 30px;
}

.amum-payment-price span {
    color: #e74c3c;
}

.amum-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amum-payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amum-mpesa-btn {
    background: #27ae60;
    color: #fff;
}

.amum-mpesa-btn:hover {
    background: #229954;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.amum-paypal-btn {
    background: #0070ba;
    color: #fff;
}

.amum-paypal-btn:hover {
    background: #005ea6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

.amum-payment-btn span:first-child {
    font-size: 28px;
}

/* Modal Menu Above/Below Video */
.amum-modal-menu-top,
.amum-modal-menu-bottom {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.amum-modal-menu-bottom {
    border-bottom: none;
    border-top: 1px solid #e9ecef;
}

/* Modal Header */
.amum-modal-header {
    padding: 80px 20px 20px;
    background: #222;
    color: #fff;
}

#amum-modal-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #fff;
}

#amum-modal-meta {
    font-size: 14px;
    color: #aaa;
}

/* Modal Body */
.amum-modal-body {
    padding: 20px;
}

#amum-video-player-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    min-height: 400px;
}

#amum-video-player-container video,
#amum-video-player-container iframe {
    width: 100%;
    height: auto;
    min-height: 400px;
    display: block;
}

/* Bigger centered play button for modal */
#amum-video-player-container .amum-modal-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#amum-video-player-container .amum-modal-play-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

#amum-video-player-container .amum-modal-play-icon {
    width: 100px;
    height: 100px;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

#amum-video-player-container.playing .amum-modal-play-overlay {
    display: none;
}

#amum-video-description {
    margin-top: 20px;
    color: #ddd;
    line-height: 1.6;
}

/* No Videos Message */
.amum-no-videos {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .amum-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .amum-modal-content {
        width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }

    .amum-modal-close {
        width: 80px;
        font-size: 12px;
    }

    .amum-modal-nav-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .amum-nav-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .amum-play-icon {
        width: 50px;
        height: 50px;
    }

    #amum-video-player-container .amum-modal-play-icon {
        width: 80px;
        height: 80px;
    }

    .amum-action-btn {
        font-size: 10px;
        padding: 6px 8px;
    }

    .amum-action-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .amum-videos-grid {
        grid-template-columns: 1fr;
    }
}