/* ============================================================================
   VERSION MODAL - Aksho Animation Style
   ============================================================================ */

/* Modal Overlay */
.version-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.version-modal.active {
    display: flex;
}

/* Modal Content */
.version-modal-content,
.version-modal-content * {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.version-modal-content {
    background: linear-gradient(135deg, 
        rgb(45, 25, 80) 0%, 
        rgb(52, 30, 95) 25%, 
        rgb(60, 35, 110) 50%, 
        rgb(52, 30, 95) 75%, 
        rgb(45, 25, 80) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 123, 71, 0.3);
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Modal Header */
.version-modal-header {
    background: #ff7b47;
    color: #191970;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 123, 71, 0.3);
    border-radius: 16px 16px 0 0;
}

.version-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Close Button */
.version-modal-close {
    background: rgba(139, 92, 246, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
    font-weight: 600;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-modal-close:hover {
    background: #ff7b47;
    color: #191970;
    border-color: rgba(255, 123, 71, 0.4);
}

/* Modal Body - Where content gets injected */
#version-modal-body {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Content Sections */
.version-info-section {
    padding: 25px 30px;
    color: white;
    border-bottom: 1px solid rgba(255, 123, 71, 0.2);
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.version-info-section:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
}

.version-info-section h3 {
    color: #ff7b47;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-info-section h4 {
    color: #ff7b47;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#version-modal .version-info-section p,
.version-modal .version-info-section p,
.version-info-section p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.version-info-section strong {
    color: white;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Changelog Cards */
.changelog-item {
    background: rgba(255, 123, 71, 0.1);
    border: 1px solid rgba(255, 123, 71, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.15s ease;
}

.changelog-item:hover {
    background: rgba(255, 123, 71, 0.15);
    border-color: rgba(255, 123, 71, 0.3);
}

.changelog-item h5 {
    color: #ff7b47;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-item ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.changelog-item li {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Ultra-specific font override to ensure Space Grotesk is applied */
#version-modal .version-modal-content .version-info-section p,
#version-modal .version-modal-content .version-info-section p *,
#version-modal .version-modal-content .version-info-section strong,
#version-modal .version-modal-body .version-info-section p,
#version-modal .version-modal-body .version-info-section p *,
#version-modal .version-modal-body .version-info-section strong {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-display: swap !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .version-modal-content {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .version-modal-header {
        padding: 15px 20px;
    }
    
    .version-modal-title {
        font-size: 18px;
    }
    
    .version-info-section {
        padding: 20px;
    }
    
    .changelog-item {
        padding: 15px;
        margin: 10px 0;
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================================
   ADULT CONTENT WARNING MODAL
   ============================================================================ */

/* Adult Warning Modal Specific Styling */
#adult-warning-modal .version-modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, 
        rgb(80, 25, 25) 0%, 
        rgb(95, 30, 30) 25%, 
        rgb(110, 35, 35) 50%, 
        rgb(95, 30, 30) 75%, 
        rgb(80, 25, 25) 100%);
    border: 1px solid rgba(220, 50, 50, 0.4);
}

#adult-warning-modal .version-modal-header {
    background: #dc3545;
    color: white;
}

.adult-warning-body {
    padding: 30px;
    text-align: center;
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.warning-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
    font-weight: 500;
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.warning-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.warning-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: 1px solid;
    min-width: 120px;
}

.warning-btn.cancel {
    background: rgba(139, 92, 246, 0.6);
    border-color: rgba(139, 92, 246, 0.3);
    color: white;
}

.warning-btn.cancel:hover {
    background: #ff7b47;
    color: #191970;
    border-color: rgba(255, 123, 71, 0.4);
}

.warning-btn.confirm {
    background: #dc3545;
    border-color: rgba(220, 53, 69, 0.4);
    color: white;
}

.warning-btn.confirm:hover {
    background: #c82333;
    border-color: rgba(200, 35, 51, 0.6);
}