/* ============================================================
   FOOTBALL TRANSFER LATEST — Main Stylesheet
   ============================================================ */

:root {
  --red: #e8192c;
  --red-dark: #b8121f;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --gray: #6b6b6b;
  --light: #f4f4f4;
  --border: #e8e8e8;
  --white: #ffffff;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--light); font-family: var(--font-body); color: var(--black); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ── TICKER ── */
.ftl-ticker {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
}
.ftl-ticker-label {
  background: var(--black);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 2px;
  font-size: 11px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.ftl-ticker-wrap { overflow: hidden; flex: 1; }
.ftl-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ftl-ticker-track span { padding: 0 32px; }
.ftl-ticker-track span::before { content: '●'; margin-right: 12px; opacity: 0.5; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 5px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; }
.logo-badge {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border-bottom: 4px solid var(--red);
  flex-shrink: 0;
}
.logo-text .t1 { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--black); display: block; line-height: 1; }
.logo-text .t2 { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--red); display: block; line-height: 1; }
.logo-text .t3 { font-size: 10px; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; display: block; margin-top: 3px; }

.header-search { display: flex; flex: 1; max-width: 380px; margin-left: auto; }
.header-search input {
  flex: 1; border: 1px solid var(--border); border-right: none;
  padding: 9px 14px; font-family: var(--font-body); font-size: 14px;
  border-radius: 5px 0 0 5px; outline: none; background: var(--light);
}
.header-search button {
  background: var(--red); border: none; color: var(--white);
  padding: 0 16px; cursor: pointer; border-radius: 0 5px 5px 0; font-size: 16px;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--red-dark); }

/* ── NAV ── */
.site-nav { background: var(--black); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.site-nav ul li a {
  display: block;
  color: #ccc;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  transition: color 0.15s, background 0.15s;
}
.site-nav ul li a:hover,
.site-nav ul li.current-menu-item a { color: var(--white); background: var(--red); }
.site-nav ul li:first-child a { color: var(--white); background: var(--red); }

/* Dropdown */
.site-nav ul li { position: relative; }
.site-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--dark);
  min-width: 200px;
  z-index: 200;
  border-top: 2px solid var(--red);
}
.site-nav ul li:hover ul { display: block; }
.site-nav ul li ul li a { padding: 10px 16px; border-bottom: 1px solid #333; font-size: 13px; }

/* ── LAYOUT ── */
.site-main { max-width: var(--max-width); margin: 28px auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 320px; gap: 28px; }

/* ── SECTION HEADING ── */
.section-heading {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-heading::before { content: ''; width: 5px; height: 24px; background: var(--red); border-radius: 3px; flex-shrink: 0; }
.section-heading h2 { font-family: var(--font-head); font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── HERO POST ── */
.hero-post { margin-bottom: 28px; border-radius: 10px; overflow: hidden; position: relative; background: var(--black); min-height: 420px; display: flex; align-items: flex-end; cursor: pointer; }
.hero-post:hover .hero-img { transform: scale(1.03); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; opacity: 0.7; }
.hero-overlay { position: relative; z-index: 2; padding: 32px; background: linear-gradient(transparent, rgba(0,0,0,0.92) 50%); width: 100%; }
.hero-cat { display: inline-block; background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; margin-bottom: 12px; border-radius: 2px; }
.hero-title { font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--white); line-height: 1.1; margin-bottom: 12px; }
.hero-title a { color: var(--white); }
.hero-title a:hover { color: var(--red); }
.hero-meta { font-size: 13px; color: rgba(255,255,255,0.6); display: flex; gap: 16px; }

/* ── POST GRID ── */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.post-card { background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.post-card-img { height: 180px; overflow: hidden; background: var(--light); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 16px; }
.post-cat { font-family: var(--font-head); font-weight: 700; font-size: 10px; letter-spacing: 1.5px; color: var(--red); text-transform: uppercase; margin-bottom: 6px; display: block; }
.post-title { font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1.2; margin-bottom: 8px; }
.post-title a { color: var(--black); }
.post-title a:hover { color: var(--red); }
.post-excerpt { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 11px; color: #aaa; display: flex; justify-content: space-between; }

/* ── POST LIST ── */
.posts-list { display: flex; flex-direction: column; margin-bottom: 28px; }
.list-post { display: flex; gap: 14px; background: var(--white); padding: 14px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; transition: background 0.15s; }
.list-post:first-child { border-radius: 8px 8px 0 0; }
.list-post:last-child { border-radius: 0 0 8px 8px; border-bottom: none; }
.list-post:hover { background: #fafafa; }
.list-post-num { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--border); min-width: 30px; line-height: 1; margin-top: 2px; }
.list-post-content { flex: 1; }
.list-post-title { font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.list-post-title a { color: var(--black); }
.list-post-title a:hover { color: var(--red); }
.list-post-meta { font-size: 11px; color: #aaa; }
.list-post-thumb { width: 80px; height: 60px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.list-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span { font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 5px; border: 1px solid var(--border); background: var(--white); color: var(--black); transition: all 0.2s; }
.pagination a:hover, .pagination .current { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── SIDEBAR ── */
.site-sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--white); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.widget-title { background: var(--black); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; margin: 0; }
.widget-body { padding: 12px 0; }
.widget ul { list-style: none; }
.widget ul li { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--black); font-family: var(--font-head); font-weight: 700; font-size: 15px; transition: color 0.15s; }
.widget ul li a:hover { color: var(--red); }

.ad-slot { border: 1px dashed var(--border); border-radius: 8px; height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #ccc; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; background: var(--white); }

.newsletter-widget { background: var(--black); border-radius: 8px; padding: 20px; }
.newsletter-widget h3 { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--white); margin-bottom: 6px; }
.newsletter-widget p { font-size: 13px; color: #888; margin-bottom: 14px; line-height: 1.5; }
.newsletter-widget input { width: 100%; background: #1a1a1a; border: 1px solid #333; border-radius: 5px; padding: 10px 14px; color: var(--white); font-family: var(--font-body); font-size: 13px; outline: none; margin-bottom: 10px; }
.newsletter-widget input::placeholder { color: #555; }
.newsletter-widget button { width: 100%; background: var(--red); color: var(--white); border: none; border-radius: 5px; padding: 11px; font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.newsletter-widget button:hover { background: var(--red-dark); }

/* ── SINGLE POST ── */
.single-post-header { margin-bottom: 24px; }
.single-post-header .post-cat { font-size: 11px; }
.single-post-title { font-family: var(--font-head); font-weight: 900; font-size: 40px; line-height: 1.1; margin: 10px 0 16px; }
.single-post-meta { font-size: 13px; color: var(--gray); display: flex; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.single-post-image { width: 100%; border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.single-post-image img { width: 100%; max-height: 500px; object-fit: cover; }
.single-post-content { font-size: 17px; line-height: 1.85; color: #222; }
.single-post-content p { margin-bottom: 20px; }
.single-post-content h2 { font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--black); border-left: 4px solid var(--red); padding-left: 14px; margin: 28px 0 14px; }
.single-post-content h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 24px 0 12px; }

/* ── FOOTER ── */
.site-footer { background: var(--black); margin-top: 48px; padding: 40px 0 24px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo-badge-sm { background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 900; font-size: 16px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 6px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #666; line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--white); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #666; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #444; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .site-main { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { max-width: 100%; order: 3; flex-basis: 100%; }
  .logo-text .t1, .logo-text .t2 { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .single-post-title { font-size: 28px; }
}
