/* Component Styles for kyadekhen */

/* Cards System */
.card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.card:hover {
  border-color: var(--line2);
}

.card-warm {
  background: var(--card-warm);
  border: 1px solid rgba(232, 126, 4, 0.2);
}

.card-warm:hover {
  border-color: rgba(232, 126, 4, 0.4);
}

/* Button System */
button, .btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--acc);
  color: #FFFFFF;
  border: none;
  height: 52px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(232, 126, 4, 0.2);
}

.btn-primary:hover {
  background: var(--acc2);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--line2);
  height: 52px;
  width: 100%;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--t2);
}

.btn-small {
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  border-radius: 8px;
  width: auto;
}

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

.badge-platform {
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--t1);
}

.badge-platform.netflix { border-color: #E50914; color: #E50914; background: rgba(229, 9, 20, 0.08); }
.badge-platform.prime { border-color: #00A8E1; color: #00A8E1; background: rgba(0, 168, 225, 0.08); }
.badge-platform.hotstar { border-color: #00E5C4; color: #00E5C4; background: rgba(0, 229, 196, 0.08); }
.badge-platform.zee5 { border-color: #8A2BE2; color: #8A2BE2; background: rgba(138, 43, 226, 0.08); }
.badge-platform.sonyliv { border-color: #E84040; color: #E84040; background: rgba(232, 64, 64, 0.08); }

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 56px;
  background: #0D0D18;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  gap: 4px;
  transition: color 0.2s ease;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item.active {
  color: var(--acc);
}

/* Floating Action Button (FAB) */
.fab-ai {
  position: fixed;
  bottom: 72px;
  right: calc(50% - 224px); /* aligns perfectly just inside the 480px frame container */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 4px 16px rgba(232, 126, 4, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

@media (max-width: 480px) {
  .fab-ai {
    right: 16px;
  }
}

.fab-ai:hover {
  background: var(--acc2);
  transform: scale(1.05) translateY(-2px);
}

.fab-ai svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Bottom Sheet watch modal */
.bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line2);
  padding: 24px 16px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bottom-sheet-backdrop.active .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet-drag-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--t3);
  margin: -12px auto 8px auto;
}

.bottom-sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--t1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
