/* =========================================================
   Thalapathy Vijay Fan News — thalapathyvijay.com
   Theme: light news-site (white bg, brand red accent)
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eceef2;
  --line: #e2e4ea;
  --text: #14141a;
  --muted: #5a6172;
  --accent: #e10600;        /* brand red       */
  --accent-2: #c8102e;      /* deeper press red */
  --tag: #c8102e;
  --radius: 10px;
  --maxw: 1240px;
  --shadow: 0 6px 24px rgba(20,20,30,.08);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-tamil: "Noto Sans Tamil", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.tamil { font-family: var(--font-tamil); }

/* ---------- Top Bar ---------- */
.topbar {
  background: #f5f6f8;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px;
}
.topbar .date { letter-spacing: .04em; text-transform: uppercase; }
.topbar .socials a { margin-left: 12px; opacity: .7; }
.topbar .socials a:hover { opacity: 1; color: var(--accent); }

/* ---------- Header / Logo ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
}
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb800, var(--accent) 70%);
  display: grid; place-items: center;
  font-weight: 900; color: #fff;
  box-shadow: 0 4px 14px rgba(225,6,0,.25);
}
.brand-text h1 {
  margin: 0; font-size: 22px; letter-spacing: .02em;
}
.brand-text h1 span { color: var(--accent); }
.brand-text small {
  display: block; font-size: 11px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}

.header-actions { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600;
  border: none; cursor: pointer; font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #b80500; color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.main-nav .container {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto;
}
.main-nav a {
  display: inline-block;
  padding: 14px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent); border-bottom-color: var(--accent);
}

/* ---------- Breaking Ticker ---------- */
.ticker {
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center;
  overflow: hidden;
}
.ticker .label {
  background: #14141a; padding: 10px 16px; font-weight: 800;
  text-transform: uppercase; font-size: 12px; letter-spacing: .08em;
  flex-shrink: 0;
}
.ticker .scroll {
  white-space: nowrap; padding: 10px 12px;
  animation: scroll 38s linear infinite;
  font-size: 14px;
}
.ticker .scroll span { margin-right: 48px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 36px 0 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.hero-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 460px;
  background: #14141a center/cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.85) 100%),
    url("https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?w=1400");
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.hero-main .meta {
  padding: 30px;
}
.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: .08em; text-transform: uppercase;
}
.tag.gold { background: var(--accent-2); color: #fff; }
.tag.dark { background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.hero-main h2 {
  margin: 12px 0 8px; font-size: 32px; line-height: 1.2; color: #fff;
}
.hero-main .byline { color: #d4d4dc; font-size: 13px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.side-card .thumb {
  height: 140px;
  background-size: cover; background-position: center;
}
.side-card .body { padding: 14px 16px; }
.side-card h3 {
  font-size: 15px; margin: 6px 0 4px; line-height: 1.35;
}
.side-card .byline { color: var(--muted); font-size: 12px; }

/* ---------- Section heading ---------- */
.section { padding: 36px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-head h2 {
  margin: 0; font-size: 22px; letter-spacing: .02em;
}
.section-head h2::before {
  content: ""; display: inline-block; width: 6px; height: 22px;
  background: var(--accent); margin-right: 10px; vertical-align: middle;
  border-radius: 2px;
}
.section-head a { color: var(--accent); font-size: 13px; font-weight: 600; }

/* ---------- News grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.news-card .thumb {
  height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.news-card .thumb .tag { position: absolute; top: 12px; left: 12px; }
.news-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 {
  margin: 0 0 10px; font-size: 17px; line-height: 1.35;
}
.news-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; flex: 1; }
.news-card .byline {
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 10px;
}

/* ---------- Two-column (movies + side) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* ---------- Movies ---------- */
.movies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.movie {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.movie .poster {
  width: 110px; height: 140px; border-radius: 6px;
  background: #f0f1f4 center/cover no-repeat;
}
.movie h4 { margin: 0 0 4px; font-size: 16px; }
.movie .year { color: var(--accent); font-size: 12px; font-weight: 700; }
.movie p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ---------- Sidebar widgets ---------- */
.widget {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 22px;
}
.widget h3 {
  margin: 0 0 14px; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.popular .item {
  display: grid; grid-template-columns: 60px 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.popular .item:last-child { border-bottom: none; }
.popular .item .thumb {
  width: 60px; height: 60px; border-radius: 6px;
  background-size: cover; background-position: center;
}
.popular .item h4 { font-size: 13px; margin: 0; line-height: 1.3; }
.popular .item .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, #fff5f4 0%, #ffffff 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.newsletter h2 { margin: 0 0 6px; font-size: 24px; }
.newsletter p { color: var(--muted); margin: 0 0 18px; }
.newsletter form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
}
.newsletter input {
  flex: 1; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 14px;
}
.newsletter input:focus { outline: none; border-color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid .gitem {
  aspect-ratio: 1/1;
  background-size: cover; background-position: center;
  border-radius: 8px; cursor: pointer;
  transition: transform .2s ease;
  position: relative; overflow: hidden;
}
.gallery-grid .gitem::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.7) 100%);
  opacity: 0; transition: opacity .2s ease;
}
.gallery-grid .gitem:hover { transform: scale(1.03); }
.gallery-grid .gitem:hover::after { opacity: 1; }

/* ---------- Article (single news) ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 40px 20px; }
.article-wrap .tag { margin-bottom: 16px; }
.article-wrap h1 { font-size: 36px; line-height: 1.2; margin: 0 0 14px; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.article-cover {
  width: 100%; height: 420px; background: #f0f1f4 center/cover no-repeat;
  border-radius: var(--radius); margin-bottom: 26px;
}
.article-body p { font-size: 17px; line-height: 1.75; margin: 0 0 18px; color: var(--text); }
.article-body h2 { font-size: 22px; margin: 30px 0 10px; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 18px; margin: 22px 0;
  background: var(--bg-2); color: var(--text); font-style: italic;
  border-radius: 4px;
}

/* ---------- About ---------- */
.about-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  align-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.about-hero .photo {
  height: 360px; border-radius: var(--radius);
  background: #f0f1f4 center/cover no-repeat;
}
.about-hero h2 { margin: 0 0 10px; font-size: 28px; }
.about-hero .role { color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.about-hero p { color: var(--text); }

.fact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 24px;
}
.fact {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.fact .num { color: var(--accent); font-size: 26px; font-weight: 800; }
.fact .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.contact-info .item {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.contact-info .item h4 { margin: 0 0 4px; color: var(--accent); font-size: 14px; }
.contact-form {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.contact-form label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--line);
  color: var(--text); border-radius: 6px; padding: 10px 12px;
  margin-bottom: 14px; font-family: inherit; font-size: 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: #f5f6f8;
  border-top: 1px solid var(--line);
  padding: 50px 0 0;
  margin-top: 50px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: var(--text); margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.copy {
  border-top: 1px solid var(--line);
  padding: 18px 0; text-align: center;
  color: var(--muted); font-size: 12px;
}
.copy strong { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .about-hero, .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .movies { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-main h2 { font-size: 24px; }
  .article-cover { height: 240px; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text h1 { font-size: 18px; }
  .newsletter form { flex-direction: column; }
}
