/**
 * Hero Section Tabs and Premium Features Styles
 * Modern glassmorphism design with smooth animations
 */

/* Tab Navigation Styles */
.tab-button {
    background: rgba(55, 65, 81, 0.3);
    color: #9CA3AF;
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: rgba(75, 85, 99, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
    color: #E5E7EB;
    transform: translateY(-1px);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-color: rgba(139, 92, 246, 0.6);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    z-index: -1;
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    margin-left: 0.25rem;
    animation: pulse 2s infinite;
}

/* Free badge styling */
.tab-button .bg-green-500\/20 {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    }
}

/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Premium Feature Cards */
.premium-feature-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.6));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 28rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.premium-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
}

.premium-feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
    z-index: -1;
}

/* Premium CTA Button */
.premium-cta-button {
    width: 100%;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.premium-cta-button:hover {
    background: linear-gradient(135deg, #7C3AED, #DB2777);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.premium-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-cta-button:hover::before {
    left: 100%;
}

/* Upgrade Modal Styles */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.upgrade-modal-overlay.active {
    opacity: 1;
}

.upgrade-modal {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.upgrade-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.upgrade-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.close-button:hover {
    background: rgba(75, 85, 99, 0.3);
    color: white;
}

.upgrade-modal-content {
    padding: 2rem;
}

.feature-highlight {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #8B5CF6;
}

.feature-highlight h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
}

.feature-highlight p {
    color: #D1D5DB;
    margin: 0 0 1rem;
}

.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #D1D5DB;
    font-size: 0.875rem;
}

.benefit-item i {
    color: #10B981;
}

.upgrade-benefits {
    margin-bottom: 2rem;
}

.upgrade-benefits h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem;
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upgrade-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #D1D5DB;
}

.upgrade-benefits li i {
    color: #10B981;
}

/* Comparison Section */
.comparison-section {
    margin: 1.5rem 0;
}

.free-vs-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.free-features, .premium-features {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.free-features {
    border-left: 3px solid #10b981;
}

.premium-features {
    border-left: 3px solid #f59e0b;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.05));
}

.free-features h4, .premium-features h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.free-features ul, .premium-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: 0.5rem;
}

.free-features li, .premium-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.free-features li i, .premium-features li i {
    color: #10b981;
    flex-shrink: 0;
}

/* Modal Actions */
.upgrade-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.upgrade-primary-btn {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.upgrade-primary-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.upgrade-secondary-btn {
    background: transparent;
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.upgrade-secondary-btn:hover {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.5);
    color: white;
}

.trial-note {
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Responsive Design for Modal */
@media (max-width: 640px) {
    .free-vs-premium {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .upgrade-modal {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
}

.upgrade-note {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .premium-feature-card {
        padding: 1.5rem;
    }
    
    .upgrade-modal {
        margin: 1rem;
    }
    
    .upgrade-modal-content {
        padding: 1.5rem;
    }
    
    .upgrade-actions {
        flex-direction: column;
    }
}

/* Animation Keyframes */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Smooth transitions for all interactive elements */
* {
    transition-property: transform, opacity, background-color, border-color, color, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}