/**
 * V2 Visual Enhancements - Bold, Modern, Professional
 * Makes new features stand out dramatically
 */

/* ========================================
   NEW FEATURE BADGES & HIGHLIGHTS
   ======================================== */

.new-feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.feature-highlight {
    position: relative;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    border-radius: 1rem;
    animation: border-glow 3s infinite;
}

@keyframes border-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
}

/* ========================================
   ENHANCED QUICK ACTION CARDS
   ======================================== */

.quick-action-card {
    position: relative;
    padding: 2rem;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.quick-action-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.quick-action-chip {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quick-action-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.quick-action-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Accent variations */
.accent-nutrition {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.accent-nutrition .quick-action-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.accent-nutrition:hover {
    border-color: #f093fb;
}

/* ========================================
   PREGNANCY WEEK BADGE - HEADER
   ======================================== */

#headerWeekBadge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    animation: gentle-pulse 3s infinite;
    transition: all 0.3s ease;
}

#headerWeekBadge:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    }
}

/* ========================================
   ENHANCED FOOD SAFETY MODAL
   ======================================== */

#foodSafetyModal .modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#foodSafetyModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
}

#foodSafetyModal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

#foodSafetyModal .modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Enhanced search input */
#foodSearchInput {
    border: 3px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#foodSearchInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Autocomplete dropdown */
#foodAutocomplete {
    border: 2px solid #667eea;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#foodAutocomplete .list-group-item {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

#foodAutocomplete .list-group-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(-8px);
    cursor: pointer;
}

/* Food result cards */
.card.border-success {
    border-width: 3px !important;
    border-color: #48bb78 !important;
    box-shadow: 0 8px 30px rgba(72, 187, 120, 0.2);
}

.card.border-warning {
    border-width: 3px !important;
    border-color: #ed8936 !important;
    box-shadow: 0 8px 30px rgba(237, 137, 54, 0.2);
}

.card.border-danger {
    border-width: 3px !important;
    border-color: #f56565 !important;
    box-shadow: 0 8px 30px rgba(245, 101, 101, 0.2);
}

.card-header {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
}

.bg-success-subtle {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%) !important;
}

.bg-warning-subtle {
    background: linear-gradient(135deg, #feebc8 0%, #fbd38d 100%) !important;
}

.bg-danger-subtle {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%) !important;
}

/* Badge enhancements */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge.bg-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

/* Quick access buttons */
.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ========================================
   ENHANCED NAVIGATION
   ======================================== */

.navbar {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 0 !important;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

.nav-link {
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-link.active::after {
    display: none; /* Remove underline, we have full bg now */
}

.dropdown-menu {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
}

.dropdown-item {
    border-radius: 0.75rem;
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #667eea;
    transform: translateX(-5px);
}

/* ========================================
   CATEGORY TABS ENHANCEMENT
   ======================================== */

.nav-pills .nav-link {
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:not(.active) {
    background: #f7fafc;
    color: #4a5568;
}

.nav-pills .nav-link:not(.active):hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ========================================
   DATABASE STATS ENHANCEMENT
   ======================================== */

.bg-light {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
}

.fs-4 {
    font-weight: 800 !important;
    font-size: 2.5rem !important;
}

/* ========================================
   ALERT ENHANCEMENTS
   ======================================== */

.alert {
    border-radius: 1rem;
    border: none;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border-left: 6px solid #48bb78;
}

.alert-warning {
    background: linear-gradient(135deg, #feebc8 0%, #fbd38d 100%);
    color: #744210;
    border-left: 6px solid #ed8936;
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    color: #742a2a;
    border-left: 6px solid #f56565;
}

.alert-info {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
    color: #2c5282;
    border-left: 6px solid #4299e1;
}

/* ========================================
   LOADING & ANIMATION ENHANCEMENTS
   ======================================== */

.spinner-border {
    border-width: 4px;
    border-color: #667eea;
    border-right-color: transparent;
}

/* ========================================
   MOBILE ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    .quick-action-card {
        padding: 1.5rem;
    }
    
    .quick-action-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .quick-action-title {
        font-size: 1.1rem;
    }
    
    .quick-action-description {
        font-size: 0.9rem;
    }
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.btn-lg {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
}

/* ========================================
   HERO SECTION ENHANCEMENT
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
}

.hero-badges .hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

@media (max-width: 991px) {
    #headerWeekBadge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .new-feature-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    #foodSafetyModal .modal-body {
        padding: 1.5rem;
    }
}
