/* 14-Day Premium Trial Overlay Styles */

.trial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.trial-overlay.show {
    opacity: 1;
    visibility: visible;
}

.trial-overlay-content {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.trial-card {
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.trial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.trial-card.trial-active::before {
    background: linear-gradient(90deg, #10B981, #059669);
}

.trial-card.trial-expired::before {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.trial-header {
    text-align: center;
    margin-bottom: 2rem;
}

.trial-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.trial-icon.active {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.trial-icon.expired {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.trial-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trial-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.trial-features {
    margin-bottom: 2rem;
}

.trial-features h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.trial-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trial-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.trial-features li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 0.9rem;
    width: 16px;
}

.trial-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trial-cta {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.trial-cta p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.trial-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.trial-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.trial-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.trial-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.trial-btn-primary:active {
    transform: translateY(0);
}

.trial-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.trial-btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.trial-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.trial-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trial-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trial-footer i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trial-overlay-content {
        width: 95%;
        margin: 1rem;
    }
    
    .trial-card {
        padding: 1.5rem;
    }
    
    .trial-header h2 {
        font-size: 1.5rem;
    }
    
    .trial-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .trial-actions {
        gap: 0.5rem;
    }
    
    .trial-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Animation for trial icon */
.trial-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    }
    100% {
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    }
}

.trial-icon.active {
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    }
    100% {
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }
}

.trial-icon.expired {
    animation: pulseOrange 2s infinite;
}

@keyframes pulseOrange {
    0% {
        box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
    }
    100% {
        box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    }
}
