/**
 * AIOX Frontend Styles - WITH FREE TRIAL SUPPORT
 * Path: assets/css/frontend.css
 * 
 * ADD THESE STYLES TO YOUR EXISTING frontend.css
 */

/* ========================================
   FREE TRIAL BADGE STYLES
   ======================================== */

.trial-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    margin-bottom: 15px;
    animation: pulse-trial 2s infinite;
    position: relative;
    z-index: 10;
}

@keyframes pulse-trial {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }
}

.trial-badge i {
    margin-right: 5px;
    animation: bounce-gift 1s infinite;
}

@keyframes bounce-gift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Trial notice in pricing cards */
.trial-note {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    display: inline-block;
}

/* Positioned trial badge (top-right corner) */
.pricing-card .trial-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    transform: rotate(12deg);
    font-size: 11px;
    padding: 6px 12px;
}

/* ========================================
   TRIAL INFO SECTION
   ======================================== */

.trial-info-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.trial-info-section h3 {
    color: #166534;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trial-info-section h3 i {
    color: #16a34a;
    font-size: 24px;
}

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

.trial-info-section li {
    padding: 10px 0;
    color: #166534;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.trial-info-section li i {
    color: #16a34a;
    margin-top: 2px;
    font-size: 18px;
    flex-shrink: 0;
}

/* ========================================
   ACTIVE TRIAL STATUS DISPLAY
   ======================================== */

.active-trial-status {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.active-trial-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.active-trial-status .trial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.active-trial-status .trial-icon {
    font-size: 32px;
    color: #16a34a;
}

.active-trial-status .trial-title {
    font-size: 20px;
    font-weight: 700;
    color: #166534;
    margin: 0;
}

.active-trial-status .trial-details {
    color: #166534;
    font-size: 14px;
    line-height: 1.6;
}

.active-trial-status .trial-countdown {
    display: inline-block;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: #16a34a;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========================================
   ENHANCED PRICING CARDS WITH TRIAL
   ======================================== */

.pricing-card.has-trial {
    border: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.pricing-card.has-trial:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
}

.pricing-card.has-trial::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

/* Trial CTA button styling */
.trial-cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.trial-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

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

.trial-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    color: white;
}

.trial-cta-button i {
    margin-right: 8px;
}

/* ========================================
   TRIAL REMINDER/WARNING MESSAGES
   ======================================== */

.trial-ending-soon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.trial-ending-soon .icon {
    font-size: 28px;
    color: #d97706;
}

.trial-ending-soon .content {
    flex: 1;
}

.trial-ending-soon .title {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px 0;
}

.trial-ending-soon .message {
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   TRIAL FEATURES LIST
   ======================================== */

.trial-features {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.trial-features h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

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

.trial-features li {
    padding: 12px 0;
    color: #4b5563;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
}

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

.trial-features li i {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

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

@media (max-width: 768px) {
    .trial-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .pricing-card .trial-badge {
        top: -10px;
        right: -8px;
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .trial-info-section {
        padding: 20px;
    }
    
    .trial-info-section h3 {
        font-size: 18px;
    }
    
    .trial-info-section li {
        font-size: 14px;
    }
    
    .active-trial-status .trial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .active-trial-status .trial-icon {
        font-size: 24px;
    }
    
    .active-trial-status .trial-title {
        font-size: 18px;
    }
    
    .trial-ending-soon {
        flex-direction: column;
    }
    
    .trial-cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   UTILITY CLASSES FOR TRIAL DISPLAYS
   ======================================== */

.trial-highlight {
    color: #16a34a;
    font-weight: 600;
}

.trial-muted {
    color: #6b7280;
    font-size: 14px;
}

.trial-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
    margin: 20px 0;
}