/*
Theme Name: QAnonNews
Theme URI: https://qanon-news.com
Author: Custom Build
Description: Dark video-grid news theme. Homepage is the main video feed with no redirects.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: qanonnews
*/

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.5;
}
a { color: #4da6ff; text-decoration: none; }
a:hover { color: #80c4ff; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  background: #111;
  border-bottom: 2px solid #222;
  padding: 0.75rem 0;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-title { font-size: 1.6rem; font-weight: 700; color: #fff; }
.site-title span { color: #ff3b3b; }
.site-description { font-size: 0.8rem; color: #aaa; margin-top: -2px; }

/* Nav */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.main-navigation a {
  color: #ddd;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a { color: #ff3b3b; }

/* Ticker */
.ticker {
  background: #1a1a1a;
  color: #ccc;
  padding: 0.4rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #222;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 40s linear infinite;
  padding-left: 100%;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Main layout */
.site-content {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
@media (max-width: 900px) {
  .site-content { grid-template-columns: 1fr; }
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.video-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  transition: transform 0.15s ease, border-color 0.15s;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: #444;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view-count {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
}
.video-info { padding: 0.75rem 0.9rem 1rem; }
.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  font-size: 0.8rem;
  color: #999;
}
.video-meta .channel { color: #4da6ff; }

/* Sidebar */
.sidebar {
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 1rem;
}
.sidebar h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #ff3b3b;
  padding-bottom: 0.4rem;
}
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 0.6rem; }
.sidebar a { color: #ccc; font-size: 0.9rem; }
.sidebar a:hover { color: #fff; }

/* Footer */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #222;
  padding: 1.5rem;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* Loading state */
.loading-videos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #888;
  font-style: italic;
}

/* Buttons / misc */
.btn {
  display: inline-block;
  background: #ff3b3b;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
}
.btn:hover { background: #ff5555; color: #fff; }
