/* ExploreXR License Page Styles
 * Styles for license management interface
 */

.explorexr-premium-license-page {
    margin: 20px 20px 0 0;
}

.explorexr-premium-license-page h1 {
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: 400;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
}

.explorexr-premium-license-page h1 .dashicons {
    margin-right: 10px;
    color: #2AACE2;
}

.explorexr-premium-license-section,
.explorexr-premium-upgrade-section,
.explorexr-premium-addons-section,
.explorexr-premium-help-section {
    background: white;
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}
.explorexr-premium-license-section-content {
    padding: 20px;
}

.explorexr-premium-license-section:hover,
.explorexr-premium-upgrade-section:hover,
.explorexr-premium-addons-section:hover,
.explorexr-premium-help-section:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.explorexr-premium-license-section h2,
.explorexr-premium-upgrade-section h2,
.explorexr-premium-addons-section h2,
.explorexr-premium-help-section h2 {
    padding: 12px 20px;
    margin: 0;
    background-color: #E4E9EC;
    border-bottom: 1px solid #0D152C;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.explorexr-premium-license-section h2 .dashicons,
.explorexr-premium-upgrade-section h2 .dashicons,
.explorexr-premium-addons-section h2 .dashicons,
.explorexr-premium-help-section h2 .dashicons {
    margin-right: 8px;
    color: #8062AA;
}

/* License Info Styles */
.explorexr-premium-license-info {
    padding: 20px;
}

.explorexr-premium-license-info.active {
    border-left: 4px solid #2AACE2;
}

.explorexr-premium-license-info.inactive {
    border-left: 4px solid #8062AA;
}

.explorexr-premium-license-tier {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.explorexr-premium-license-tier .dashicons {
    margin-right: 10px;
    font-size: 24px;
}

.explorexr-premium-license-tier .dashicons-yes-alt {
    color: #ecf7ed;
}

.explorexr-premium-license-tier .dashicons-warning {
    color: #8062AA;
}

.explorexr-premium-license-tier .tier-name {
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
}

.explorexr-premium-license-tier .license-active,
.explorexr-premium-license-tier .license-inactive {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.explorexr-premium-license-tier .license-active {
    background-color: #ecf7ed;
    color: #0f5132;
}

.explorexr-premium-license-tier .license-inactive {
    background-color: #fbeaea;
    color: #842029;
}

.explorexr-premium-license-details {
    margin-bottom: 20px;
}

.explorexr-premium-license-details p {
    margin: 5px 0;
    font-size: 14px;
}

.explorexr-premium-license-form.deactivate {
    text-align: right;
}

.explorexr-premium-license-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 15px;
}

.explorexr-premium-license-input-group input[type="text"] {
    flex: 1;
    min-width: 0;
}

.explorexr-premium-license-input-group .button {
    white-space: nowrap;
    flex-shrink: 0;
}

.explorexr-premium-license-input-group .explorexr-premium-validate-license {
    background-color: #0073aa;
    border-color: #0073aa;
    color: white;
}

.explorexr-premium-license-input-group .explorexr-premium-validate-license:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.explorexr-premium-license-input-group .explorexr-premium-validate-license:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
}

.explorexr-premium-license-error {
    color: #8062AA;
    font-size: 13px;
    margin: 5px 0;
}

/* License Validation Result Styles */
.explorexr-premium-license-validation-result {
    margin: 15px 0;
}

/* Force visibility when there's content */
.explorexr-premium-license-validation-result:not(:empty) {
    display: block !important;
    visibility: visible !important;
}

.explorexr-premium-license-validation-result .notice {
    margin: 0;
    border-radius: 4px;
    padding: 12px 16px;
    display: block !important;
}

.explorexr-premium-license-validation-result .notice.inline {
    display: block !important;
    margin: 0;
}

.explorexr-premium-license-validation-result .notice-success {
    border-left: 4px solid #2AACE2;
    background-color: #f0f9ff;
    color: #1e3a8a;
}

.explorexr-premium-license-validation-result .notice-error {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
    color: #dc3545;
}

.explorexr-premium-license-validation-result .notice-warning {
    border-left: 4px solid #ffc107;
    background-color: #fffbf0;
    color: #856404;
}

.explorexr-premium-license-validation-result .notice-info {
    border-left: 4px solid #0dcaf0;
    background-color: #e7f3ff;
    color: #055160;
}

.explorexr-premium-license-validation-result ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.explorexr-premium-license-validation-result li {
    margin-bottom: 4px;
}

.explorexr-premium-license-validation-result em {
    color: #666;
    font-size: 0.9em;
}

/* License Tiers Grid */
.explorexr-premium-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.explorexr-premium-tier-card {
    border: 1px solid #e2e4e7;
    border-radius: 0px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.explorexr-premium-tier-card .button{
    display: block;
   margin: 12px;
}

.explorexr-premium-tier-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.explorexr-premium-tier-card.current-tier {    
    box-shadow: 0 0 0 1px #8062AA;
}

.tier-header {
    padding: 15px;
    background-color: #E4E9EC;
    border-bottom: 1px solid #0D152C;
    position: relative;
}

.tier-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.current-tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    background-color: #8062AA;
    color: white;
}

.tier-features {
    padding: 15px;
    flex: 1;
}

.tier-features p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

/* Tier button styles */
.tier-upgrade-btn,
.tier-downgrade-btn,
.tier-change-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #0D152C;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.tier-upgrade-btn {
    background-color: #2AACE2;
    border-color: #2AACE2;
    color: white;
}

