/* Public Layout Styles - VidVeil per AI.md PART 16 */

/* Header */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.header-content {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--accent);
}

/* Main content area */
.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Search page specific */
.search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: var(--accent);
  border: none;
  border-radius: 0.25rem;
  color: var(--bg-primary);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.search-button:hover {
  background: var(--accent-hover);
}

/* Results grid */
.results-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Result card */
.result-card {
  background: var(--bg-card);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.result-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.result-info {
  padding: 1rem;
}

.result-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-source {
  color: var(--accent-alt);
}

/* Preferences page */
.preferences-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--text-primary);
  font-size: 1rem;
}

/* About/Privacy pages */
.prose {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose a {
  color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 719px) {
  .nav-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .header-nav.active {
    display: flex;
  }
}

/* Favorite button on video cards */
.favorite-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.favorite-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.favorite-btn.favorited {
  color: #ff4081;
}

/* Download link styling */
.download-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.download-link:hover {
  color: var(--accent);
}
