/* ExploreXR License Tier Transition Helpers 
 * 
 * This file contains styles specifically for tier transitions, upgrades and downgrades.
 * It works in conjunction with license-page.css which contains the base license page styles.
 * 
 * All classes starting with tier-transition-* are defined here, while general license styles
 * are in license-page.css.
 */

/* Styles for tier transition visualization */
.tier-transition-helper {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #6c757d;
}

.tier-upgrade-helper {
    border-left: 3px solid #28a745;
}

.tier-downgrade-helper {
    border-left: 3px solid #dc3545;
}

.tier-transition-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 500;
}

.tier-transition-header .dashicons {
    margin-right: 5px;
}

.tier-upgrade-helper .tier-transition-header {
    color: #28a745;
}

.tier-downgrade-helper .tier-transition-header {
    color: #dc3545;
}

.tier-transition-message {
    font-size: 13px;
    margin-bottom: 5px;
}

.addon-change-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.addon-preview-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    background-color: #e9ecef;
}

.addon-preview-item.addon-keep {
    background-color: #d4edda;
    color: #155724;
}

.addon-preview-item.addon-lose {
    background-color: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
}

.addon-preview-item.addon-gain {
    background-color: #cce5ff;
    color: #0d4f8f;
}

.addon-preview-icon {
    margin-right: 4px;
}

/* Transition arrow animation */
.tier-transition-arrow {
    display: inline-block;
    margin: 0 5px;
    color: #6c757d;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateX(0); }
    50% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* Modal for add-on selection during tier changes */
.tier-transition-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.tier-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 500px;
    position: relative;
}

.tier-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.tier-modal-header {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.tier-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.tier-modal-body {
    margin-bottom: 20px;
}

.tier-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.transition-addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.transition-addon-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
}

.transition-addon-item:hover {
    background-color: #f8f9fa;
}

.transition-addon-item input[type="checkbox"] {
    margin-right: 8px;
}

.transition-addon-icon {
    margin-right: 5px;
    color: #2AACE2;
}

.transition-addon-name {
    font-size: 14px;
}

.unavailable-addon {
    opacity: 0.6;
}

.tier-selection-count {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
}

.max-selections-reached {
    color: #dc3545;
    font-weight: 500;
}