.tier-upgrade-btn:hover {
    background-color: #1e8bb8;
    border-color: #1e8bb8;
    color: white;
}

.tier-downgrade-btn {
    background-color: #8062AA;
    border-color: #8062AA;
    color: white;
}

.tier-downgrade-btn:hover {
    background-color: #6a4f91;
    border-color: #6a4f91;
    color: white;
}

.tier-change-btn {
    background-color: #E4E9EC;
    font-weight: normal;
}

.tier-change-btn:hover {
    background-color: #2AACE2;
    color: white;
}

/* Add-ons Section */
.addon-limit {
    font-size: 13px;
    font-weight: normal;
    color: #646970;
    margin-left: 10px;
}

.explorexr-premium-no-addons {    
    padding: 20px;
}

.explorexr-premium-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
}

.explorexr-premium-addon-card {
    border: 1px solid #e2e4e7;
    border-radius: 0px;
    background: white;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 200px;
}

.explorexr-premium-addon-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.explorexr-premium-addon-card.selected {
    box-shadow: 0 0 0 2px #2AACE2;
}

.explorexr-premium-addon-card.disabled {
    opacity: 0.6;
    background: #f9f9f9;
}

.explorexr-premium-addon-card.activated {
    border-color: #2AACE2;
    background: linear-gradient(135deg, #f8fcff 0%, #ffffff 100%);
}

.addon-status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.addon-status-indicator .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #2AACE2;
}

.addon-checkbox {
    margin-right: 15px;
    margin-top: 3px;
}

.addon-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.addon-info h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-right: 30px; /* Space for status indicator */
}

.addon-info h3 .dashicons {
    margin-right: 10px;
    color: #2AACE2;
    font-size: 18px;
}

.addon-info p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
    flex: 1;
}

.addon-actions {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 25px;
}

/* Quick License Keys Section */
.explorexr-premium-test-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 15px;
    padding: 20px;
}

.explorexr-premium-test-key-card {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.explorexr-premium-test-key-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.test-key-header {
    padding: 10px 15px;
    background-color: #f0f7ff;
    border-bottom: 1px solid #e2e4e7;
}

.test-key-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}

.test-key-content {
    padding: 15px;
    flex: 1;
}

.test-key-content code {
    display: block;
    background: #f6f7f7;
    padding: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-family: monospace;
    font-size: 13px;
    border-radius: 4px;
    border: 1px dashed #ddd;
    word-break: break-all;
}

.test-key-content p {
    margin: 5px 0 0;
    font-size: 12px;
    text-align: center;
    color: #646970;
}

.explorexr-premium-test-key-card .button {
    margin: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: block;
    text-align: center;
}

.expiry-note {
    padding: 0 20px 15px;
    text-align: center;
    color: #646970;
    margin: 0;
}

/* Help Section Styles - inherits from general section styles */

/* Moving Gradient Banner for Help Section */
.explorexr-premium-help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(270deg, #4555A5, #13BCD4, #F36E24, #EF4681, #4555A5);
    background-size: 400% 400%;
    animation: gradientMove 8s ease infinite;
    z-index: 1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.explorexr-premium-help-section h2 {
    padding: 12px 20px;
    margin: 0;
    background-color: #E4E9EC;
    border-bottom: 1px solid #0D152C;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.help-grid {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    justify-content: start;
    align-items: stretch;    
    gap: 20px;
    padding: 20px;
}

.help-item h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 16px;
}

.help-item p {
    margin: 0;
    color: #646970;
    line-height: 1.6;
    padding-bottom: 8px;
}

.help-item a {
    color: #0073aa;
    text-decoration: none;
}

.help-item a:hover {
    text-decoration: underline;
}


/* Button styles are defined in admin-styles.css and inherited globally */

/* ExploreXR specific button styles */
.explorexr-premium-button-primary {
    background: linear-gradient(135deg, #2AACE2 0%, #8062AA 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.explorexr-premium-button-primary:hover {
    background: linear-gradient(135deg, #1e8bb8 0%, #6a4f91 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.explorexr-premium-button-gradient {
    background: linear-gradient(270deg, #4555A5, #13BCD4, #F36E24, #EF4681);
    background-size: 400% 400%;
    animation: gradientMove 8s ease infinite;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Content Areas - Match Standard Card Structure */
.explorexr-premium-upgrade-section .explorexr-premium-tiers-grid,
.explorexr-premium-addons-section .explorexr-premium-addons-grid,
.explorexr-premium-help-section .help-grid {
    padding: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .explorexr-premium-license-page {
        margin-right: 10px;
    }
}

@media screen and (max-width: 782px) {
    .explorexr-premium-license-input-group {
        flex-direction: column;
    }
    
    .addon-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .addon-actions .button {
        text-align: center;
    }
}

.addon-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f1;
}

.status-text {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #d1ecf1;
    color: #0c5460;
}

.addon-version {
    color: #646970;
    font-size: 12px;
}

/* Additional Addon Limit Text */
.addon-limit {
    color: #646970;
    font-size: 14px;
    font-weight: 500;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.addon-note {
    padding: 20px;
    margin: 0;
    color: #646970;
    font-size: 14px;
    line-height: 1.5;
}

/* Addon Summary Section */
.addon-summary {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
}

.addon-stats {
    display: flex;
    width: 50%;
    gap: 30px;
    padding: 15px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: white;
    border: 2px solid #2271b1;
    border-radius: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #646970;
    margin-top: 5px;
}

.addon-actions {
    text-align: right;
}

.addon-actions .description {
    margin-top: 8px;
    margin-bottom: 0;
}
