/* Meal Plans Specific Styles - Black Theme */

/* Enhanced meal cards with black theme */
.meal-card {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.3s ease;
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

.meal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    border-color: #4cb97a !important;
}

/* Card glow effect */
.meal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 0 0 rgba(76, 185, 122, 0);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    z-index: -1;
}

.meal-card:hover::after {
    box-shadow: 0 0 0 8px rgba(76, 185, 122, 0.1);
}

/* Top gradient line animation */
.meal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4cb97a, #22c55e, #4cb97a);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    z-index: 1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Popular plan styling */
.meal-card.popular {
    border: 2px solid #4cb97a !important;
    box-shadow: 0 8px 25px rgba(76, 185, 122, 0.2) !important;
}

.meal-card.popular::before {
    height: 4px;
    background: linear-gradient(90deg, #4cb97a, #22c55e, #16a34a, #4cb97a);
}

/* Nutrition box styling for black theme */
.nutrition-box {
    background-color: #374151 !important;
    border: 1px solid #4b5563 !important;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.nutrition-box:hover {
    background-color: #4b5563 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Plan tags */
.plan-tag {
    background-color: #4cb97a;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.plan-tag:hover {
    background-color: #22c55e;
    transform: scale(1.05);
}

/* Checkout button styling */
.btn-checkout {
    background: linear-gradient(135deg, #4cb97a, #22c55e);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 185, 122, 0.3);
}

.btn-checkout::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 ease;
}

.btn-checkout:hover::before {
    left: 100%;
}

/* Price styling */
.price-display {
    color: #4cb97a;
    font-weight: 700;
    transition: all 0.3s ease;
}

.price-display:hover {
    transform: scale(1.05);
}

/* Meal type icons */
.meal-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .meal-card {
        margin-bottom: 1.5rem;
    }
    
    .nutrition-box {
        padding: 0.5rem;
    }
}

/* Loading animation for cards */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meal-card {
    animation: cardFadeIn 0.6s ease forwards;
}

.meal-card:nth-child(1) { animation-delay: 0.1s; }
.meal-card:nth-child(2) { animation-delay: 0.2s; }
.meal-card:nth-child(3) { animation-delay: 0.3s; }
.meal-card:nth-child(4) { animation-delay: 0.4s; }
.meal-card:nth-child(5) { animation-delay: 0.5s; }
.meal-card:nth-child(6) { animation-delay: 0.6s; }

/* Popular badge animation */
.popular-badge {
    background: linear-gradient(135deg, #4cb97a, #22c55e);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 185, 122, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 185, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 185, 122, 0); }
}

/* Save badge */
.save-badge {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Filter buttons */
.filter-btn {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #4cb97a;
    border-color: #4cb97a;
    color: white;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .meal-card {
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .nutrition-box {
        grid-template-columns: 1fr;
    }
}

/* Text colors for black theme */
.meal-card h3 {
    color: #ffffff !important;
}

.meal-card p {
    color: #d1d5db !important;
}

.meal-card .text-gray-300 {
    color: #d1d5db !important;
}

.meal-card .text-white {
    color: #ffffff !important;
}

/* Background colors for black theme */
.bg-gray-800 {
    background-color: #1f2937 !important;
}

.bg-gray-700 {
    background-color: #374151 !important;
}

.bg-gray-900 {
    background-color: #111827 !important;
}

.bg-black {
    background-color: #000000 !important;
}
