/* ==========================================================================
   homepage.css - Homepage-specific styles for mycell.eu
   Premium redesign: hero slider, categories, trust section, section badges

   Ultima modificare: 2026-04-23 10:00
   Modificari:
     2026-04-23 10:00 — Utilitare .hide-on-mobile / .hide-on-desktop (Personalizari → Homepage).
     2026-04-23 09:20 — Sectiunea TikTok: background tiktok.png (desktop) + tiktok-mobile.png (mobil), carousel orizontal la cele 3 video cards pe mobil (scroll-snap).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Homepage: remove navbar spacer so hero sits flush under navbar
   -------------------------------------------------------------------------- */
body.page-home .navbar-spacer {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero Slider
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-slides {
  position: relative;
  height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 70%);
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  font-weight: 700;
  padding: 0.9375rem 2.25rem;
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Slider navigation dots */
.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.625rem;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-full);
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.3);
}

/* Slider navigation arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow-prev {
  left: 1.5rem;
}

.hero-arrow-next {
  right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Section Headers (used by all homepage sections)
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: var(--color-primary-lightest);
  padding: 0.4375rem 1.125rem;
  border-radius: var(--border-radius-full);
  margin-bottom: 0.875rem;
  border: 1px solid var(--color-primary-lightest);
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.625rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Background Gradient Section
   -------------------------------------------------------------------------- */
.section-bg-gradient {
  background: linear-gradient(180deg, var(--color-primary-lightest) 0%, #ffffff 100%);
}

/* --------------------------------------------------------------------------
   Category Cards — flexible grid for all categories
   -------------------------------------------------------------------------- */
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.categories-grid .category-card {
  width: calc((100% - 7.5rem) / 6); /* 6 per row */
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1.5rem 0.75rem;
  border-radius: var(--border-radius-xl);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-primary) 14%, transparent), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: var(--color-primary-lightest);
  background: var(--color-primary-lightest);
}

.category-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-primary-lightest);
  border: 2px solid var(--color-primary-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 0.875rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-icon {
  border-color: var(--color-primary);
  background: var(--color-primary-lightest);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-primary) 20%, transparent);
  transform: scale(1.05);
}

.category-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.category-card:hover .category-card-icon img {
  transform: scale(1.1);
}

.category-card-icon i {
  font-size: 2rem;
  color: var(--color-primary);
  transition: transform 0.35s ease;
}

.category-card:hover .category-card-icon i {
  transform: scale(1.15);
}

.category-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.category-card:hover .category-card-title {
  color: var(--color-primary);
}

.category-card-count {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Trust Section — "De ce MyCell?"
   -------------------------------------------------------------------------- */
.section-trust {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-primary-lightest) 50%, #ffffff 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  border-radius: var(--border-radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.trust-card:hover {
  border-color: var(--color-primary-lightest);
  box-shadow: 0 16px 48px color-mix(in srgb, var(--color-primary) 14%, transparent), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-6px);
}

.trust-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--color-primary-lightest);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin: 0 auto 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-primary-lightest);
}

