/*
Theme Name: Futbolete News
Theme URI: https://example.com/
Author: Custom Build
Author URI: https://example.com/
Description: A custom news / magazine theme reproducing the Futbolete News layout — top tag bar, logo + slim menu header with search, a large featured hero, a responsive post-card grid, and a clean footer. Built with real WordPress features: menus, widgets, featured images and category badges.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: futbolete-news
*/

/* ============================================================
   THEME COLORS & FONTS  —  change these to match exactly.
   To grab the original's exact values: open futbolete.com/us,
   right-click a red badge/link > Inspect, and read the
   `color` / `background-color` in the Styles panel. Paste the
   hex here and the whole theme updates.
   ============================================================ */
:root {
  --accent:        #d61a20;   /* main red — links, badges, hovers  */
  --accent-dark:   #b0141a;   /* darker red for hover states       */
  --topbar-bg:     #1c1c1c;   /* dark top tag bar                  */
  --topbar-text:   #ffffff;
  --header-bg:     #ffffff;
  --text:          #1a1a1a;   /* main body text                    */
  --text-muted:    #6b7280;   /* dates, meta                       */
  --border:        #e6e6e6;   /* hairline dividers / card borders  */
  --bg:            #ffffff;   /* page background                   */
  --bg-alt:        #f5f5f5;   /* subtle section background         */
  --footer-bg:     #1c1c1c;
  --footer-text:   #cfcfcf;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;   /* headlines — swap to match original */

  --maxw: 1180px;
  --radius: 4px;
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.22; margin: 0 0 .5rem; color: var(--text); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ============================================================
   TOP TAG BAR
   ============================================================ */
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: 13px; }
.topbar .container { display: flex; align-items: center; min-height: 40px; gap: 6px; flex-wrap: wrap; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 8px 0; }
.topbar a { color: var(--topbar-text); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: 12px; }
.topbar a:hover { color: var(--accent); }

/* ============================================================
   MAIN HEADER
   ============================================================ */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.site-branding img { max-height: 46px; width: auto; }
.site-branding .site-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); }

.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  color: var(--text);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }

.header-search button {
  background: none; border: 0; cursor: pointer; color: var(--text);
  padding: 6px; display: flex; align-items: center;
}
.header-search button:hover { color: var(--accent); }
.header-search svg { width: 20px; height: 20px; }

/* search dropdown */
.search-panel { display: none; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.search-panel.open { display: block; }
.search-panel .container { padding: 16px 20px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: var(--font-body);
}
.search-form button[type="submit"] {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  padding: 0 22px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 13px;
}
.search-form button[type="submit"]:hover { background: var(--accent-dark); }

/* mobile menu toggle */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); padding: 6px; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.cat-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.cat-badge:hover { background: var(--accent-dark); color:#fff !important; }

/* ============================================================
   HERO / FEATURED
   ============================================================ */
.hero { padding: 34px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

.hero-main .thumb { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-alt); }
.hero-main .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero-main a:hover .thumb img { transform: scale(1.04); }
.hero-main h2 { font-size: 34px; margin-top: 16px; }
.hero-main h2 a { color: var(--text); }
.hero-main h2 a:hover { color: var(--accent); }
.hero-excerpt { color: #333; font-size: 17px; margin: 10px 0 12px; }
.read-more { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }

.meta { color: var(--text-muted); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.meta .by { font-weight: 600; color: #444; }

/* side list of secondary featured posts */
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.side-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.side-item:last-child { border-bottom: 0; }
.side-item .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--bg-alt); }
.side-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-item h3 { font-size: 15px; line-height: 1.3; margin: 0 0 6px; }
.side-item h3 a { color: var(--text); }
.side-item h3 a:hover { color: var(--accent); }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-head { display: flex; align-items: center; gap: 14px; margin: 40px 0 22px; }
.section-head h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0;
  font-family: var(--font-body); font-weight: 800; color: var(--text);
  border-left: 4px solid var(--accent); padding-left: 12px;
}
.section-head .rule { flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   POST GRID
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card { display: flex; flex-direction: column; }
.card .cat-badge { align-self: flex-start; }
.card .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-alt); margin-bottom: 12px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card a:hover .thumb img { transform: scale(1.04); }
.card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card .meta { margin-top: auto; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { margin: 40px 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-weight: 600;
}
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   SINGLE POST + SIDEBAR (two columns)
   ============================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
  margin-top: 34px;
}
.content-area { min-width: 0; }
.sidebar { min-width: 0; }
@media (min-width: 901px) {
  .sidebar { position: sticky; top: 96px; }
}
@media (max-width: 900px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; gap: 40px; }
}

.single-post { margin: 0 0 10px; }
.single-post .entry-thumb {
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-post .entry-thumb img { width: 100%; height: auto; display: block; }
.single-post .entry-title { font-size: 36px; margin: 12px 0 14px; }

/* ---------- sidebar widgets ---------- */
.sidebar .widget { margin-bottom: 32px; }
.widget-title {
  font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  font-family: var(--font-body); font-weight: 800; color: var(--text);
  border-left: 4px solid var(--accent); padding-left: 12px; margin: 0 0 16px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.4; }
.widget ul li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }
.widget_categories li { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); }

