/* Page specific styles for genki_recommendations.html */

/* Header Section */
.section-title {
  text-align: left;
}



.section-title h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title .line {
  margin: 0;
  width: 100px;
}

#greeting-msg {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Category Grid Item Colors */
.category-tile .icon-red {
  color: #b91c1c;
}
.category-tile .icon-orange {
  color: #f97316;
}
.category-tile .icon-amber {
  color: #f59e0b;
}
.category-tile .icon-sky {
  color: #0ea5e9;
}
.category-tile .icon-blue {
  color: #3b82f6;
}
.category-tile .icon-sage {
  color: #5c7f67;
}
.category-tile .icon-purple {
  color: #8b5cf6;
}
.category-tile .icon-rose {
  color: #e11d48;
}

/* Group Titles */
.group-title.healing {
  color: #10b981;
}
.group-title.insight {
  color: #8b5cf6;
}

/* Sidebar Advice */
.sidebar-advice p {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.6;
}

.text-accent-orange {
  color: #f97316;
  font-weight: bold;
}

/* Roulette Highlight Animation */
.roulette-highlight {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  border: 2px solid #10b981;
  transition: all 0.1s ease;
}

.recommended-highlight {
  border: 2px solid #10b981;
  background-color: #ecfdf5;
  position: relative;
  /* Removed overflow: hidden so the badge can pop out */
  z-index: 1; 
}