.trust-card:hover .trust-card-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1) rotate(-3deg);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.trust-card-title {
  font-family: var(--font-family-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.trust-card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Product Section (overrides for homepage context)
   -------------------------------------------------------------------------- */
.section-products {
  padding: 4rem 0;
}

.section-categories {
  padding: 5rem 0;
  background-color: #ECF1F2;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-slides {
    height: 420px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .trust-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-slides {
    height: 360px;
  }

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

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
  }

  .hero-arrow {
    display: none;
  }

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

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-products,
  .section-categories {
    padding: 2.75rem 0;
  }

  .categories-grid {
    gap: 0.75rem;
    max-width: 100%;
  }

  .categories-grid .category-card {
    width: calc((100% - 1.5rem) / 3); /* 3 per row on tablet */
  }

  .category-card {
    padding: 1rem 0.5rem;
  }

  .category-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    padding: 0.75rem;
  }

  .category-card-icon i {
    font-size: 1.5rem;
  }

  .category-card-title {
    font-size: 0.6875rem;
  }

  .section-trust {
    padding: 2.75rem 0;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

  .trust-card {
    padding: 1.25rem 0.75rem;
  }

  .trust-card-icon {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .trust-card-title {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    gap: 0.5rem;
  }

  .category-card-icon {
    width: 56px;
    height: 56px;
    padding: 0.625rem;
    border-radius: 14px;
  }
}

/* ===========================================================================
   TESTIMONIALS CAROUSEL
   =========================================================================== */

.section-testimonials {
  padding: 4rem 0;
}

/* -- Slider wrapper -- */
.ts-slider {
  position: relative;
  max-width: 1020px;
  margin: 2rem auto 0;
  padding: 0 2.5rem;
}

/* -- Page (group of 3 cards) -- */
.ts-page {
  display: none;
  gap: 1.5rem;
}

.ts-page.active {
  display: flex;
}

/* -- Card -- */
.testimonial-card {
  flex: 1;
  background: var(--color-white);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-card-stars i {
  color: #f59e0b;
  font-size: 0.875rem;
}

.testimonial-card-stars i.empty {
  color: #d1d5db;
}

.testimonial-card-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
  flex: 1;
  position: relative;
  font-style: italic;
}

.testimonial-card-text::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -6px;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  font-style: normal;
}

.testimonial-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, var(--color-primary-dark)));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-card-location {
  font-size: 0.78rem;
  color: var(--color-text-secondary, #6b7280);
}

.testimonial-card-location i {
  font-size: 0.65rem;
  margin-right: 3px;
  color: var(--color-primary);
}

/* -- Navigation arrows -- */
.ts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 0.85rem;
  color: var(--color-primary);
  transition: background 0.2s, box-shadow 0.2s;
}

.ts-arrow:hover {
  background: var(--color-bg-alt, var(--color-primary-lightest));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ts-arrow--l {
  left: -8px;
}

.ts-arrow--r {
  right: -8px;
}

/* -- Pagination dots -- */
.ts-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.ts-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.ts-dot.active {
  background: var(--color-primary);
}

/* -- Responsive -- */
@media (max-width: 767.98px) {
  .section-testimonials {
    padding: 3rem 0;
  }

  .ts-slider {
    padding: 0 1.5rem;
  }

  .ts-page {
    flex-direction: column;
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .ts-arrow--l {
    left: 0;
  }

  .ts-arrow--r {
    right: 0;
  }
}

/* --------------------------------------------------------------------------
   Expert / Science Button
   -------------------------------------------------------------------------- */
.expert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.expert-btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.3);
}

.expert-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(var(--color-primary-rgb), 0.25);
}

.expert-btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.expert-btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.3);
}

/* --------------------------------------------------------------------------
   TikTok / Community Section
   -------------------------------------------------------------------------- */
.section-tiktok {
  padding: 4rem 0;
  background-image: url('/uploads/home/tiktok.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
}
.section-tiktok .tiktok-title {
  color: #ffffff;
}
.section-tiktok .tiktok-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.tiktok-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tiktok-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #010101;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tiktok-title {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.tiktok-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.tiktok-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tiktok-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.tiktok-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiktok-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #010101;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.tiktok-play i {
  margin-left: 3px;
}

.tiktok-card:hover .tiktok-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.tiktok-cta {
  text-align: center;
}

.tiktok-follow-btn {
  background: #010101;
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tiktok-follow-btn:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
  .section-tiktok {
    padding: 2.5rem 0;
    background-image: url('/uploads/home/tiktok-mobile.png');
    background-size: cover;
    background-position: center center;
  }

  .tiktok-title {
    font-size: 1.5rem;
  }

  .tiktok-subtitle {
    font-size: 0.9rem;
  }

  /* Carousel orizontal cu scroll-snap (ca la categorii pe mobil) */
  .tiktok-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
    gap: 0.75rem;
    padding: 0.5rem 1rem 1.25rem 1rem;
    margin: 0 -12px 1.5rem -12px;
    max-width: none;
    justify-content: flex-start;
  }
  .tiktok-grid::-webkit-scrollbar { display: none; }

  .tiktok-card {
    flex: 0 0 70%;
    scroll-snap-align: center;
    width: 70%;
  }

  .tiktok-play {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    opacity: 1;
  }

  .tiktok-follow-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* --------------------------------------------------------------------------
   Personalizari — hide-on-device utilities (Personalizari → Homepage)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hide-on-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .hide-on-desktop { display: none !important; }
}