/* recent posts with thumbnails */
.widget-recent-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.widget-recent-item:last-child { border-bottom: 0; }
.widget-recent-item .thumb {
  width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
}
.widget-recent-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-item .info { display: flex; flex-direction: column; gap: 4px; }
.widget-recent-item .title { font-size: 14px; line-height: 1.35; color: var(--text); font-weight: 600; }
.widget-recent-item:hover .title { color: var(--accent); }
.widget-recent-item .date { font-size: 12px; color: var(--text-muted); }

/* latest articles block under comments */
.latest-articles { margin-top: 48px; }
.latest-articles .section-head { margin: 0 0 22px; }

/* ============================================================
   AUTHOR ARCHIVE HEADER
   ============================================================ */
.author-header {
  display: flex; align-items: center; gap: 24px;
  padding: 34px 0 26px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.author-header-avatar img {
  width: 110px; height: 110px;
  border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--bg-alt);
}
.author-header-info { min-width: 0; }
.author-header .author-eyebrow {
  text-transform: uppercase; font-size: 11px; letter-spacing: .06em;
  color: var(--text-muted); font-weight: 700;
}
.author-header-name { font-size: 30px; margin: 4px 0 8px; }
.author-header-bio { margin: 0 0 8px; color: #444; font-size: 15px; line-height: 1.6; max-width: 720px; }
.author-header-site { font-size: 13px; font-weight: 700; }
@media (max-width: 560px) {
  .author-header { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
  .author-header-avatar img { width: 88px; height: 88px; }
  .author-header-name { font-size: 25px; }
}
.entry-content { font-size: 18px; line-height: 1.75; color: #222; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .4em 0 .4em 20px;
  font-style: italic; color: #444;
}

/* author box */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  margin: 40px 0 10px; padding: 22px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
}
.author-box .author-avatar img { width: 72px; height: 72px; border-radius: 50%; display: block; }
.author-eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.author-name { font-size: 20px; margin: 3px 0 6px; font-family: var(--font-head); }
.author-name a { color: var(--text); }
.author-name a:hover { color: var(--accent); }
.author-bio { margin: 0 0 8px; color: #444; font-size: 15px; line-height: 1.6; }
.author-link { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 44px; padding-top: 32px; border-top: 3px solid var(--text); }
.comments-title,
.comment-reply-title {
  font-size: 22px; margin: 0 0 22px; font-family: var(--font-head);
}

/* comment list */
.comment-list { list-style: none; margin: 0 0 34px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 0; padding-left: 34px; }
.comment-list li.comment { margin: 0 0 20px; }
.comment-body {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 18px 78px;
  min-height: 66px;
}
.comment-body .avatar {
  position: absolute; left: 18px; top: 18px;
  width: 48px; height: 48px; border-radius: 50%;
}
.comment-author { font-size: 15px; }
.comment-author .fn { font-style: normal; font-weight: 700; color: var(--text); }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--text-muted); margin: 2px 0 8px; }
.comment-metadata a { color: var(--text-muted); }
.comment-content { font-size: 15px; line-height: 1.6; color: #333; }
.comment-content p { margin: 0 0 .7em; }
.reply { margin-top: 8px; }
.comment-reply-link {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent);
}
.comment-reply-link:hover { color: var(--accent-dark); }
.bypostauthor > .comment-body { border-left: 3px solid var(--accent); }

/* comment form */
.comment-respond {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; margin-top: 10px;
}
.comment-notes { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.comment-form label {
  display: block; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 6px; color: var(--text);
}
.comment-form .required { color: var(--accent); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  color: var(--text);
}
.comment-form textarea { resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,26,32,.12);
}
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url { margin: 0 0 16px; }
.comment-form-cookies-consent { font-size: 13px; color: var(--text-muted); }
.comment-form-cookies-consent input { margin-right: 8px; }
.comment-submit,
.form-submit input[type="submit"] {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  padding: 13px 30px; font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .04em; cursor: pointer;
}
.comment-submit:hover,
.form-submit input[type="submit"]:hover { background: var(--accent-dark); }
.no-comments { color: var(--text-muted); font-style: italic; }

/* archive header */
.archive-header { padding: 30px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.archive-header h1 { font-size: 30px; }
.archive-header .desc { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 60px; padding: 40px 0 26px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 0; justify-content: center; }
.footer-nav li { display: inline-flex; align-items: center; }
.footer-nav li:not(:last-child)::after { content: "|"; margin: 0 16px; color: rgba(255,255,255,.35); font-size: 13px; }
.footer-nav a { color: var(--footer-text); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.footer-nav a:hover { color: #fff; }
.footer-logo img { max-height: 40px; filter: brightness(0) invert(1); opacity: .9; }
.footer-copy { font-size: 13px; color: #9a9a9a; letter-spacing: .04em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-main h2 { font-size: 27px; }
}
@media (max-width: 680px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .single-post .entry-title { font-size: 28px; }
  .entry-content { font-size: 17px; }
  .hero-main h2 { font-size: 24px; }
}
