@import url("hero-styles.css");
/* Custom CSS for Puzzle Gallery - Apple-inspired Design with Orange Focus */

/* Global Styles */
:root {
  --primary-color: #f56400; /* Orange as primary color */
  --secondary-color: #0071e3; /* Blue as secondary color */
  --tertiary-color: #86868b; /* Apple medium gray */
  --light-color: #f7f5f2; /* Warmer light background */
  --dark-color: #1d1d1f; /* Apple dark text */
  --border-radius: 12px; /* Apple-style corners */
  --box-shadow: 0 8px 20px rgba(245, 100, 0, 0.08);
}

/* Puzzle Animation Keyframes - Enhanced version */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-15px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(15px) rotate(-5deg) scale(0.95);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* Additional animation variations */
@keyframes floatAlt1 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-20px) translateX(10px) rotate(8deg) scale(1.08);
  }
  66% {
    transform: translateY(15px) translateX(-10px) rotate(-8deg) scale(0.92);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes floatAlt2 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-5px) translateX(-15px) rotate(-5deg) scale(1.05);
  }
  40% {
    transform: translateY(10px) translateX(10px) rotate(10deg) scale(1.02);
  }
  60% {
    transform: translateY(15px) translateX(5px) rotate(5deg) scale(0.95);
  }
  80% {
    transform: translateY(5px) translateX(-10px) rotate(-8deg) scale(0.98);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes pulse {
  0% {
    opacity: var(--base-opacity);
  }
  50% {
    opacity: calc(var(--base-opacity) + 0.1);
  }
  100% {
    opacity: var(--base-opacity);
  }
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Button Styles - Apple-like */
.btn {
  border-radius: 980px; /* Very rounded buttons like Apple */
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  letter-spacing: -0.01em;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #e05a00;
  border-color: #e05a00;
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(245, 100, 0, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #0066cc;
  border-color: #0066cc;
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 113, 227, 0.2);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.03);
}

/* Header Styles */
.navbar {
  position: relative;
  z-index: 10000;
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.3rem 0;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-color) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  transform: translateY(-3px);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), #e67e22);
  border-radius: 14px;
  font-size: 1.4rem;
  color: white;
  transform: rotate(-8deg) perspective(800px) rotateY(10deg);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(245, 100, 0, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  margin-right: 12px;
}

