/*
Theme Name: Streameast App
Theme URI: https://istreameastapp.net
Author: Streameast App
Description: Sports streaming site theme with live streams list, dark UI, and category navigation. Compatible with ACF and optional CPT.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: streameast-app
*/

/* ==========================================================================
   Global
   ========================================================================== */
:root {
  --bg-dark: #050608;
  --bg-card: #101010;
  --border: #222;
  --text: #f5f5f5;
  --text-muted: #aaa;
  --accent: #00c853;
  --accent-hover: #00e676;
  --live-badge: #e53935;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--text);
}

.site-title a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   Sports Nav
   ========================================================================== */
.sports-nav {
  background: rgba(16, 16, 16, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sports-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sports-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.sports-menu li a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  display: inline-block;
}

.sports-menu li a:hover,
.sports-menu li.current-menu-item a {
  color: var(--accent);
}

/* ==========================================================================
   Main content
   ========================================================================== */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

/* ==========================================================================
   Streams list
   ========================================================================== */
.streams-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.stream-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.stream-item:hover {
  border-color: var(--accent);
  background: rgba(0, 200, 83, 0.05);
}

.stream-item a {
  color: inherit;
}

.stream-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stream-competition {
  font-weight: 600;
  color: var(--text);
}

.stream-opponents {
  color: var(--text-muted);
  font-size: 13px;
}

.stream-status {
  flex-shrink: 0;
}

.badge-live {
  background: var(--live-badge);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-time {
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================================================
   Content / Article
   ========================================================================== */
.entry-content {
  color: var(--text-muted);
  line-height: 1.7;
}

.entry-content h2 {
  color: var(--text);
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

.entry-content h2:first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 12px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  margin: 24px 0 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}

.faq-answer {
  padding: 0 16px 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  margin-top: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  margin: 0 8px;
}