.recommended-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(16, 185, 129, 0.2) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shine 3s infinite linear;
  pointer-events: none;
  border-radius: inherit;
  z-index: -1;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.recommend-badge {
  position: absolute;
  top: -12px;
  right: -10px;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 100;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================
   Animations
   ========================================= */
.reveal {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Hero Section & Video Theater (Ported from genki_methods)
   ========================================= */
.chapter-hero {
  background: linear-gradient(135deg, rgba(165, 243, 252, 0.8) 0%, rgba(56, 189, 248, 0.8) 100%);
  padding: 2.5rem 2rem 2rem; /* Reduced padding */
  border-radius: 30px; /* Slightly reduced radius */
  text-align: center;
  margin-bottom: 2.5rem; /* Reduced from 3.5rem */
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Video Theater Adaptation for Hero (YouTube-style Rectangular) */
.video-theater-container.hero-video-mode {
    width: 280px; /* Reduced from 320px */
    max-width: 80%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 auto 1.5rem; /* Reduced from 2rem */
    padding: 0;
    border-radius: 20px; /* Rounded card style */
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 5px solid #fff;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.video-theater-container.hero-video-mode.is-playing {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
}

.video-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.video-theater-container.hero-video-mode .video-frame {
    padding-top: 0; /* Use aspect-ratio in normal state */
}

.video-theater-container.hero-video-mode.is-playing .video-frame {
    padding-top: 56.25%; /* 16:9 when playing */
}

.video-frame video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.video-overlay, .video-replay-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 20; transition: all 0.4s ease;
    text-align: center;
}

.video-overlay {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
}

.video-theater-container.hero-video-mode:hover .video-overlay {
    background: rgba(255, 255, 255, 0.2);
}

.video-replay-overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 0; visibility: hidden;
    backdrop-filter: blur(8px);
    color: #fff;
}

.video-theater-container.is-playing .video-overlay { opacity: 0; visibility: hidden; }
.video-theater-container.is-finished .video-replay-overlay { opacity: 1; visibility: visible; }

.play-circle {
    width: 60px; height: 60px; 
    background: linear-gradient(135deg, #ff0000, #cc0000); /* YouTube Red Gradient */
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.video-theater-container.hero-video-mode.is-playing .play-circle {
    width: 80px; height: 80px;
}

.play-circle i { color: white; font-size: 1.5rem; transform: translateX(2px); } /* Visual balancing of triangle */
.play-text { 
    color: #cc0000; margin-top: 1rem; font-weight: 800; font-size: 0.75rem; 
    letter-spacing: 0.15em; text-transform: uppercase;
    text-align: center; width: 100%; display: block;
}

.play-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.video-theater-container.is-playing .play-text { display: none; }

.replay-trigger { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.replay-trigger i { font-size: 2.5rem; color: #fff; }

/* Video Seeker Styling */
.video-controls-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    padding: 2.5rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 30;
    pointer-events: none;
}

.video-theater-container.is-playing .video-controls-ui {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.progress-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar-container:hover {
    height: 8px;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ff0000; /* Red progress bar */
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.progress-bar-container::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    left: var(--progress, 0%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar-container:hover::after {
    opacity: 1;
}

.time-display {
    color: #fff;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Decorative Icons with Parallax Support */
.pharmacist-deco-1 {
    position: absolute;
    top: 15%;
    left: 8%;
    font-size: 7rem;
    color: rgba(255,255,255,0.15);
    transform: rotate(-20deg) translate(var(--mx, 0px), var(--my, 0px));
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.pharmacist-deco-2 {
    position: absolute;
    bottom: 8%;
    right: 8%;
    font-size: 8rem;
    color: rgba(255,255,255,0.15);
    transform: rotate(15deg) translate(var(--mx2, 0px), var(--my2, 0px));
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.chapter-hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

@keyframes float-icon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-icon-wrap i {
  font-size: 3rem;
  color: #0ea5e9;
  background: -webkit-linear-gradient(45deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chapter-hero h1 {
  margin: 0 auto;
  line-height: 1.4;
  color: #0f172a;
}

.hero-top-text {
  font-family: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #334155;
  display: inline-block;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

.hero-main-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 2.6rem; /* Reduced from 3.8rem */
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  padding: 0.5rem 0; /* Reduced padding */
  margin-top: 0; /* Reduced margin */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Gentle glow for the rounded text */
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.3));
}

.chapter-hero:hover .hero-main-title {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 15px 30px rgba(59, 130, 246, 0.25));
}

.chapter-hero .line {
  margin: 1rem auto 0; /* Reduced from 1.5rem */
  width: 60px;
  background: #3b82f6; /* Accent color for the line */
  height: 4px;
  border-radius: 2px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 1.8rem;
    padding: 0.2rem 1rem;
  }
}

/* =========================================
   3-Column Experimental Layout
   ========================================= */
/* =========================================
   Layout Override for 3-Column (PC & Split Screen)
   ========================================= */
/* =========================================
   Layout Override: 2-Column Mode (Split Screen / Tablet Landscape)
   Range: 920px - 1199px
   ========================================= */
@media (min-width: 920px) {
    .layout-container {
        display: grid;
        /* Left Sidebar | Main Content */
        grid-template-columns: 240px 1fr; 
        gap: 3rem;
        padding: 4rem 2% 8rem 2%; 
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .sidebar {
        grid-column: 1;
        width: 100% !important;
        order: 1; /* Explicit Order */
        grid-row: 1 / span 2; /* Span across height */
    }

    .main-content {
        grid-column: 2;
        width: 100% !important;
        margin: 0 auto;
        order: 2; /* Explicit Order */
    }

    /* Right sidebar moves to bottom of main content column */
    .sidebar-discovery {
        grid-column: 2; /* Same column as main content */
        width: 100%;
        position: relative; /* No sticky */
        top: 0;
        margin-top: 4rem;
        display: block !important;
        order: 3; /* Explicit Order */
    }
}

/* =========================================
   Layout Override: 3-Column Mode (Full PC)
   Range: 1200px+
   ========================================= */
@media (min-width: 1200px) {
    .layout-container {
        grid-template-columns: 240px 1fr 320px; /* 3 Columns */
        gap: 4rem;
    }

    .sidebar-discovery {
        grid-column: 3; /* Global Right Side */
        position: sticky;
        top: calc(var(--nav-height) + 3rem);
        margin-top: 0;
    }
}

/* Large Screen Optimization */
@media (min-width: 1400px) {
    .layout-container {
        grid-template-columns: 260px 1fr 380px;
        gap: 8rem;
        padding-left: 5%;
        padding-right: 5%;
    }
    .main-content { max-width: 1000px; }
}

/* Response for Mobile & Tablet Portrait (Layout override) */
@media (max-width: 919px) {
    .sidebar-discovery {
        display: block !important;
        width: 100%;
        order: 3; /* Below the main content and navigation sidebar */
        margin-top: 4rem;
        position: relative;
        top: 0;
        animation: fadeInUp 0.8s ease-out both;
    }

    .layout-container {
        display: flex;
        flex-direction: column;
        padding-left: 5%;
        padding-right: 5%;
    }

    .main-content { 
        order: 1; 
        max-width: 100% !important;
        width: 100% !important;
    }
    .sidebar { 
        order: 2; 
        margin-top: 3rem; 
        width: 100% !important;
    }
}

/* Flap Card (3D Flip Animation) */
.discovery-cards {
    perspective: 1000px;
}

.discovery-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    display: block;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    color: inherit;
    
    /* Animation Base */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.discovery-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #3b82f6;
    z-index: 10;
}

/* Shuffle Animation (managed by container class) */
.discovery-cards.shuffling .discovery-card {
    animation: flipVert 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Flapping State (managed by JS) */
.discovery-card.flipping {
    animation: flipVert 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes flipVert {
    0% { transform: rotateX(0deg); opacity: 1; }
    45% { transform: rotateX(-90deg); opacity: 0.5; }
    55% { transform: rotateX(90deg); opacity: 0.5; }
    100% { transform: rotateX(0deg); opacity: 1; }
}


@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal-card {
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-shuffle {
    background: #eff6ff;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.1);
}

.btn-shuffle:hover {
    background: #3b82f6;
    color: white;
    transform: rotate(180deg);
}

.discovery-card .card-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: inline-block;
}

.discovery-card .card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.discovery-card .card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* Typography Update */
.stylish-font {
  font-family: 'Zen Maru Gothic', sans-serif;
  letter-spacing: 0.05em;
}

.accent-word {
  font-size: 1.1em;
  font-family: 'Kaisei Opti', serif;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* =========================================
   Intro Section (2 Column Layout)
   ========================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Give card slightly more space */
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Responsive adjustment for Intro Grid */
@media (max-width: 1200px) {
  .intro-grid {
    grid-template-columns: 1fr; /* Stack vertically on smaller screens/split view */
    text-align: center;
  }

  .intro-text-area {
    margin-bottom: 1.5rem;
  }
}

.intro-text-area p {
  color: #64748b;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.95rem; /* Smaller font */
  line-height: 1.8;
  font-weight: 500;
  margin: 0;
}

/* Compact Recommend Card */
.recommend-card.compact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #e0f2fe;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
  border-radius: 20px;
}

/* Responsive adjustment for Card */
@media (max-width: 1200px) {
  .recommend-card.compact-card {
    justify-content: center;
    gap: 2rem;
  }
}

.compact-card .recommend-content h2 {
  font-size: 1.1rem; /* Smaller title */
  margin-bottom: 0.3rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compact-card .recommend-content h2 i {
  color: #f59e0b;
  font-size: 1rem;
}

.compact-card .recommend-content p {
  font-size: 0.85rem; /* Smaller desc */
  color: #94a3b8;
  margin: 0;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: 1.5rem;
}

/* Mobile Layout for Intro */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .recommend-card.compact-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
  .btn-small {
    margin-left: 0;
    width: 100%;
  }
  .compact-card .recommend-content h2 {
    justify-content: center;
  }
}

/* Premium Button Style (Ported) */
.btn-premium {
  background: linear-gradient(135deg, #86efac 0%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
  white-space: nowrap;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.btn-premium:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-premium.mini {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    margin-left: 1.5rem;
}

@media (max-width: 900px) {
  .btn-premium.mini {
    margin-left: 0;
    width: 100%;
  }
}

/* =========================================
   Button Animations (Irresistible Click)
   ========================================= */

/* Shimmer Effect (Shiny overlay) */
.btn-premium {
  position: relative;
  overflow: hidden;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  20% { left: 200%; } /* Fast pass */
  100% { left: 200%; } /* Wait */
}

/* Gentle Pulse (Heartbeat) */
.btn-premium {
  animation: pulse-glow 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }
  50% { transform: scale(1.03); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35); }
  100% { transform: scale(1); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2); }
}

/* Pause animations on hover/active to not interfere with interaction feedback */
.btn-premium:hover {
  animation: none; /* Let hover transform take over */
  transform: translateY(-3px) scale(1.05);
}

/* Advice Header Fix */
.sidebar-advice {
  padding: 1.2rem 1rem !important; /* Reduce horizontal padding */
}

.sidebar-advice .header {
  font-size: 0.85rem !important;
  letter-spacing: -0.02em !important; /* Tighter letter spacing */
  gap: 0.3rem !important;
  white-space: nowrap !important; /* Force single line */
  overflow: hidden; /* Just in case */
  text-overflow: ellipsis;
}

/* =========================================
   Footer Actions (Back to Home)
   ========================================= */
.page-footer-actions {
    margin-top: 6rem;
    text-align: center;
    padding-top: 3rem;
    border-top: 1px dashed #e2e8f0;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Zen Maru Gothic', sans-serif;
}

.btn-back-home i {
    font-size: 1.2rem;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.btn-back-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    color: #0f172a;
}

.btn-back-home:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* =========================================
   Background Blob Animation Support
   ========================================= */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(100px);
  opacity: 0.4;
  border-radius: 50%;
  animation: move 40s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #bae6fd 0%, rgba(186, 230, 253, 0) 70%);
  top: -200px;
  left: -200px;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #dcfce7 0%, rgba(220, 252, 231, 0) 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: -10s;
}

@keyframes move {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(100px, 50px) scale(1.1) rotate(10deg);
  }
  66% {
    transform: translate(-50px, 100px) scale(0.9) rotate(-10deg);
  }
  100% {
    transform: translate(50px, -50px) scale(1) rotate(0deg);
  }
}

/* =========================================
   Category Tile Hover Effects (Soft Aura "Mowa")
   ========================================= */
.category-tile {
  position: relative;
  /* overflow: hidden;  Allow aura to bleed slightly if needed, but usually contained */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  background: white;
  border: 1px solid transparent; /* Prepare for border transition */
  border-radius: 16px;
  /* Define default aura color to Pastel Green */
  --aura-color: #4ade80; 
}

/* Hover Lift & Shadow */
.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
}

/* Aura Effect Layer (The "Mowa") */
.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, var(--aura-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(20px); /* Soft blur */
  transform: scale(0.8); /* Start slightly smaller */
}

.category-tile:hover::before {
  opacity: 0.2; /* Visible but subtle */
  transform: scale(1.05); /* Expand slightly */
}

/* Remove the previous Shine effect if it conflicts */
.category-tile::after {
  content: none; 
}
