/* licensing.css - Premium Glassmorphic Modal & Glowing Badges */

/* Tier-specific variables */
:root {
    --free-accent: #00d2ff;
    --free-glow: rgba(0, 210, 255, 0.3);
    
    --pro-accent: #00ffff;
    --pro-glow: rgba(0, 255, 255, 0.4);
    
    --studio-accent: #0059ff;
    --studio-glow: rgba(0, 89, 255, 0.4);
    
    --error-accent: #ff3366;
    --error-glow: rgba(255, 51, 102, 0.3);
    
    --success-accent: #00ff88;
    --success-glow: rgba(0, 255, 136, 0.3);
}

/* Quota / Licensing Header Pill */
.quota-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.quota-pill:hover {
    transform: translateY(-1px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
}

.quota-pill.tier-free {
    border-color: rgba(0, 210, 255, 0.25);
    color: var(--free-accent);
}
.quota-pill.tier-free:hover {
    border-color: var(--free-accent);
    box-shadow: 0 0 12px var(--free-glow);
    text-shadow: 0 0 4px var(--free-glow);
}

.quota-pill.tier-pro {
    border-color: rgba(255, 68, 204, 0.25);
    color: var(--pro-accent);
    animation: pro-pulse 3s infinite alternate;
}
.quota-pill.tier-pro:hover {
    border-color: var(--pro-accent);
    box-shadow: 0 0 15px var(--pro-glow);
    text-shadow: 0 0 4px var(--pro-glow);
}

.quota-pill.tier-studio {
    border-color: rgba(255, 215, 0, 0.25);
    color: var(--studio-accent);
    animation: studio-pulse 3s infinite alternate;
}
.quota-pill.tier-studio:hover {
    border-color: var(--studio-accent);
    box-shadow: 0 0 15px var(--studio-glow);
    text-shadow: 0 0 4px var(--studio-glow);
}

@keyframes pro-pulse {
    0% { box-shadow: 0 0 4px rgba(255, 68, 204, 0.1); }
    100% { box-shadow: 0 0 10px rgba(255, 68, 204, 0.25); }
}

@keyframes studio-pulse {
    0% { box-shadow: 0 0 4px rgba(255, 215, 0, 0.1); }
    100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.25); }
}

/* Modal Overlay */
.licensing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.licensing-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.licensing-modal-card {
    width: 100%;
    max-width: 480px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 70%), #0b132b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 210, 255, 0.05);
    padding: 30px;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    color: #f8fafc;
    font-family: 'Google Sans', 'Roboto', sans-serif;
}

.licensing-modal-overlay.active .licensing-modal-card {
    transform: translateY(0) scale(1);
}

/* Close Button */
.licensing-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s, transform 0.2s;
}

.licensing-modal-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Content Elements */
.licensing-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
    color: #ffffff;
    text-align: center;
}

.licensing-modal-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.5;
}

/* Status Panel */
.licensing-status-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.status-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.status-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.status-value.tier-free { color: var(--free-accent); }
.status-value.tier-pro { color: var(--pro-accent); text-shadow: 0 0 6px var(--pro-glow); }
.status-value.tier-studio { color: var(--studio-accent); text-shadow: 0 0 6px var(--studio-glow); }

/* Progress Bar for quota */
.quota-progress-container {
    width: 100%;
    margin-top: 8px;
}

.quota-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.quota-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d2ff, #0059ff);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.quota-progress-fill.warning {
    background: linear-gradient(90deg, #ffcc00, #ff8800);
}

.quota-progress-fill.danger {
    background: linear-gradient(90deg, #ff3366, #ff0055);
}

.quota-progress-text {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

/* Activation Form */
.licensing-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.licensing-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
}

.licensing-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.licensing-input {
    width: 100%;
    background: rgba(4, 8, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.88rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.licensing-input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
}

.licensing-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.licensing-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.licensing-btn-primary {
    background: #00d2ff;
    color: #040812;
}

.licensing-btn-primary:hover {
    background: #33ddff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.licensing-btn-primary:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.licensing-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    margin-top: 8px;
}

.licensing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.licensing-btn-danger {
    background: rgba(255, 51, 102, 0.08);
    border-color: rgba(255, 51, 102, 0.2);
    color: #ff3366;
    margin-top: 15px;
}

.licensing-btn-danger:hover {
    background: rgba(255, 51, 102, 0.15);
    border-color: #ff3366;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.15);
}

/* Alert Notification Banner */
.licensing-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 16px;
    display: none;
    animation: fade-in-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.licensing-alert.error {
    display: block;
    background: rgba(255, 51, 102, 0.08);
    border: 1px solid rgba(255, 51, 102, 0.25);
    color: #ff3366;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.05);
}

.licensing-alert.success {
    display: block;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.05);
}

@keyframes fade-in-slide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Pricing prompt */
.pricing-prompt-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    font-size: 0.83rem;
    color: #64748b;
}

.pricing-prompt-box a {
    color: #00d2ff;
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.2s;
    margin-left: 4px;
}

.pricing-prompt-box a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

/* Block/Wall Screen for Studio Team Required */
.licensing-block-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.licensing-block-card {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.03), rgba(0,0,0,0) 70%), #040812;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.05);
    border-radius: 20px;
    animation: fade-in-scale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #f8fafc;
    box-sizing: border-box;
}

@keyframes fade-in-scale {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

.block-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse-gold 2s infinite alternate;
}

@keyframes pulse-gold {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,215,0,0.2)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(255,215,0,0.5)); }
}

.block-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.block-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 30px 0;
}

.block-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
