/* ===================================
   AI RECOMMENDATIONS VIEW (PRO FEATURE)
   Intelligent event recommendations with scoring
   =================================== */

/* AI View Container */
.events-grid.ai-view {
    display: block !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
    padding: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(15, 42, 42, 0.95), rgba(13, 79, 79, 0.9));
}

/* AI Header */
.ai-header {
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.15), rgba(78, 205, 196, 0.15));
    border: 2px solid rgba(127, 255, 0, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.ai-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 255, 0, 0.1), transparent);
    animation: aiScan 3s infinite;
}

@keyframes aiScan {
    to { left: 100%; }
}

.ai-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ai-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7FFF00, #6DE800);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(127, 255, 0, 0.4);
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(127, 255, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 48px rgba(127, 255, 0, 0.6);
    }
}

.ai-icon svg {
    color: #0F2A2A;
    width: 40px;
    height: 40px;
}

.ai-header-text {
    flex: 1;
}

.ai-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #7FFF00, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.ai-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* AI Stats */
.ai-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.ai-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ai-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #7FFF00;
    text-shadow: 0 0 20px rgba(127, 255, 0, 0.5);
}

.ai-stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* AI Section */
.ai-section {
    margin-bottom: 4rem;
}

.ai-section-header {
    margin-bottom: 2rem;
}

.ai-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.75rem 0;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.ai-section-count {
    font-size: 1rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.ai-section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* AI Badges */
.ai-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-badge.perfect {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0F2A2A;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.ai-badge.great {
    background: linear-gradient(135deg, #7FFF00, #6DE800);
    color: #0F2A2A;
    box-shadow: 0 4px 20px rgba(127, 255, 0, 0.4);
}

.ai-badge.good {
    background: linear-gradient(135deg, #4ECDC4, #3AA39A);
    color: white;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
}

/* AI Events Grid */
.ai-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* AI Event Card */
.ai-event-card {
    background: rgba(15, 42, 42, 0.6);
    border: 2px solid rgba(127, 255, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ai-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.05), rgba(78, 205, 196, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ai-event-card:hover {
    transform: translateY(-8px);
    border-color: #7FFF00;
    box-shadow: 0 12px 48px rgba(127, 255, 0, 0.3);
}

.ai-event-card:hover::before {
    opacity: 1;
}

/* AI Score Circle */
.ai-event-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-score-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.ai-score-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.ai-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 800;
    color: #7FFF00;
    text-shadow: 0 0 10px rgba(127, 255, 0, 0.5);
}

.ai-match-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(127, 255, 0, 0.2);
    border: 1px solid #7FFF00;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7FFF00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* AI Event Content */
.ai-event-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ai-event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.ai-event-category {
    padding: 0.3rem 0.8rem;
    background: rgba(127, 255, 0, 0.9);
    color: #0F2A2A;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* AI Reasons */
.ai-event-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(127, 255, 0, 0.05);
    border-left: 3px solid #7FFF00;
    border-radius: 8px;
}

.ai-reason {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ai-reason svg {
    color: #7FFF00;
    flex-shrink: 0;
}

/* AI Event Meta */
.ai-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ai-event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-event-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.ai-event-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rating-star {
    font-size: 0.9rem;
}

.rating-reviews {
    color: var(--text-tertiary);
}

/* AI Event Footer */
.ai-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(127, 255, 0, 0.1);
}

.ai-event-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #7FFF00;
}

.ai-event-view-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #7FFF00, #6DE800);
    color: #0F2A2A;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-event-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(127, 255, 0, 0.5);
}

/* Category Colors for AI Cards */
.ai-event-card.technology {
    border-color: rgba(52, 152, 219, 0.5);
}

.ai-event-card.technology:hover {
    border-color: #3498db;
    box-shadow: 0 12px 48px rgba(52, 152, 219, 0.4);
}

.ai-event-card.business {
    border-color: rgba(155, 89, 182, 0.5);
}

.ai-event-card.business:hover {
    border-color: #9b59b6;
    box-shadow: 0 12px 48px rgba(155, 89, 182, 0.4);
}

.ai-event-card.wellness {
    border-color: rgba(39, 174, 96, 0.5);
}

.ai-event-card.wellness:hover {
    border-color: #27ae60;
    box-shadow: 0 12px 48px rgba(39, 174, 96, 0.4);
}

.ai-event-card.networking {
    border-color: rgba(230, 126, 34, 0.5);
}

.ai-event-card.networking:hover {
    border-color: #e67e22;
    box-shadow: 0 12px 48px rgba(230, 126, 34, 0.4);
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */
@media (max-width: 1024px) {
    .ai-header {
        padding: 2rem;
    }
    
    .ai-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-title {
        font-size: 2rem;
    }
    
    .ai-stats {
        gap: 2rem;
    }
    
    .ai-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 768px) {
    .ai-header {
        padding: 1.5rem;
    }
    
    .ai-icon {
        width: 60px;
        height: 60px;
    }
    
    .ai-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .ai-title {
        font-size: 1.5rem;
    }
    
    .ai-subtitle {
        font-size: 0.9rem;
    }
    
    .ai-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ai-stat-value {
        font-size: 2rem;
    }
    
    .ai-events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ai-event-card {
        padding: 1.5rem;
    }
    
    .ai-event-title {
        font-size: 1.1rem;
    }
}