.brand-icon::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(35deg) translateX(-100%);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.brand-icon i {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.navbar-brand:hover .brand-icon::before {
  transform: rotate(35deg) translateX(200%);
}

.navbar-brand:hover .brand-icon {
  transform: rotate(8deg) perspective(800px) rotateY(-10deg) scale(1.1);
  box-shadow: 0 12px 28px rgba(245, 100, 0, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.brand-text {
  background: linear-gradient(135deg, var(--primary-color), #e67e22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback for non-webkit browsers */
  font-family: "Playfair Display", serif;
  font-weight: 800;
  position: relative;
  letter-spacing: -0.01em;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

.brand-text::after {
  content: "Darin's Collection";
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tertiary-color);
  -webkit-text-fill-color: var(--tertiary-color);
  margin-top: -5px;
  opacity: 0.9;
}

.nav-link {
  font-weight: 600;
  color: var(--dark-color) !important;
  padding: 0.7rem 1.25rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-icon {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(245, 100, 0, 0.05);
}

.nav-link:hover .nav-icon {
  transform: scale(1.2);
  opacity: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.nav-link:hover::after {
  width: 30%;
  opacity: 1;
}

.nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(245, 100, 0, 0.08);
}

.nav-link.active::after {
  width: 50%;
  opacity: 1;
}

.nav-link.active .nav-icon {
  color: var(--primary-color);
  opacity: 1;
}

.navbar .form-control {
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.65rem 1.2rem;
  background-color: rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
}

.navbar .form-control:focus {
  box-shadow: 0 0 0 3px rgba(245, 100, 0, 0.15);
  border-color: var(--primary-color);
}

/* User dropdown styling */
.user-dropdown {
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  font-weight: 600;
  border: 1px solid rgba(245, 100, 0, 0.2);
  background-color: rgba(245, 100, 0, 0.03);
  transition: all 0.3s ease;
}

.user-dropdown:hover {
  background-color: rgba(245, 100, 0, 0.1);
  box-shadow: 0 4px 10px rgba(245, 100, 0, 0.15);
  transform: translateY(-2px);
}

.header-buttons .btn {
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.header-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Ensure dropdown menus in the header/navbar are always on top */
.navbar .dropdown-menu {
  z-index: 2000 !important;
  margin-top: 0.75rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 50%,
    #0f3460 100%
  ); /* Darker contrast gradient */
  color: #fff;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Ensure background is behind content */
  opacity: 0.1; /* Subtle background pattern if needed */
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
      circle at 70% 10%,
      rgba(245, 100, 0, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(245, 100, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 113, 227, 0.05) 0%,
      transparent 45%
    );
  opacity: 1;
  z-index: 0;
}

.animated-puzzle-piece {
  pointer-events: none;
  position: absolute;
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  background-color: transparent !important;
}

.animated-puzzle-piece i {
  display: block;
  background-color: transparent !important;
  transform-style: preserve-3d;
}

/* Allow interaction with pieces on desktop */
@media (min-width: 992px) {
  .animated-puzzle-piece {
    pointer-events: auto;
    cursor: default;
  }
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--primary-color), #e67e22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback for non-webkit browsers */
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section p.lead {
  font-size: 1.35rem;
  color: var(--tertiary-color);
  max-width: 80%;
  margin: 0 auto 3rem;
  animation: fadeIn 1s ease-in-out 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-section .btn {
  animation: fadeIn 1s ease-in-out 0.5s forwards;
  opacity: 0;
  transform: translateY(20px);
  margin: 0 0.5rem;
}

/* Hero Stats Alignment */
.hero-stats {
  display: flex;
  justify-content: center; /* Center the stat items horizontally */
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  gap: 1.5rem; /* Adjust gap between items as needed */
  margin-top: 1.5rem; /* Space above the stats block */
  margin-bottom: 1.5rem; /* Space below the stats block */
}

.hero-stats .stat-item {
  text-align: center; /* Center the text within each stat item */
  min-width: 70px; /* Optional: ensure a minimum width for items */
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Categories Section */
.categories-section {
  background-color: white;
  padding: 5rem 0;
}

.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.category-content {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.category-card:hover .category-content {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(245, 100, 0, 0.15);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.category-content h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.category-content p {
  color: var(--tertiary-color);
  margin-bottom: 1rem;
}

.category-count {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.explore-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.category-card:hover .explore-link {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover .category-icon {
  transform: translateY(-5px);
}

/* Popular Brands Section */
.popular-brands {
  background-color: var(--light-color);
  padding: 5rem 0;
  position: relative;
}

.brands-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: white;
  border-radius: 50px;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.brand-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.brand-pill .badge {
  margin-left: 0.75rem;
  background-color: var(--light-color);
  color: var(--tertiary-color);
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
}

.brand-pill.view-all {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.brand-pill.view-all:hover {
  background-color: #e05a00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 100, 0, 0.2);
}

/* Puzzle Cards */
.puzzle-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--box-shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: #fff;
  margin-bottom: 1.5rem;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.puzzle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(245, 100, 0, 0.15);
}

.card-img-top-wrapper {
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  position: relative;
}

.card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  transition: transform 0.7s;
}

.puzzle-card:hover .card-img-top {
  transform: scale(1.07);
}

.no-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #fff8f2 0%, #ffebdc 100%);
  color: var(--primary-color);
  font-size: 3.5rem;
  opacity: 0.7;
}

.image-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
}

.card-body {
  padding: 1.75rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  line-height: 1.3;
}

.card-text {
  color: var(--tertiary-color);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: 1rem;
}

.puzzle-meta {
  margin-top: 0;
  gap: 0;
}

.puzzle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 980px;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.badge.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.badge.bg-info {
  background-color: var(--primary-color) !important;
  color: #fff;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.75rem;
  position: relative;
  z-index: 2;
}

.puzzle-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.puzzle-card .btn,
.puzzle-card .hover-overlay a.btn {
  position: relative;
  z-index: 2;
}

/* Featured Puzzles Section */
.featured-puzzles {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  position: relative;
}

.featured-puzzles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 242, 0.5) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.featured-puzzles .container {
  position: relative;
  z-index: 1;
}

/* Recent Activity Section */
.recent-activity {
  background-color: white;
  padding: 5rem 0;
}

.activity-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.activity-timeline::before {
  content: "";
  position: absolute;
  left: 45px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.06);
  z-index: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 80px;
}

.activity-icon {
  position: absolute;
  left: 30px;
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 0.9rem;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px white, 0 4px 10px rgba(245, 100, 0, 0.3);
}

.activity-content {
  background: white;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.activity-content p {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  line-height: 1.6;
}

.activity-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.activity-content a:hover {
  color: #e05a00;
  text-decoration: underline;
}

.activity-time {
  display: block;
  font-size: 0.85rem;
  color: var(--tertiary-color);
}

/* How It Works Section */
.how-it-works {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(245, 100, 0, 0.05) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 113, 227, 0.04) 0%,
      transparent 30%
    );
  z-index: 0;
}

.how-it-works .container {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1.8rem; /* Squircle shape like Apple */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2.25rem;
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(245, 100, 0, 0.25);
  transition: all 0.3s ease;
}

.how-it-works .col-md-4:hover .feature-icon {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 30px rgba(245, 100, 0, 0.3);
}

.how-it-works .col-md-4:nth-child(2) .feature-icon {
  background: var(--secondary-color);
  box-shadow: 0 10px 25px rgba(0, 113, 227, 0.2);
}

.how-it-works .col-md-4:nth-child(2):hover .feature-icon {
  box-shadow: 0 15px 30px rgba(0, 113, 227, 0.25);
}

.how-it-works .col-md-4:nth-child(3) .feature-icon {
  background: var(--tertiary-color);
  box-shadow: 0 10px 25px rgba(134, 134, 139, 0.2);
}

.how-it-works .col-md-4:nth-child(3):hover .feature-icon {
  box-shadow: 0 15px 30px rgba(134, 134, 139, 0.25);
}

.how-it-works h3 {
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.how-it-works p {
  color: var(--tertiary-color);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Call to Action */
.cta {
  background: linear-gradient(120deg, var(--primary-color), #e67e22);
  color: white;
  border-radius: var(--border-radius);
  padding: 5rem 2.5rem;
  margin: 6rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(245, 100, 0, 0.3);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  opacity: 1;
}

.cta h2 {
  font-weight: 700;
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta p.lead {
  opacity: 0.95;
  margin-bottom: 0;
  font-size: 1.25rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.cta .btn-light {
  background-color: white;
  color: var(--primary-color);
  border: none;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.cta .btn-light:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: #ffffff;
  border-radius: 0;
  padding: 6rem 0 2rem;
}

footer h5 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
  color: white;
}

footer p,
footer li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

footer a:hover {
  color: #fff;
  transform: translateX(3px);
}

footer .social-icons {
  margin-top: 1.5rem;
}

footer .social-icons a {
  font-size: 1.4rem;
  margin-right: 1.75rem;
  transition: all 0.3s;
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
}

footer .social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  color: var(--primary-color);
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

footer .text-center p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

footer .form-control {
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.75rem 1.25rem;
  color: white;
}

footer .form-control:focus {
  box-shadow: 0 0 0 3px rgba(245, 100, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

footer .btn-primary {
  padding: 0.75rem 1.5rem;
}

/* Footer Links Styles */
.footer-links {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: none;
}

/* Cookie Consent Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 33, 33, 0.95);
  color: white;
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default, shown via JS */
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  display: flex;
  align-items: center;
}

.cookie-text i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

.cookie-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-text {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .cookie-text i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 2rem;
  display: inline-block;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}

.wheel {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.2);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: arrowDown 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
  margin-top: -6px;
}

@keyframes arrowDown {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Stats Section */
.stats-section {
  background-color: white;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--tertiary-color);
  margin: 0;
}

/* Hover overlay for puzzle cards */
.card-img-top-wrapper {
  position: relative;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 100, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.puzzle-card:hover .hover-overlay {
  opacity: 1;
}

/* User info in cards */
.user-info {
  color: var(--tertiary-color);
}

/* Testimonial styles */
.testimonial-section {
  background-color: white;
  padding: 6rem 0;
  position: relative;
}

.testimonial-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 242, 0.7) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.testimonial-section .container {
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border-top: 4px solid var(--secondary-color);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card.highlight {
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 15px 40px rgba(245, 100, 0, 0.1);
}

.testimonial-content {
  min-height: 180px;
  display: flex;
  align-items: center;
}

.testimonial-content p {
  font-style: italic;
  color: var(--tertiary-color);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.testimonial-user {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
  font-size: 2.5rem;
  color: var(--tertiary-color);
  margin-right: 1rem;
  opacity: 0.7;
}

.testimonial-info h5 {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.testimonial-info p {
  margin: 0;
  color: var(--tertiary-color);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .testimonial-content {
    min-height: auto;
  }
}

/* AOS Animation Tweaks */
[data-aos] {
  pointer-events: none;
}
[data-aos].animated {
  pointer-events: auto;
}

/* Make buttons and links inside [data-aos] clickable */
[data-aos] a,
[data-aos] button,
[data-aos] .btn {
  pointer-events: auto;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-section {
    padding: 7rem 0 5rem;
  }

  .hero-section h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .cta h2 {
    font-size: 2.25rem;
  }

  .activity-item {
    padding-left: 60px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 4rem;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-section p.lead {
    font-size: 1.15rem;
    max-width: 100%;
  }

  .card-img-top-wrapper {
    padding-bottom: 70%; /* Slightly shorter ratio on mobile */
  }

  .feature-icon {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
  }

  section {
    padding: 4rem 0;
  }

  .activity-timeline::before {
    left: 25px;
  }

  .activity-icon {
    left: 25px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .activity-item {
    padding-left: 40px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 5rem 0 3rem;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }

  .hero-section p.lead {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-icon {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.75rem;
  }

  .cta {
    padding: 3rem 1.75rem;
    margin: 3.5rem 0;
  }

  .cta h2 {
    font-size: 2rem;
  }
}

/* Active Filter Pills */
.active-filter {
  display: inline-flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.active-filter a {
  color: var(--dark-color);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.active-filter a:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* Dropdown active item styling */
.dropdown-item.active {
  background-color: var(--primary-color);
}

/* Pagination styling */
.pagination .page-link {
  color: var(--primary-color);
  border-radius: 50%;
  margin: 0 3px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination .page-link:hover {
  background-color: rgba(245, 100, 0, 0.1);
  transform: translateY(-2px);
}

.pagination .page-item.disabled .page-link {
  color: var(--tertiary-color);
  opacity: 0.5;
}

/* Enhance form elements */
.input-group .form-control {
  border-top-left-radius: 980px;
  border-bottom-left-radius: 980px;
  padding-left: 1.25rem;
}

.input-group .btn {
  border-top-right-radius: 980px;
  border-bottom-right-radius: 980px;
}

/* Profile Page Styles */
.profile-header {
  border-radius: var(--border-radius);
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: none;
  overflow: hidden;
  position: relative;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--primary-color), #e67e22);
}

.profile-image-container {
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(245, 100, 0, 0.2);
  transition: all 0.3s ease;
}

.profile-image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(245, 100, 0, 0.3);
}

.profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Header profile picture style */
.header-profile-pic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245, 100, 0, 0.3);
  vertical-align: middle;
}

/* User dropdown with profile picture */
.user-dropdown {
  display: flex;
  align-items: center;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 6.5rem;
  color: #d4d4d8;
  background: linear-gradient(145deg, #f0f0f5, #ffffff);
  transition: all 0.3s ease;
}

.profile-image-preview {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(245, 100, 0, 0.15);
}

.user-details-section h1 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.user-details-section .text-muted {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.user-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.user-meta-badge {
  background: #f8f9fa;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  transition: all 0.3s ease;
}

.user-meta-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.user-meta-badge small {
  color: var(--tertiary-color);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.user-meta-badge strong {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.05rem;
}

.profile-action-buttons {
  margin-top: 1.5rem;
}

.profile-action-buttons .btn {
  padding: 0.75rem 1.5rem;
  margin-right: 0.5rem;
  font-weight: 600;
}

.stats-card {
  border-radius: var(--border-radius);
  border: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.stats-card .card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.stats-card .card-header h5 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.stats-card .card-header h5 i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

.stats-card .list-group-item {
  padding: 1rem 1.5rem;
  border-color: rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.stats-card .list-group-item:hover {
  background-color: rgba(245, 100, 0, 0.03);
}

.stats-card .badge.bg-primary {
  background: var(--primary-color) !important;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: 30px;
}

.quick-links-card .list-group-item {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.quick-links-card .list-group-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.quick-links-card .list-group-item:hover {
  background-color: #f8f9fa;
  padding-left: 2rem;
}

.quick-links-card .list-group-item:hover i {
  transform: scale(1.2);
}

.quick-links-card .list-group-item.text-danger i {
  color: #dc3545;
}

.puzzle-gallery-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.puzzle-gallery-card .card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.puzzle-gallery-card .card-title {
  font-weight: 700;
  margin-bottom: 0;
  color: var(--dark-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.puzzle-gallery-card .card-title i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

.puzzle-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.puzzle-item-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.puzzle-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(245, 100, 0, 0.1);
}

.puzzle-item-card .hover-overlay {
  opacity: 0;
  background: rgba(245, 100, 0, 0.85);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.puzzle-item-card:hover .hover-overlay {
  opacity: 1;
}

.puzzle-item-card .card-body {
  padding: 1.25rem;
}

.puzzle-item-card .card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
  height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.puzzle-item-card .badge {
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.puzzle-item-card .card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
}

.puzzle-item-card .btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state i {
  font-size: 4rem;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--tertiary-color);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Edit Profile Modal */
.edit-profile-modal .modal-content {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.edit-profile-modal .modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.5rem;
}

.edit-profile-modal .modal-title {
  font-weight: 700;
  color: var(--dark-color);
}

.edit-profile-modal .modal-body {
  padding: 1.5rem;
}

.edit-profile-modal .form-label {
  font-weight: 600;
  color: var(--dark-color);
}

.edit-profile-modal .form-control {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.edit-profile-modal .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 100, 0, 0.15);
}

.edit-profile-modal .form-text {
  font-size: 0.8rem;
  color: var(--tertiary-color);
}

.edit-profile-modal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.5rem;
}

.edit-profile-modal .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

/* Responsive adjustments for profile */
@media (max-width: 768px) {
  .profile-image-container {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
  }

  .user-meta-badges {
    justify-content: center;
  }

  .profile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .profile-action-buttons .btn {
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  .user-meta-badge {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
  }
}

/* Add Puzzle Page Styles */
.add-puzzle-container {
  max-width: 900px;
  margin: 0 auto;
}

.add-puzzle-header {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.add-puzzle-header h1 {
  font-weight: 700;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.add-puzzle-header h1 i {
  font-size: 1.8rem;
  margin-right: 0.75rem;
  color: var(--primary-color);
  background: linear-gradient(120deg, var(--primary-color), #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.add-puzzle-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #e67e22);
  border-radius: 2px;
}

.image-upload-container {
  background-color: rgba(247, 245, 242, 0.5);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.image-upload-item {
  transition: all 0.3s ease;
}

.image-upload-item:hover {
  transform: translateY(-3px);
}

.image-upload-item .card {
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.image-upload-instructions {
  color: var(--tertiary-color);
  font-size: 0.9rem;
  margin: 0.5rem 0 1.5rem;
}

.upload-icon-container {
  text-align: center;
  padding: 2rem 0;
  background-color: #fff8f2;
  border-radius: var(--border-radius);
  border: 2px dashed #e0e0e0;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.upload-icon-container:hover {
  border-color: var(--primary-color);
  background-color: #fff5ed;
}

.upload-icon {
  font-size: 3rem;
  color: var(--tertiary-color);
  margin-bottom: 1rem;
}

.form-field-header {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.form-field-header i {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.form-field-description {
  color: var(--tertiary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.field-section {
  margin-bottom: 2.5rem;
}

.add-image-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.add-image-btn:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
}

.form-required-label {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.25rem;
}

.form-submit-section {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Enhanced form controls */
.puzzle-form .form-control {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.puzzle-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 100, 0, 0.15);
}

.puzzle-form textarea.form-control {
  min-height: 150px;
}

.puzzle-form .form-text {
  color: var(--tertiary-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Save and Cancel buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.action-buttons .btn {
  min-width: 120px;
  font-weight: 600;
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
  .image-upload-instructions {
    text-align: center;
  }

  .add-puzzle-header h1 {
    font-size: 1.5rem;
  }

  .add-puzzle-header h1 i {
    font-size: 1.5rem;
  }

  .action-buttons {
    justify-content: center;
  }

  .action-buttons .btn {
    min-width: 140px;
  }

  .form-field-header {
    font-size: 1.1rem;
  }

  .upload-icon {
    font-size: 2.5rem;
  }

  .upload-icon-container {
    padding: 1.5rem 0;
  }

  .field-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .add-puzzle-container {
    padding: 0;
  }

  .upload-icon-container {
    padding: 1.25rem 0;
  }

  .image-upload-container {
    padding: 1rem;
  }

  .action-buttons .btn {
    width: 100%;
  }

  .add-puzzle-header h1 {
    font-size: 1.4rem;
  }

  .add-puzzle-header h1 i {
    font-size: 1.4rem;
  }
}

/* Search Page Styles */
.search-hero {
  background: linear-gradient(160deg, #fff8f2 0%, var(--light-color) 100%);
  padding: 3rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-main-input {
  max-width: 600px;
  margin: 0 auto;
}

.advanced-search {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.advanced-search:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.filter-heading {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.75rem;
}

.search-results-title {
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon-container {
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  background: rgba(245, 100, 0, 0.1);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-icon-container i {
  font-size: 2rem;
}

.feature-card:hover .feature-icon-container {
  background: linear-gradient(120deg, var(--primary-color), #e67e22);
  box-shadow: 0 10px 25px rgba(245, 100, 0, 0.25);
}

.feature-card:hover .feature-icon-container i {
  color: white !important;
}

.search-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.search-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.popular-searches .btn {
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.popular-searches .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(245, 100, 0, 0.1),
    rgba(252, 211, 185, 0.3)
  );
  box-shadow: 0 10px 20px rgba(245, 100, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tip-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.8),
    transparent 50%
  );
}

.tip-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.search-tip-card:hover .tip-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 25px rgba(245, 100, 0, 0.15);
  background: linear-gradient(
    135deg,
    rgba(245, 100, 0, 0.2),
    rgba(252, 211, 185, 0.5)
  );
}

.search-tip-card:hover .tip-icon i {
  transform: scale(1.2);
}

/* Puzzles Page Styles */
.puzzle-page-header {
  background: linear-gradient(160deg, #fff8f2 0%, var(--light-color) 100%);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.puzzle-page-header::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
      circle at 70% 10%,
      rgba(245, 100, 0, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(245, 100, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 113, 227, 0.05) 0%,
      transparent 45%
    );
  opacity: 1;
  z-index: 0;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--primary-color), #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

.search-input-group {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  border-radius: 980px;
  overflow: hidden;
}

.search-input-group .form-control {
  border-right: none;
}

.search-input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.active-filters-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-label {
  color: var(--tertiary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.filter-badge:hover {
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.remove-filter {
  color: var(--dark-color);
  opacity: 0.5;
  margin-left: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.remove-filter:hover {
  opacity: 1;
  color: var(--primary-color);
}

.clear-all-btn {
  transition: all 0.2s ease;
}

.clear-all-btn:hover {
  transform: translateY(-2px);
}

.filter-controls {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 980px;
  transition: all 0.2s ease;
  font-weight: 500;
}

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

.custom-dropdown {
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.custom-dropdown .dropdown-item:hover {
  background-color: rgba(245, 100, 0, 0.07);
}

.custom-dropdown .dropdown-item.active {
  background-color: var(--primary-color);
}

.puzzle-grid {
  margin-top: 1.5rem;
}

.no-results {
  background: white;
  border-radius: var(--border-radius);
  padding: 4rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(245, 100, 0, 0.08);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.empty-state-icon i {
  font-size: 3.5rem;
  color: var(--primary-color);
}

.custom-pagination .page-link {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.custom-pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 5px 10px rgba(245, 100, 0, 0.2);
}

.add-puzzle-btn {
  transition: all 0.3s ease;
  font-weight: 600;
}

.add-puzzle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(245, 100, 0, 0.15);
}

.pulse-animation {
  animation: pulse 2s infinite;
  --base-opacity: 0.7;
}

@keyframes pulse {
  0% {
    opacity: var(--base-opacity);
  }
  50% {
    opacity: calc(var(--base-opacity) + 0.3);
  }
  100% {
    opacity: var(--base-opacity);
  }
}

/* Responsive adjustments for search and puzzles pages */
@media (max-width: 768px) {
  .search-hero {
    padding: 2rem 1.5rem;
  }

  .puzzle-page-header {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .filter-badge {
    margin-top: 0.5rem;
  }

  .feature-icon-container {
    width: 4rem;
    height: 4rem;
  }

  .feature-icon-container i {
    font-size: 1.5rem;
  }

  .filter-controls {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .search-results-title {
    font-size: 1.3rem;
  }

  .no-results {
    padding: 3rem 1.5rem;
  }

  .filter-heading {
    font-size: 1rem;
  }

  .filter-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .empty-state-icon {
    width: 5rem;
    height: 5rem;
  }

  .empty-state-icon i {
    font-size: 2.5rem;
  }
}

/* Puzzle Detail Page Styles */
.puzzle-gallery {
  margin-bottom: 2rem;
}

.featured-image-container {
  max-height: 500px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  text-align: center;
  background-color: #f9f9f9;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
}

.image-caption {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  text-align: center;
}

.image-thumbnails {
  margin-top: 1.5rem;
}

.thumbnail-container {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.thumbnail-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.img-thumbnail {
  padding: 0;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: 60px;
  width: 100%;
  object-fit: cover;
}

.img-thumbnail.active {
  border-color: var(--primary-color);
}

.puzzle-details {
  padding: 1rem;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
}

.puzzle-title {
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.puzzle-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.puzzle-content {
  color: var(--dark-color);
  line-height: 1.7;
  padding: 1.5rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contributor {
  background-color: #f9f9fa;
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  font-size: 2.5rem;
  color: var(--tertiary-color);
}

.profile-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.large-placeholder {
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fff8f2 0%, #ffebdc 100%);
  color: var(--primary-color);
  font-size: 5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.large-placeholder p {
  font-size: 1rem;
  color: var(--tertiary-color);
}

.puzzle-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.related-puzzles {
  padding-top: 3rem;
}

.related-puzzles h2 {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.related-puzzles h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Responsive styles for puzzle detail */
@media (max-width: 992px) {
  .puzzle-details {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .puzzle-title {
    font-size: 1.8rem;
  }

  .featured-image-container {
    max-height: 350px;
  }

  .featured-image {
    max-height: 350px;
  }

  .puzzle-actions {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .puzzle-title {
    font-size: 1.5rem;
  }

  .thumbnail-container {
    margin-bottom: 0.5rem;
  }

  .puzzle-meta-tags {
    justify-content: center;
  }
}

/* Enhancement for search page icons and UI elements */
.advanced-search-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.advanced-search-toggle:hover {
  background-color: rgba(0, 113, 227, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.1);
}

.advanced-search-toggle i {
  font-size: 1rem;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.advanced-search-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
}

.search-submit-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 100, 0, 0.2);
}

.empty-state-icon-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.empty-state-icon-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(245, 100, 0, 0.15),
    transparent
  );
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Biography Page Styles */
.biography-header {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(255, 248, 242, 0.8) 0%,
    rgba(247, 245, 242, 0.9) 100%
  );
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.biography-header:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(245, 100, 0, 0.1);
}

.biography-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--primary-color), #e67e22);
  z-index: 1;
}

.biography-image-container {
  width: 200px;
  height: 200px;
  margin: 1rem auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(245, 100, 0, 0.2);
  border: 6px solid rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  position: relative;
}

.biography-image-container::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(rgba(245, 100, 0, 0.1), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.biography-image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(245, 100, 0, 0.3);
}

.biography-image-container:hover::after {
  opacity: 1;
}

.biography-profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.biography-profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 6.5rem;
  color: #d4d4d8;
  background: linear-gradient(145deg, #f0f0f5, #ffffff);
  transition: all 0.3s ease;
}

.biography-profile-placeholder i {
  transition: all 0.3s ease;
}

.biography-image-container:hover .biography-profile-placeholder i {
  transform: scale(1.1);
  color: var(--primary-color);
}

.biography-stats {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.biography-stat-item {
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 150px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.6);
}

.biography-stat-item:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(245, 100, 0, 0.1);
}

.biography-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.biography-stat-label {
  font-size: 0.9rem;
  color: var(--tertiary-color);
  font-weight: 500;
}

.biography-content {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.biography-content:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.biography-content .card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(
    to right,
    rgba(255, 248, 242, 0.7),
    rgba(255, 255, 255, 0.95)
  );
  padding: 1.25rem 1.5rem;
}

.biography-content .card-title {
  font-weight: 700;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}

.biography-content .card-title i {
  margin-right: 0.75rem;
  background: linear-gradient(120deg, var(--primary-color), #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.biography-text {
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--dark-color);
  white-space: pre-line;
  padding: 1.5rem;
}

.biography-text p:first-child {
  font-size: 1.15rem;
  color: #4a4a4a;
  font-style: italic;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.biography-empty {
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  text-align: center;
}

.biography-empty i {
  font-size: 4rem;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.biography-empty:hover i {
  transform: scale(1.1);
  color: var(--primary-color);
  opacity: 0.9;
}

.biography-links {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.biography-links:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.biography-links .card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(
    to right,
    rgba(255, 248, 242, 0.7),
    rgba(255, 255, 255, 0.95)
  );
  padding: 1.25rem 1.5rem;
}

.biography-links .card-title {
  font-weight: 700;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  font-size: 1.3rem;
}

.biography-links .card-title i {
  margin-right: 0.75rem;
  background: linear-gradient(120deg, var(--primary-color), #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.biography-links .list-group-item {
  padding: 1.25rem 1.5rem;
  border-color: rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-weight: 500;
}

.biography-links .list-group-item:hover {
  background-color: #f9f9fa;
  transform: translateX(8px);
  padding-left: 2rem;
}

.biography-links .list-group-item:hover i.fa-chevron-right {
  transform: translateX(5px);
  opacity: 1;
  color: var(--primary-color);
}

.biography-links .list-group-item i.fa-chevron-right {
  transition: all 0.3s ease;
  opacity: 0.5;
}

.biography-edit-modal .modal-content {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.biography-edit-modal .modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.5rem;
}

.biography-edit-modal .modal-title {
  font-weight: 700;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

.biography-edit-modal .modal-title i {
  color: var(--primary-color);
}

.biography-formatting-tips {
  background-color: rgba(255, 248, 242, 0.7);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
  border-left: 3px solid var(--primary-color);
}

.biography-formatting-tips h6 {
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.biography-formatting-tips ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.biography-formatting-tips li {
  margin-bottom: 0.5rem;
}

.biography-formatting-tips li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .biography-image-container {
    width: 160px;
    height: 160px;
  }

  .biography-stat-item {
    margin-bottom: 1rem;
    flex: 0 0 calc(50% - 0.5rem);
    min-width: auto;
  }

  .biography-text {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .biography-content .card-title,
  .biography-links .card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .biography-image-container {
    width: 140px;
    height: 140px;
  }

  .biography-stat-item {
    flex: 0 0 100%;
  }

  .biography-empty {
    padding: 2rem 1rem;
  }

  .biography-empty i {
    font-size: 3.5rem;
  }
}

/* End Biography Page Styles */

/* Responsive enhancements for puzzle detail */
@media (max-width: 992px) {
  .puzzle-details {
    margin-top: 1rem;
  }
}

/* Puzzle Meta Container and Badge Styles */
.puzzle-meta-container {
  margin-top: 0.75rem;
}

.puzzle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.meta-badge {
  margin-bottom: 0.35rem;
}

.meta-badge .badge {
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 980px;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  white-space: normal;
  text-align: left;
  line-height: 1.2;
  display: inline-block;
}

.meta-badge .badge i {
  font-size: 0.7rem;
}

/* Make sure badges wrap nicely on small screens */
@media (max-width: 576px) {
  .puzzle-meta {
    justify-content: flex-start;
  }

  .meta-badge .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }
}

/* High Quality Image Display Rules */
img.featured-image,
img.card-img-top,
img.img-thumbnail,
.profile-image,
.thumbnail-container img {
  image-rendering: -webkit-optimize-contrast; /* For Safari/Chrome */
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic; /* For IE */
  max-quality: 100%;
}

/* Force higher quality display for all puzzle images */
.puzzle-gallery img,
.related-puzzles img,
.puzzle-card img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
}

/* New Hero Section Styles */
.hero-section {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(150deg, #fff8f2 0%, #ffffff 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.puzzle-pieces-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.puzzle-piece {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
  filter: blur(1px);
  z-index: 0;
}

.piece-1 {
  top: 15%;
  left: 5%;
  width: 150px;
  height: 150px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23f56400" opacity="0.3" d="M37.5,0H100V62.5c0,0-12.5-12.5-25,0S50,50,37.5,62.5S12.5,50,0,62.5V0H37.5z"></path></svg>');
  animation: floatAlt1 20s ease-in-out infinite;
}

.piece-2 {
  top: 60%;
  left: 85%;
  width: 180px;
  height: 180px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%230071e3" opacity="0.3" d="M100,37.5V100H37.5c0,0,12.5-12.5,0-25s12.5-25,0-25s12.5-25,0-25H100V37.5z"></path></svg>');
  animation: floatAlt2 25s ease-in-out infinite;
}

.piece-3 {
  top: 65%;
  left: 10%;
  width: 120px;
  height: 120px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23f56400" opacity="0.2" d="M62.5,100H0V37.5c0,0,12.5,12.5,25,0s25,12.5,25,0s25,12.5,25,0V100H62.5z"></path></svg>');
  animation: float 18s ease-in-out infinite;
}

.piece-4 {
  top: 10%;
  left: 75%;
  width: 160px;
  height: 160px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%230071e3" opacity="0.2" d="M0,62.5V0h62.5c0,0-12.5,12.5,0,25s-12.5,25,0,25s-12.5,25,0,25H0V62.5z"></path></svg>');
  animation: floatAlt1 22s ease-in-out infinite reverse;
}

.piece-5 {
  top: 40%;
  left: 45%;
  width: 140px;
  height: 140px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23333333" opacity="0.1" d="M38,0v18c-5.5,0-10,4.5-10,10s4.5,10,10,10v24c-5.5,0-10,4.5-10,10s4.5,10,10,10v18h24v-18c5.5,0,10-4.5,10-10s-4.5-10-10-10V38c5.5,0,10-4.5,10-10s-4.5-10-10-10V0H38z"></path></svg>');
  animation: floatAlt2 30s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 500px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-text p.lead {
  font-size: 1.25rem;
  color: var(--tertiary-color);
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-stats {
  display: flex;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--tertiary-color);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-puzzle-showcase {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puzzle-spotlight {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: all 0.5s ease;
}

.puzzle-spotlight:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.puzzle-spotlight img {
  width: 100%;
  height: auto;
  display: block;
}

.puzzle-spotlight-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  padding: 2rem 1.5rem 1.5rem;
  color: white;
}

.puzzle-spotlight-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.puzzle-spotlight-info p {
  margin-bottom: 1rem;
}

.puzzle-collage {
  width: 100%;
  height: 400px;
  background-color: rgba(245, 100, 0, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.puzzle-icon {
  text-align: center;
  color: var(--primary-color);
  opacity: 0.8;
  padding: 2rem;
}

.puzzle-icon p {
  color: var(--tertiary-color);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 250px;
}

/* Scroll indicator styling */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
}

.scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--tertiary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.scroll-link:hover {
  color: var(--primary-color);
}

.scroll-icon {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid currentColor;
  border-radius: 15px;
  position: relative;
  margin-bottom: 0.5rem;
}

.scroll-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: currentColor;
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 5rem 0;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-text p.lead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 3rem;
  }

  .puzzle-spotlight {
    max-width: 400px;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stats .stat-number {
    font-size: 1.6rem;
  }
}
