/*
 * Modern style for the Race Reels application with breadcrumb navigation
 */

:root {
  --primary: #f84e56;
  --secondary: #f89322;
  --accent: #fbd41a;
  --bg: #f7f8fa;
  --card-bg: #ffffff;
  --text: #2c3e50;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  color: #fff;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  flex: 1;
}

header h1,
header h1 a,
header h1 a:link,
header h1 a:visited,
header h1 a:active,
header h1 a:focus {
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

header a {
  color: #fff;
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

header .logo {
  height: 30px;
  width: auto;
  margin-right: 0.75rem;
}

header .logo.right {
  height: 30px;
  width: auto;
  margin-left: auto;
  margin-right: 0;
  display: block;
}

/* Breadcrumb navigation */
.breadcrumbs {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-link {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.breadcrumb-link:hover {
  background: rgba(248, 78, 86, 0.1);
  border-radius: 4px;
}

.breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

/* Grid layout for thumbnails */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, 160px);
  justify-content: center;
}

/* Event grid layout */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-card {
  max-width: 300px;
}

.event-card img {
  width: 100%;
  height: auto;
  display: block;
}

.event-card .card-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.event-card .card-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.event-card .card-content .event-desc {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card styling */
.card {
  width: 100%;
  max-width: 160px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 200px;
}

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

.card-content {
  padding: 0.75rem;
}

.card-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  line-height: 1.2;
}

.card-content p.team {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.search-bar {
  margin: 1rem 0;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}

button.primary {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #fff;
}

button.secondary {
  background: #e0e0e0;
  color: var(--primary);
}

button:hover {
  filter: brightness(1.05);
}

.video-player {
  margin-top: 1rem;
}

.actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  z-index: 1100;
  max-width: 90vw;
}

.share-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  cursor: pointer;
}

.share-menu button:hover {
  filter: brightness(1.05);
}

.share-menu button .icon {
  font-size: 1.2rem;
  line-height: 1;
}