/* Astro Consultant Widget - Premium Feature */

/* Bubble Button */
.astro-widget-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .astro-widget-bubble {
        bottom: 20px;
        right: 20px;
    }
}

.astro-bubble-btn {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.astro-bubble-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

/* Tooltip */
.astro-bubble-label {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.astro-bubble-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid white;
}

.astro-widget-bubble:hover .astro-bubble-label {
    opacity: 1;
}

.premium-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 9px;
    padding: 3px 7px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Modal Overlay */
.astro-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.astro-modal.active {
    display: flex;
}

/* Modal Content */
.astro-modal-content {
    background: white;
    border-radius: 24px;
    padding: 0;
    max-width: 400px;
    width: 92%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    animation: modalIn 0.35s ease-out;
    overflow: hidden;
}

@keyframes modalIn {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* Modal Header */
.astro-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
}

.astro-modal-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 32px;
    backdrop-filter: blur(10px);
}

.astro-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.astro-modal-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* Close Button */
.astro-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.astro-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Modal Body */
.astro-modal-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

/* Language Selection */
.astro-lang-section {
    margin-bottom: 1.25rem;
}

.astro-lang-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.astro-lang-btn {
    padding: 12px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.astro-lang-btn:hover {
    border-color: #667eea;
    background: #f5f3ff;
    color: #667eea;
}

.astro-lang-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Info Box */
.astro-info-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #166534;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.astro-info-box i {
    font-size: 20px;
    margin-top: 2px;
}

/* Actions */
.astro-modal-actions {
    display: flex;
    gap: 10px;
}

.astro-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.astro-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.astro-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.astro-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.astro-btn-secondary:hover {
    background: #e2e8f0;
}

/* Premium Prompt Modal */
.astro-premium-prompt .astro-modal-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.astro-premium-prompt .astro-modal-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.astro-premium-prompt .astro-modal-title {
    color: #78350f;
}

.astro-premium-prompt .astro-modal-subtitle {
    color: #92400e;
}

.astro-premium-prompt .astro-modal-close {
    background: rgba(120, 53, 15, 0.15);
    color: #78350f;
}

.astro-premium-prompt .astro-modal-close:hover {
    background: rgba(120, 53, 15, 0.25);
}

/* Premium Features List */
.astro-premium-features {
    padding: 0 1.75rem 1rem;
}

.astro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.astro-feature-item:last-child {
    border-bottom: none;
}

.astro-feature-item i {
    color: #10b981;
    font-size: 18px;
}

.astro-premium-actions {
    padding: 0 1.75rem 1.75rem;
}
