/* premium.css - Premium Features Styling */

/* =========================================
   PRO BADGES
   ========================================= */

.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pro-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* =========================================
   UPGRADE POPUP
   ========================================= */

.upgrade-popup {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-popup .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.upgrade-popup .close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.upgrade-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.upgrade-popup h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.upgrade-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.upgrade-description strong {
    color: #667eea;
}

.upgrade-benefits {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.upgrade-benefits h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-benefits li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #e8eaff;
}

.upgrade-benefits li:last-child {
    border-bottom: none;
}

.upgrade-benefits li strong {
    color: #333;
}

.upgrade-pricing {
    text-align: center;
    margin-bottom: 25px;
}

.upgrade-pricing .price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.price-period {
    font-size: 1.2rem;
    color: #999;
    margin-left: 5px;
}

.price-note {
    color: #999;
    font-size: 0.9rem;
}

.upgrade-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.upgrade-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.upgrade-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.upgrade-actions .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-actions .btn-secondary:hover {
    background: #f8f9ff;
}

.upgrade-footer {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    line-height: 1.5;
}

.upgrade-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.upgrade-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   PRICING PAGE
   ========================================= */

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.pricing-header p {
    font-size: 1.2rem;
    color: #666;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: white;
    border: 2px solid #e8eaff;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f0f0f0;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-badge.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-card h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 20px 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.plan-features li {
    padding: 12px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li.disabled {
    color: #ccc;
}

.plan-features li.premium {
    color: #667eea;
    font-weight: 500;
}

.plan-note {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* =========================================
   PRICING FAQ
   ========================================= */

.pricing-faq {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-faq h3 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.pricing-faq details {
    background: white;
    border: 2px solid #e8eaff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
}

.pricing-faq summary {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
    list-style: none;
}

.pricing-faq summary::-webkit-details-marker {
    display: none;
}

.pricing-faq summary::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    color: #667eea;
}

.pricing-faq details[open] summary::after {
    content: '−';
}

.pricing-faq p {
    margin-top: 15px;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   PLAN DISPLAY
   ========================================= */

.plan-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plan-free {
    color: #666;
    font-weight: 500;
}

.plan-pro {
    color: #667eea;
    font-weight: 600;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .upgrade-popup {
        padding: 30px 20px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-header h1 {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}
