/* ============================================================
   SorinGrindeanu.com — Main Stylesheet (Design A)
   Colors: Red #C0001C · Black #0D0D0D · Yellow #FFD500
   Font: Oswald (headlines) + DM Sans (body)
   ============================================================ */

:root {
  --red:    #C0001C;
  --red-dk: #8B0013;
  --black:  #0D0D0D;
  --yellow: #FFD500;
  --gray:   #F2F2F2;
  --mid:    #555;
  --border: #E0E0E0;
  --white:  #FFFFFF;
  --pro:    #1a5c2e;
  --contra: #7a1010;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--gray);
  color: var(--black);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 10px; }
.sep { opacity: 0.3; }
.top-link { color: rgba(255,255,255,0.7); transition: color .15s; }
.top-link:hover { color: #fff; }
.admin-link { color: var(--yellow) !important; font-weight: 700; }
.top-user { color: rgba(255,255,255,0.8); font-size: 11px; }
.back-link { color: rgba(255,255,255,0.7); }
.back-link:hover { color: #fff; }

.lang-btn {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  font-family: inherit;
}

/* ===== HEADER / HERO ===== */
.site-header {
  background: var(--red);
  padding: 20px 20px 0;
  transition: background .3s;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.logo-name {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1;
}
.logo-name span { color: var(--yellow); }
.logo-sub { color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.5px; margin-top: 4px; }

.pm-chip {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 18px;
  text-align: center;
}
.pm-chip-label { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
.pm-chip-pct { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700; color: var(--yellow); line-height: 1; }
.pm-chip-sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--black);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.ticker-label {
  background: var(--yellow);
  color: var(--black);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 2;
}
.ticker-outer {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: scroll-ticker 50s linear infinite;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  padding: 0 16px;
}
.tsep { color: var(--yellow); opacity: 0.6; font-size: 10px; }
@keyframes scroll-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--red);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  padding: 0 20px;
  overflow-x: auto;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 16px;
  display: block;
  white-space: nowrap;
  transition: background .15s, color .15s;
  text-transform: uppercase;
}
.nav-link:hover, .nav-link.active {
  background: rgba(0,0,0,0.2);
  color: #fff;
}

/* ===== SITE CONTENT ===== */
.site-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  border-left: 4px solid var(--red);
  padding-left: 10px;
  margin-bottom: 14px;
}

/* ===== AI PREDICTIONS ===== */
.section { margin-bottom: 28px; }
.ai-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  padding: 20px 22px;
}
.ai-content {
  font-size: 14px;
  line-height: 1.75;
  color: #222;
}
.ai-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #999;
  margin-top: 14px;
}
.ai-dot {
  width: 7px; height: 7px;
  background: #4CAF50;
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ===== MIDDLE ROW (3 cards) ===== */
.mid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.mid-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 18px;
}
.mid-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 8px;
}
.mid-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--black);
}
.poly-disclaimer {
  font-size: 10px;
  color: #aaa;
  background: #f7f7f7;
  border: 1px solid #eee;
  padding: 4px 8px;
  line-height: 1.4;
  text-align: right;
  max-width: 150px;
}

