/* =============================== HOMEPAGE REDESIGN STYLES ================================= */

/* What's Cooking Today Section */
.whats-cooking-today {
   background: #2c3e50;
   position: relative;
   overflow: hidden;
}

.whats-cooking-today::before {
   content: '';
   position: absolute;
   top: -50%;
   right: -10%;
   width: 500px;
   height: 500px;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 50%;
   z-index: 0;
}

.whats-cooking-today::after {
   content: '';
   position: absolute;
   bottom: -30%;
   left: -5%;
   width: 400px;
   height: 400px;
   background: rgba(255, 255, 255, 0.03);
   border-radius: 50%;
   z-index: 0;
}

.whats-cooking-today .container {
   position: relative;
   z-index: 1;
}

.cooking-today-badge {
   display: inline-block;
   width: 80px;
   height: 80px;
   background: rgba(255, 255, 255, 0.2);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 20px;
   backdrop-filter: blur(10px);
   animation: float 3s ease-in-out infinite;
}

.cooking-today-badge i {
   font-size: 40px;
   color: #fff;
   animation: pulse 2s ease-in-out infinite;
}

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

/* Featured Recipe Card */
.featured-recipe-card {
   background: rgba(255, 255, 255, 0.95);
   border-radius: 20px;
   overflow: hidden;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   position: relative;
}

.featured-recipe-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.featured-badge {
   position: absolute;
   top: 20px;
   left: 20px;
   background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
   color: white;
   padding: 8px 20px;
   border-radius: 50px;
   font-weight: 600;
   font-size: 14px;
   z-index: 10;
   display: flex;
   align-items: center;
   gap: 8px;
   box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
   animation: pulse 2s ease-in-out infinite;
}

.featured-badge i {
   font-size: 18px;
}

.featured-image-wrapper {
   position: relative;
   height: 350px;
   overflow: hidden;
}

.featured-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s ease;
}

.featured-recipe-card:hover .featured-image {
   transform: scale(1.1);
}

