/* Get3DModels Membership Styles */

/* Body scroll lock when modal is open */
body.g3dm-modal-open {
    overflow: hidden;
    height: 100vh;
}

.g3dm-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.g3dm-modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: g3dm-modal-slide-in 0.3s ease-out;
    text-align: center;
}

@keyframes g3dm-modal-slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.g3dm-modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.g3dm-modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.g3dm-modal-close {
    position: absolute;
    right: 20px;
    top: 0;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.g3dm-modal-close:hover,
.g3dm-modal-close:focus {
    color: #333;
}

.g3dm-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-3d-view,
.download-btn,
.g3dm-button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-3d-view,
.download-btn,
.g3dm-button-primary {
    background-color: #AA332A;
    color: #fff;
}
.btn-3d-view:hover,
.download-btn:hover,
.g3dm-button-primary:hover {
    background-color: #C83B3B;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.g3dm-button-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.g3dm-button-secondary:hover {
    background-color: #e0e0e0;
}

.g3dm-error-message,
.g3dm-success-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    animation: g3dm-slide-in 0.3s ease-out;
}

.g3dm-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.g3dm-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes g3dm-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Button loading state */
.wp-block-button__link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Membership status badge */
.g3dm-membership-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.g3dm-membership-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.g3dm-membership-badge.expired,
.g3dm-membership-badge.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 600px) {
    .g3dm-modal-content {
        margin: 20% 20px;
        padding: 30px 20px;
    }
    
    .g3dm-modal-buttons {
        flex-direction: column;
    }
    
    .g3dm-button {
        width: 100%;
        text-align: center;
    }
}

.g3dm-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #AA332A 0%, #C83B3B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}

.g3dm-modal-icon.membership-icon {
    background: linear-gradient(135deg, #C83B3B 0%, #E04A45 100%);
}

.g3dm-modal-icon ion-icon{
    font-size: 36px;
    margin-right: 0;
}

.g3dm-modal-content h2 {
    font-size: 28px;
    margin: 0 0 15px;
    color: #333;
    font-weight: 700;
}

.g3dm-modal-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px;
}

.g3dm-modal-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.g3dm-modal-benefits h3 {
    font-size: 18px;
    margin: 0 0 15px;
    color: #333;
    text-align: center;
}

.g3dm-modal-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.g3dm-modal-benefits li {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.g3dm-modal-benefits li ion-icon {
    color: #C83B3B;
    font-size: 20px;
    flex-shrink: 0;
}

.g3dm-modal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.g3dm-modal-footer p {
    font-size: 14px;
    color: #999;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.g3dm-modal-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.g3dm-modal-footer a:hover {
    text-decoration: underline;
}

.g3dm-modal-footer ion-icon {
    font-size: 18px;
    color: #4caf50;
}