/* Polymarket bars */
.poly-stat { margin-bottom: 12px; }
.poly-stat-label { font-size: 10px; color: var(--mid); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.poly-bar-wrap { background: #eee; height: 28px; position: relative; overflow: hidden; border-radius: var(--radius); }
.poly-bar { background: var(--red); height: 100%; display: flex; align-items: center; padding: 0 10px; transition: width 0.6s ease; }
.poly-bar span { color: #fff; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; }
.poly-bar-no { background: #888; }
.poly-stats-row { display: flex; gap: 8px; margin-top: 14px; }
.poly-mini { flex: 1; background: var(--gray); padding: 8px 10px; text-align: center; }
.poly-mini-val { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; color: var(--black); }
.poly-mini-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }

/* Poll */
.poll-question { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 16px; line-height: 1.5; }
.poll-question-sm { font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.poll-buttons { display: flex; gap: 10px; }
.poll-btn {
  flex: 1;
  border: none;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
  border-radius: var(--radius);
}
.poll-btn:hover { opacity: 0.88; }
.poll-yes { background: var(--pro); color: #fff; }
.poll-no  { background: var(--contra); color: #fff; }
.poll-note { font-size: 11px; color: #aaa; margin-top: 10px; }
.poll-results { margin-top: 6px; }
.poll-bar-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.poll-bar-wrap { background: #eee; height: 20px; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.poll-bar { height: 100%; transition: width .5s ease; }
.poll-bar-yes  { background: var(--pro); }
.poll-bar-no-r { background: var(--contra); }
.poll-total { font-size: 11px; color: #888; margin-top: 8px; }

/* Submit tip */
.submit-desc { font-size: 13px; color: #666; margin-bottom: 14px; line-height: 1.6; }
.submit-social-link { margin-top: 10px; font-size: 12px; }
.submit-social-link a { color: var(--red); font-weight: 600; }

/* Forms */
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 9px 11px;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: inherit;
  outline: none;
  background: #fafafa;
  border-radius: var(--radius);
  transition: border-color .15s;
}
.form-input:focus { border-color: var(--red); background: #fff; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: background .15s;
}
.form-btn:hover { background: var(--red-dk); }
.form-btn-outline {
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
  margin-left: 10px;
  border-radius: var(--radius);
}

/* Alerts */
.alert { padding: 10px 14px; margin-bottom: 12px; font-size: 13px; border-radius: var(--radius); }
.alert-error { background: #fdecea; border: 1px solid #f5c6cb; color: #7a1010; }
.alert-ok    { background: #e8f5e9; border: 1px solid #c8e6c9; color: #1a5c2e; }

/* ===== NEWS COLUMNS ===== */
.news-section { margin-bottom: 28px; }
.news-col-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.news-col { background: var(--white); border: 1px solid var(--border); }
.news-col-header {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.news-col-header.pro    { background: var(--pro); }
.news-col-header.contra { background: var(--contra); }
.col-count { font-size: 10px; font-weight: 400; opacity: .75; letter-spacing: 0; }

/* News items with thumbnails */
.news-item {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 14px;
  align-items: flex-start;
  transition: background .1s;
}
.news-item:hover { background: #fafafa; }
.news-item:last-child { border-bottom: none; }

.news-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 52px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.news-thumb:hover img { transform: scale(1.05); }

.news-text { flex: 1; min-width: 0; }
.news-source { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.news-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  display: block;
  transition: color .15s;
}
.news-title:hover { color: var(--red); }
.news-time { font-size: 10px; color: #bbb; margin-top: 5px; }
.news-empty { padding: 20px 16px; color: #aaa; font-size: 13px; text-align: center; }

.load-more-wrap { padding: 12px 14px; text-align: center; }
.load-more-btn {
  background: none;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 24px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .15s, color .15s;
  border-radius: var(--radius);
}
.load-more-btn:hover { background: var(--red); color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  margin-top: 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 32px;
  padding: 40px 20px 32px;
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-logo span { color: var(--yellow); }
.footer-col p { font-size: 12px; line-height: 1.7; margin-bottom: 10px; }
.footer-poly-note { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }
.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 12px; color: rgba(255,255,255,0.5); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li { font-size: 12px; }

/* Footer contact form */
.footer-contact-col .form-input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.footer-contact-col .form-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-contact-col .form-input:focus { border-color: var(--red); background: rgba(255,255,255,0.1); }
.footer-contact-col .form-btn { width: 100%; margin-top: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 20px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  max-width: 100%;
}
.footer-sep { margin: 0 8px; opacity: 0.4; }
.mini-footer .footer-bottom { padding: 14px 20px; }

/* ===== ARTICLE PAGE ===== */
.article-page .top-bar { position: static; }
.article-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.article-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: var(--radius);
}
.article-badge.pro    { background: var(--pro); color: #fff; }
.article-badge.contra { background: var(--contra); color: #fff; }
.article-badge.neutral{ background: #888; color: #fff; }
.article-title { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.article-meta { font-size: 12px; color: #888; margin-bottom: 18px; display: flex; gap: 8px; }
.article-source { font-weight: 700; color: var(--red); }
.article-img-wrap { margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; max-height: 400px; }
.article-img { width: 100%; object-fit: cover; }
.article-summary { background: var(--white); border-left: 4px solid var(--red); padding: 16px 18px; margin-bottom: 18px; font-size: 14px; line-height: 1.75; color: #333; }
.article-redirect-box { background: var(--white); border: 1px solid var(--border); padding: 20px; margin-bottom: 18px; text-align: center; }
.article-redirect-box p { font-size: 13px; color: #666; margin-bottom: 14px; }
.read-original-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .15s;
}
.read-original-btn:hover { background: var(--red-dk); color: #fff; }
.redirect-note { font-size: 11px; color: #bbb; margin-top: 10px; }
.article-share { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #888; }
.share-btn { display: inline-block; padding: 6px 14px; font-size: 11px; font-weight: 700; border-radius: var(--radius); }
.share-btn.fb { background: #1877F2; color: #fff; }
.share-btn.tw { background: #000; color: #fff; }
.share-btn.wa { background: #25D366; color: #fff; }

.article-sidebar { }
.sidebar-back { margin-bottom: 14px; font-size: 13px; }
.sidebar-back a { color: var(--red); font-weight: 600; }
.sidebar-section { background: var(--white); border: 1px solid var(--border); padding: 16px; margin-bottom: 16px; }
.sidebar-title { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.sidebar-item { border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 10px; }
.sidebar-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-source { font-size: 10px; color: #aaa; text-transform: uppercase; margin-bottom: 3px; }
.sidebar-item a { font-size: 13px; font-weight: 600; color: var(--black); line-height: 1.4; }
.sidebar-item a:hover { color: var(--red); }
.sidebar-time { font-size: 10px; color: #bbb; margin-top: 3px; }
.sidebar-poll { }

/* ===== AUTH PAGE ===== */
.auth-page { background: var(--gray); min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.auth-header { padding: 30px 0 20px; }
.auth-logo { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: var(--black); }
.auth-logo span { color: var(--red); }
.auth-box { background: var(--white); border: 1px solid var(--border); padding: 32px 28px; width: 100%; max-width: 400px; }
.auth-title { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.auth-switch { margin-top: 16px; font-size: 13px; color: #666; }
.auth-switch a { color: var(--red); font-weight: 600; }
.auth-note { font-size: 12px; color: #888; margin-bottom: 12px; line-height: 1.5; }
.auth-footer { margin-top: 20px; font-size: 12px; }
.auth-footer a { color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .mid-row { grid-template-columns: 1fr; }
  .news-col-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .logo-name { font-size: 28px; }
  .pm-chip { display: none; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .site-content { padding: 16px 12px; }
  .news-thumb { width: 56px; height: 44px; }
  .article-title { font-size: 22px; }
  .top-bar { font-size: 10px; padding: 5px 12px; }
}
