/**
 * Theme Version Display - Styles
 * @package Theme_Version_Display
 * @version 1.0.0
 */

/* ===========================
   Version Badge (Shortcode)
   =========================== */

.tvd-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #16163f;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tvd-version-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tvd-version-text {
    display: flex;
    flex-direction: row;
    line-height: 1.3;
    justify-content: center;
    align-items: center;
}

.tvd-version-text strong {
    font-size: 13px;
    font-weight: 600;
}

.tvd-version-number {
    font-size: 12px;
    opacity: 0.9;
    margin-left: 5px;
}

.tvd-codename {
    font-size: 11px;
    opacity: 0.8;
    font-style: italic;
    margin-top: 2px;
}

/* Button Style */
.tvd-style-button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* Text Style */
.tvd-style-text {
    background: transparent;
    color: #667eea;
    box-shadow: none;
    padding: 5px 10px;
    text-decoration: underline;
}

.tvd-style-text:hover {
    color: #764ba2;
    transform: none;
}

/* ===========================
   Modal Overlay
   =========================== */

#tvd-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#tvd-modal-overlay.tvd-active {
    display: block;
    opacity: 1;
}

/* ===========================
   Modal Container
   =========================== */

#tvd-modal-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#tvd-modal-container.tvd-active {
    display: block;
    opacity: 1;
}

/* ===========================
   Modal Card
   =========================== */

.tvd-modal-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: tvdSlideIn 0.4s ease;
}

@keyframes tvdSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===========================
   Modal Header
   =========================== */

.tvd-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.tvd-modal-title {
    flex: 1;
}

.tvd-modal-title h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
}

.tvd-modal-version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tvd-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}

.tvd-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ===========================
   Modal Body
   =========================== */

.tvd-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Info Grid */
.tvd-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.tvd-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tvd-info-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tvd-info-value {
    font-size: 15px;
    color: #212529;
    font-weight: 600;
}

/* Features Section */
.tvd-features-section {
    margin-bottom: 25px;
}

.tvd-features-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #212529;
    font-weight: 700;
}

.tvd-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.tvd-features-list li {
    padding: 10px 12px;
    font-size: 14px;
    color: #495057;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tvd-features-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* Action Links */
.tvd-action-links {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.tvd-action-link {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tvd-action-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    #tvd-modal-container {
        width: 95%;
    }

    .tvd-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tvd-modal-header {
        padding: 20px;
    }

    .tvd-modal-body {
        padding: 20px;
    }

    .tvd-action-links {
        flex-direction: column;
    }

    .tvd-version-badge {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ===========================
   Scrollbar Styling
   =========================== */

.tvd-modal-body::-webkit-scrollbar {
    width: 8px;
}

.tvd-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tvd-modal-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.tvd-modal-body::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
