/* TovutiTV Player - Modern Responsive Stylesheet */
:root {
  --bg-dark: #090d16;
  --bg-card-dark: #0f172a;
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;
  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-blue: #38bdf8;
  --accent-blue-hover: #0284c7;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background-color: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-amber), #ea580c);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-amber);
}

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-amber {
  background-color: var(--accent-amber);
  color: #000;
}

.btn-amber:hover {
  background-color: var(--accent-amber-hover);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
}

.btn-primary:hover {
  background: #0284c7;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top, #1e293b 0%, #090d16 100%);
  color: #fff;
  padding-top: calc(68px + 4rem);
  padding-bottom: 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent-amber);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Category Filter Chips */
.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0 2.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #fff;
  color: #475569;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.filter-chip.active {
  background: var(--accent-amber);
  color: #000;
  border-color: var(--accent-amber);
}

/* Blog Grid */
.blog-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.article-thumb svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent-amber);
  opacity: 0.85;
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.meta-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber-hover);
  letter-spacing: 0.05em;
}

.meta-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.article-card:hover .article-title {
  color: var(--accent-amber-hover);
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.article-link:hover {
  text-decoration: underline;
}

/* Article Reader View */
.reader-container {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(68px + 3rem) 1.5rem 5rem;
}

.reader-header {
  margin-bottom: 2.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

.reader-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.reader-content {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.reader-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #0f172a;
}

.reader-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: #0f172a;
}

.reader-content p {
  margin-bottom: 1.25rem;
}

.reader-content p.lead {
  font-size: 1.2rem;
  color: #1e293b;
  font-weight: 500;
}

.reader-content ul, .reader-content ol {
  margin: 1rem 0 1.5rem 1.75rem;
}

.reader-content li {
  margin-bottom: 0.5rem;
}

.reader-content code {
  background: #f1f5f9;
  color: #d97706;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: monospace;
}

/* Split Card Auth Layout (Sign In & Sign Up) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #1e293b, #090d16);
  padding: calc(68px + 2rem) 1.5rem 2rem;
}

.auth-card {
  width: 100%;
  max-width: 980px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}

@media (max-width: 768px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
}

.form-side {
  padding: 3rem 2.5rem;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.auth-header {
  margin-bottom: 1.75rem;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.auth-header p {
  color: var(--text-light-muted);
  font-size: 0.925rem;
}

.info-note {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.825rem;
  color: #bae6fd;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  line-height: 1.45;
}

.info-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row-pair {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #cbd5e1;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.925rem;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.form-input::placeholder {
  color: #64748b;
}

.form-input:autofill,
.form-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #1e293b inset;
  -webkit-text-fill-color: #fff;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #fff;
}

.form-hint {
  font-size: 0.75rem;
  color: #64748b;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-checkbox input {
  accent-color: var(--accent-amber);
  width: 1rem;
  height: 1rem;
}

.link-muted {
  color: var(--accent-amber);
  font-weight: 500;
}

.link-muted:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-amber), #ea580c);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  opacity: 0.95;
}

.btn-submit:active {
  transform: scale(0.99);
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-wide {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  display: block;
  transition: all 0.2s;
}

.btn-outline-wide:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* Welcome Side (Right side of Auth Card) */
.welcome-side {
  background: linear-gradient(135deg, #1e293b, #090d16);
  padding: 3rem 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome-brand {
  margin-bottom: 2rem;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.welcome-tagline {
  color: var(--accent-amber);
  font-size: 0.925rem;
  font-weight: 600;
}

.news-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.news-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.news-widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.news-widget-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-amber);
}

.news-widget-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-widget-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.news-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  margin-top: 6px;
  flex-shrink: 0;
}

.news-item-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  transition: color 0.2s;
}

.news-item-title:hover {
  color: var(--accent-amber);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.2s;
}

.social-icon:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

/* Store links row */
.stores-section {
  max-width: 1240px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.stores-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.stores-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.825rem;
  font-weight: 600;
  transition: all 0.2s;
}

.store-badge:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* Footer */
.site-footer {
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.825rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.footer-disclaimer {
  line-height: 1.6;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}