.image-overlay {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 150px;
   background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.featured-content {
   padding: 30px;
   background: #34495e;
   color: white;
}

.featured-meta {
   display: flex;
   flex-wrap: wrap;
   gap: 15px;
}

.meta-item {
   display: inline-flex;
   align-items: center;
   gap: 5px;
   background: rgba(255, 255, 255, 0.2);
   padding: 6px 15px;
   border-radius: 20px;
   font-size: 13px;
   font-weight: 500;
   backdrop-filter: blur(10px);
}

.meta-item i {
   font-size: 16px;
}

.featured-title {
   font-size: 28px;
   font-weight: 700;
   margin-bottom: 15px;
   line-height: 1.3;
}

.featured-title a {
   color: white;
   text-decoration: none;
   transition: opacity 0.3s ease;
}

.featured-title a:hover {
   opacity: 0.8;
}

.featured-description {
   font-size: 15px;
   line-height: 1.6;
   margin-bottom: 25px;
}

.featured-actions {
   display: flex;
   gap: 15px;
   flex-wrap: wrap;
}

.featured-actions .btn {
   font-weight: 600;
   border-radius: 50px;
   padding: 12px 30px;
   transition: all 0.3s ease;
}

.featured-actions .btn-light {
   background: white;
   color: #2c3e50;
   border: none;
}

.featured-actions .btn-light:hover {
   background: #f8f9fa;
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.featured-actions .btn-outline-light {
   border: 2px solid white;
   color: white;
   background: transparent;
}

.featured-actions .btn-outline-light:hover {
   background: white;
   color: #2c3e50;
   transform: translateY(-2px);
}

/* Today Highlights */
.today-highlights {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

.highlight-card {
   background: rgba(255, 255, 255, 0.15);
   backdrop-filter: blur(20px);
   border-radius: 20px;
   padding: 25px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   transition: all 0.3s ease;
   color: white;
}

.highlight-card:hover {
   background: rgba(255, 255, 255, 0.2);
   transform: translateX(5px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-icon {
   width: 60px;
   height: 60px;
   background: rgba(255, 255, 255, 0.2);
   border-radius: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 20px;
   backdrop-filter: blur(10px);
}

.highlight-icon i {
   font-size: 30px;
   color: white;
}

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

.highlight-header h5 {
   font-size: 18px;
   font-weight: 700;
   color: white;
   margin-bottom: 5px;
}

.chef-info {
   margin-top: 20px;
}

.chef-avatar {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   object-fit: cover;
   border: 3px solid rgba(255, 255, 255, 0.3);
}

.chef-avatar-placeholder {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.2);
   display: flex;
   align-items: center;
   justify-content: center;
   border: 3px solid rgba(255, 255, 255, 0.3);
}

.chef-avatar-placeholder i {
   font-size: 30px;
   color: white;
}

.tip-content {
   margin-top: 20px;
}

.tip-quote {
   position: relative;
   padding-left: 30px;
}

.tip-quote i {
   position: absolute;
   left: 0;
   top: 0;
   font-size: 24px;
   opacity: 0.5;
}

.tip-quote p {
   font-size: 15px;
   line-height: 1.6;
   color: rgba(255, 255, 255, 0.9);
}

.tip-author {
   padding-left: 30px;
}

.highlight-card .btn {
   font-weight: 600;
   border-radius: 50px;
   transition: all 0.3s ease;
}

.highlight-card .btn-outline-light {
   border: 2px solid rgba(255, 255, 255, 0.5);
   color: white;
}

.highlight-card .btn-outline-light:hover {
   background: white;
   color: #2c3e50;
   border-color: white;
}

.highlight-card .btn-light {
   background: white;
   color: #2c3e50;
   border: none;
}

.highlight-card .btn-light:hover {
   background: #f8f9fa;
   transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
   .featured-image-wrapper {
      height: 250px;
   }
   
   .featured-title {
      font-size: 22px;
   }
   
   .featured-content {
      padding: 20px;
   }
}

@media (max-width: 767px) {
   .cooking-today-badge {
      width: 60px;
      height: 60px;
   }
   
   .cooking-today-badge i {
      font-size: 30px;
   }
   
   .featured-badge {
      top: 15px;
      left: 15px;
      padding: 6px 15px;
      font-size: 12px;
   }
   
   .featured-image-wrapper {
      height: 200px;
   }
   
   .featured-title {
      font-size: 20px;
   }
   
   .featured-actions {
      flex-direction: column;
   }
   
   .featured-actions .btn {
      width: 100%;
   }
   
   .highlight-card {
      padding: 20px;
   }
}

/* Hover Effects */
.hover-lift {
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Category Cards */
.category-card {
   transition: all 0.3s ease;
   cursor: pointer;
}

.category-card:hover {
   transform: scale(1.05);
   box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-light {
   background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Alert Positioning */
.copyAlert {
   display: none;
   position: fixed;
   top: 20px;
   right: 20px;
   z-index: 9999;
   animation: slideIn 0.3s ease;
}

@keyframes slideIn {
   from {
      transform: translateX(100%);
      opacity: 0;
   }
   to {
      transform: translateX(0);
      opacity: 1;
   }
}

/* Community Posts Styling */
.community-posts {
   max-height: 400px;
   overflow-y: auto;
}

.community-posts::-webkit-scrollbar {
   width: 6px;
}

.community-posts::-webkit-scrollbar-track {
   background: #f1f1f1;
   border-radius: 10px;
}

.community-posts::-webkit-scrollbar-thumb {
   background: #888;
   border-radius: 10px;
}

.community-posts::-webkit-scrollbar-thumb:hover {
   background: #555;
}

/* Section Headers */
.section-header h2 {
   position: relative;
   display: inline-block;
   padding-bottom: 15px;
}

.section-header h2::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 80px;
   height: 3px;
   background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
   border-radius: 2px;
}

/* Card Animations */
.card {
   transition: all 0.3s ease;
}

.card:hover {
   box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Badge Styles */
.badge {
   font-weight: 600;
   padding: 0.5em 0.8em;
}

/* Mood Cards */
.mood-card {
   border: 2px solid transparent;
   transition: all 0.3s ease;
}

.mood-card:hover {
   border-color: #667eea;
   transform: translateY(-10px);
}

/* Featured Section Styling */
.featured-today {
   background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
   border-radius: 15px;
   padding: 30px;
}

/* Service Spotlight Cards */
.service-card {
   position: relative;
   overflow: hidden;
}

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

.service-card:hover::before {
   left: 100%;
}

/* Trending Badge Animation */
@keyframes pulse {
   0%, 100% {
      transform: scale(1);
   }
   50% {
      transform: scale(1.05);
   }
}

.badge-danger {
   animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
   .section-header h2 {
      font-size: 1.5rem;
   }
   
   .hover-lift:hover {
      transform: none;
   }
   
   .category-card:hover {
      transform: none;
   }
}

/* Loading Animation for Images */
.img-fluid {
   transition: opacity 0.3s ease;
}

.img-fluid:hover {
   opacity: 0.9;
}

/* Button Enhancements */
.btn {
   transition: all 0.3s ease;
}

.btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Owl Carousel Custom Styling */
.owl-carousel .owl-item img {
   border-radius: 10px;
}

.owl-carousel .owl-nav button {
   background: rgba(0,0,0,0.5) !important;
   color: white !important;
   border-radius: 50% !important;
   width: 40px !important;
   height: 40px !important;
   transition: all 0.3s ease !important;
}

.owl-carousel .owl-nav button:hover {
   background: rgba(0,0,0,0.8) !important;
   transform: scale(1.1);
}

/* Why RecipesBible Section */
.why-recipesbible-icon {
   transition: transform 0.3s ease;
}

.why-recipesbible-icon:hover {
   transform: rotate(360deg);
}

/* New This Week Badge */
.badge-success {
   background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
   border: none;
}

/* Trending Badge */
.badge-danger {
   background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
   border: none;
}

/* Product Cards */
.product-card {
   border: 1px solid #e0e0e0;
   transition: all 0.3s ease;
}

.product-card:hover {
   border-color: #667eea;
   box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Smooth Scroll */
html {
   scroll-behavior: smooth;
}

/* Text Truncation */
.text-truncate-2 {
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.text-truncate-3 {
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}
