/* Sysco TV Web - Custom Styles */

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Channel list item */
.channel-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.channel-item:hover {
  background-color: #f9fafb;
  border-color: #f3f4f6;
}
.channel-item.active {
  background-color: #f5f3ff;
  border-color: #ddd6fe;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.channel-item.active .channel-name {
  color: #4c1d95;
}

.channel-logo {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: 0.75rem;
  object-fit: cover;
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.channel-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-meta {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.125rem;
}

/* Category pill */
.category-pill {
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #f3f4f6;
  color: #4b5563;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.category-pill:hover {
  background-color: #e5e7eb;
}
.category-pill.active {
  background-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.25);
}

/* Support button */
#support-btn {
  background: linear-gradient(135deg, #e2136e 0%, #c5115e 100%);
}
#support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226, 19, 110, 0.3);
}

/* Support modal */
#support-modal {
  transition: opacity 0.2s ease;
}
#support-modal.hidden {
  display: none;
}
#support-modal:not(.hidden) {
  display: flex;
}
#support-modal:not(.hidden) #support-modal-content {
  transform: scale(1);
  opacity: 1;
}
#support-modal-content {
  transition: all 0.2s ease;
}

/* Video player custom controls feel */
video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, rgba(0,0,0,0.7)) !important;
}

/* Toast / message */
.message-success {
  color: #16a34a;
}
.message-error {
  color: #dc2626;
}
.message-info {
  color: #7c3aed;
}

/* Smooth page transitions */
#auth-view, #app-view {
  animation: fadeIn 0.25s ease-out;
}

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

/* Loading skeleton */
.skeleton {
  background-color: #e5e7eb;
  border-radius: 0.75rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Mobile drawer */
@media (max-width: 1023px) {
  aside {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  aside.open {
    transform: translateX(0);
  }
}

/* Channel card image fix for large logos */
.channel-item img {
  max-width: 3rem;
  max-height: 3rem;
}
