@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background-color: #071226;
  color: #f8fafc;
  overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
  background: rgba(7, 18, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Card dark styling */
.card-dark {
  background: #0D1B3D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-dark:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
}

/* Input dark styling */
.input-dark {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(7, 18, 38, 0.5);
  color: #ffffff;
  transition: all 0.2s ease;
}


.input-dark::placeholder {
  color: #8CA0D1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #071226;
}
::-webkit-scrollbar-thumb {
  background: #0D1B3D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1b2e5c;
}

/* Text selections */
::selection {
  background: #FF4D8D;
  color: #ffffff;
}

/* ═══════ Star Rating Widget ═══════ */
.star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-icon {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.15s ease;
  border-radius: 0.5rem;
  outline: none;
}

.star-icon:focus-visible {
  box-shadow: 0 0 0 2px #FF4D8D;
}

.star-icon.active {
  color: #fbbf24;
}

.star-icon:hover,
.star-icon.hovering {
  transform: scale(1.25);
}

.star-icon.active:hover,
.star-icon.active.hovering {
  color: #f59e0b;
}

.star-label {
  margin-left: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  transition: color 0.2s ease;
  min-width: 70px;
}

/* ═══════ Review Card Fade-Up ═══════ */
.review-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entry for consecutive cards */
.review-card:nth-child(2) { transition-delay: 0.05s; }
.review-card:nth-child(3) { transition-delay: 0.1s; }
.review-card:nth-child(4) { transition-delay: 0.15s; }
.review-card:nth-child(5) { transition-delay: 0.2s; }

/* ═══════ Review Form Card ═══════ */
.review-form-card:hover {
  transform: none;
  border-color: rgba(255, 77, 141, 0.15);
}

/* ═══════ Submit Button ═══════ */
.btn-submit {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 77, 141, 0.4);
}

.btn-submit:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 10px rgba(255, 77, 141, 0.2);
}

/* ═══════ Success Message Fade-in ═══════ */
@keyframes reviewSuccessFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-success {
  animation: reviewSuccessFadeIn 0.4s ease-out;
}

/* ═══════ Enhanced Input Focus ═══════ */
.input-dark:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #1DA1F2, 0 0 20px rgba(29, 161, 242, 0.1);
  background-color: rgba(7, 18, 38, 0.7);
}

/* ═══════════════════════════════════════
   Floating Category Navigation (Desktop)
   ═══════════════════════════════════════ */

/* Category Filter Tabs (visible and responsive across all screens) */
.cat-filter-btn {
  cursor: pointer;
  user-select: none;
}

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

.post-card {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.post-card.animating-in {
  animation: postCardFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cat-float-nav {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

/* Hide on tablet/mobile */
@media (max-width: 1279px) {
  .cat-float-nav { left: 8px; }
}
@media (max-width: 1023px) {
  .cat-float-nav { display: none; }
}

.cat-float-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Individual category card */
.cat-float-item {
  display: flex;
  align-items: center;
  width: 46px;
  height: 42px;
  padding: 0 9px;
  border-radius: 13px;
  background: rgba(13, 27, 61, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-decoration: none;
  transition:
    width      280ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms ease,
    box-shadow 250ms ease,
    transform  250ms cubic-bezier(0.4, 0, 0.2, 1),
    background 250ms ease;
}

.cat-float-item:hover {
  width: 172px;
  border-color: rgba(255, 77, 141, 0.45);
  box-shadow: 0 6px 22px rgba(255, 77, 141, 0.18), 0 0 0 1px rgba(255, 77, 141, 0.12);
  transform: translateY(-2px);
  background: rgba(13, 27, 61, 0.95);
}

.cat-float-item.is-active {
  border-color: rgba(255, 77, 141, 0.38);
  background: rgba(255, 77, 141, 0.08);
  box-shadow: 0 0 16px rgba(255, 77, 141, 0.14);
}

.cat-float-item.is-active:hover {
  box-shadow: 0 6px 22px rgba(255, 77, 141, 0.28), 0 0 0 1px rgba(255, 77, 141, 0.25);
}

/* Icon container */
.cat-float-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8CA0D1;
  transition: color 260ms ease, transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-float-item:hover .cat-float-icon,
.cat-float-item.is-active .cat-float-icon {
  color: #FF4D8D;
  transform: scale(1.18);
}

/* Label (hidden until hover) */
.cat-float-label {
  margin-left: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease 60ms, transform 200ms ease 60ms;
  pointer-events: none;
  line-height: 1.2;
}

.cat-float-item:hover .cat-float-label {
  opacity: 1;
  transform: translateX(0);
}

/* Active pill indicator */
.cat-float-item.is-active .cat-float-label {
  color: #FF4D8D;
}

/* ═══════════════════════════════════════
   Mobile Horizontal Category Bar
   ═══════════════════════════════════════ */
.cat-mobile-bar {
  display: none;
}

@media (max-width: 1023px) {
  .cat-mobile-bar {
    display: block;
    padding: 0 1rem;
    margin-bottom: 1.25rem;
  }
}

.cat-mobile-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-mobile-scroll::-webkit-scrollbar {
  display: none;
}

.cat-mobile-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(13, 27, 61, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8CA0D1;
  transition: border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.cat-mobile-pill:hover {
  border-color: rgba(255, 77, 141, 0.3);
  color: #ffffff;
}

.cat-mobile-pill.is-active {
  background: linear-gradient(135deg, #FF4D8D, #B026FF);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 77, 141, 0.28);
}
