/* ================================================
   MuaThemeWPGiaRe - Theme Versions Styles
   ================================================ */



/* Header Section */
.mtwpgr-versions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.mtwpgr-versions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.mtwpgr-icon {
    width: 28px;
    height: 28px;
    color: #0066cc;
    stroke-width: 2.5;
}

.mtwpgr-versions-count {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

/* Version List */
.mtwpgr-versions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Version Item */
.mtwpgr-version-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}



/* Version Badge */
.mtwpgr-version-badge {
    position: absolute;
    top: -12px;
    right: 24px;
}

.mtwpgr-badge-latest {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    }
}

/* Version Header */
.mtwpgr-version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.mtwpgr-version-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
}

.mtwpgr-version-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.mtwpgr-icon-small {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Version Description */
.mtwpgr-version-description {
    color: #495057;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-line;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

/* Show All Button */
.mtwpgr-show-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.mtwpgr-show-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
}

.mtwpgr-show-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

/* Popup Overlay */
.mtwpgr-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtwpgr-popup-overlay.mtwpgr-popup-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.mtwpgr-popup {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtwpgr-popup-overlay.mtwpgr-popup-active .mtwpgr-popup {
    transform: scale(1) translateY(0);
}

/* Popup Header */
.mtwpgr-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
}

.mtwpgr-popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.mtwpgr-popup-close {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.mtwpgr-popup-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Popup Content */
.mtwpgr-popup-content {
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mtwpgr-popup-content::-webkit-scrollbar {
    width: 8px;
}

.mtwpgr-popup-content::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.mtwpgr-popup-content::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.mtwpgr-popup-content::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mtwpgr-theme-versions {
        padding: 24px 20px;
        border-radius: 12px;
        margin: 24px 0;
    }

    .mtwpgr-versions-title {
        font-size: 20px;
    }

    .mtwpgr-icon {
        width: 24px;
        height: 24px;
    }

    .mtwpgr-versions-count {
        padding: 6px 12px;
        font-size: 13px;
    }

    .mtwpgr-version-item {
        padding: 20px;
    }

    .mtwpgr-version-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mtwpgr-version-number {
        font-size: 16px;
    }

    .mtwpgr-version-date {
        font-size: 13px;
    }

    .mtwpgr-version-description {
        font-size: 14px;
        padding: 12px;
    }

    .mtwpgr-show-all-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .mtwpgr-popup {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .mtwpgr-popup-header {
        padding: 20px;
    }

    .mtwpgr-popup-header h3 {
        font-size: 20px;
    }

    .mtwpgr-popup-content {
        padding: 20px;
    }

    .mtwpgr-popup-close {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .mtwpgr-theme-versions {
        padding: 20px 16px;
        margin: 20px 0;
    }

    .mtwpgr-versions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mtwpgr-versions-title {
        font-size: 18px;
    }

    .mtwpgr-version-item {
        padding: 16px;
    }

    .mtwpgr-version-badge {
        position: static;
        margin-bottom: 12px;
    }

    .mtwpgr-badge-latest {
        display: inline-block;
    }

    .mtwpgr-popup-overlay {
        padding: 10px;
    }

    .mtwpgr-popup-header {
        padding: 16px;
    }

    .mtwpgr-popup-content {
        padding: 16px;
    }
}

/* Print Styles */
@media print {
    .mtwpgr-show-all-btn,
    .mtwpgr-popup-overlay {
        display: none;
    }

    .mtwpgr-theme-versions {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .mtwpgr-version-item {
        page-break-inside: avoid;
    }
}
