/*
Theme Name: proxy26
Theme URI: https://tutorial.mx/
Author: OpenAI
Description: Responsive editorial WordPress theme for proxy/tutorial sites with sticky ad sidebar support.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: proxy26
*/

:root {
  --p26-blue: #0b6cf2;
  --p26-blue-dark: #0759ca;
  --p26-ink: #111827;
  --p26-muted: #687386;
  --p26-bg: #f6f8fb;
  --p26-card: #ffffff;
  --p26-border: #e5eaf1;
  --p26-shadow: 0 8px 28px rgba(17, 24, 39, .06);
  --p26-radius: 14px;
  --p26-container: 1360px;
  --p26-sidebar: 320px;
  --p26-gap: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--p26-bg);
  color: var(--p26-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--p26-blue); text-decoration: none; }
a:hover { color: var(--p26-blue-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.p26-container {
  width: min(calc(100% - 40px), var(--p26-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--p26-border);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.custom-logo-link img { max-height: 44px; width: auto; }
.site-title { margin: 0; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.site-title a { color: var(--p26-ink); }
.site-title .dotmx, .site-title a:hover { color: var(--p26-blue); }
.site-tagline { color: var(--p26-muted); font-size: 12px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 24px; align-items: center; }
.main-navigation a { color: var(--p26-ink); font-weight: 700; font-size: 14px; padding: 28px 0 24px; display: block; border-bottom: 3px solid transparent; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--p26-blue); border-color: var(--p26-blue); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 24px; }
.header-search { width: 290px; }
.search-form { display: flex; align-items: stretch; }
.search-field { width: 100%; border: 1px solid var(--p26-border); border-right: 0; border-radius: 8px 0 0 8px; padding: 11px 13px; background: #fff; color: var(--p26-ink); }
.search-submit { border: 0; background: var(--p26-blue); color: white; padding: 0 16px; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 700; }
.search-submit:hover { background: var(--p26-blue-dark); }

.site-main { padding: 26px 0 50px; }
.layout-grid { display: grid; grid-template-columns: minmax(0,1fr) var(--p26-sidebar); gap: var(--p26-gap); align-items: start; }
.main-column { min-width: 0; }
.sidebar { min-width: 0; }
.sidebar-stack { display: grid; gap: 18px; }
.sticky-rail { position: sticky; top: 96px; display: grid; gap: 18px; }

.card, .widget, .ad-slot, .content-box {
  background: var(--p26-card);
  border: 1px solid var(--p26-border);
  border-radius: var(--p26-radius);
  box-shadow: var(--p26-shadow);
}

.ad-label { display: block; color: #98a2b3; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; margin: 0 0 6px 4px; }
.ad-slot { display: grid; place-items: center; overflow: hidden; margin-inline: auto; }
.ad-300x250 { width: min(100%, 300px); min-height: 250px; }
.ad-300x600 { width: min(100%, 300px); min-height: 600px; }
.ad-placeholder { width: 100%; height: 100%; min-height: inherit; display: grid; place-items: center; text-align: center; color: #8a94a6; background: linear-gradient(145deg,#f8fafc,#eef3f8); font-weight: 700; }
.ad-slot img, .ad-slot iframe { max-width: 100%; }

.hero-feature { position: relative; min-height: 430px; border-radius: 16px; overflow: hidden; background: #0f172a; color: #fff; box-shadow: var(--p26-shadow); }
.hero-feature img { width: 100%; height: 430px; object-fit: cover; opacity: .62; }
.hero-feature::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(3,10,24,.86),rgba(3,10,24,.42) 58%,rgba(3,10,24,.18)); }
.hero-copy { position:absolute; z-index:2; left: 36px; bottom: 34px; max-width: 700px; }
.hero-copy h1 { font-size: clamp(38px,4vw,64px); line-height: .98; letter-spacing: -.045em; margin: 12px 0 16px; }
.hero-copy p { font-size: 17px; color: #e5e7eb; max-width: 620px; }
.badge { display:inline-flex; align-items:center; background:var(--p26-blue); color:#fff; padding:6px 10px; border-radius:6px; font-size:11px; text-transform:uppercase; font-weight:800; letter-spacing:.04em; }
.button { display:inline-flex; align-items:center; gap:8px; background:var(--p26-blue); color:#fff; padding:12px 16px; border-radius:8px; font-weight:800; }
.button:hover { background:var(--p26-blue-dark); color:#fff; }
.meta { display:flex; flex-wrap:wrap; gap:14px; color:var(--p26-muted); font-size:13px; }
.hero-copy .meta { color:#e5e7eb; margin-top:18px; }

.section-header { display:flex; justify-content:space-between; align-items:end; gap:16px; margin:30px 0 14px; }
.section-header h2 { margin:0; font-size:28px; letter-spacing:-.035em; }
.post-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.post-card { overflow:hidden; }
.post-card .thumb { display:block; aspect-ratio: 16 / 9; overflow:hidden; background:#dbe3ec; }
.post-card .thumb img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.post-card:hover .thumb img { transform:scale(1.025); }
.post-card-body { padding:16px; }
.post-card h3 { font-size:20px; line-height:1.18; letter-spacing:-.025em; margin:8px 0 10px; }
.post-card h3 a { color:var(--p26-ink); }
.post-card p { color:var(--p26-muted); margin:0 0 14px; font-size:14px; }
.category-pill { color:var(--p26-blue); background:#eaf2ff; border-radius:5px; padding:4px 7px; text-transform:uppercase; font-size:10px; font-weight:800; }

.topic-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.topic-card { text-align:center; padding:20px 12px; background:#fff; border:1px solid var(--p26-border); border-radius:12px; }
.topic-card strong { display:block; color:var(--p26-ink); }
.topic-card span { color:var(--p26-muted); font-size:12px; }

.list-posts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 28px; }
.list-post { display:grid; grid-template-columns:120px minmax(0,1fr); gap:14px; align-items:start; }
.list-post img { width:120px; height:80px; object-fit:cover; border-radius:8px; }
.list-post h3 { margin:2px 0 6px; font-size:17px; line-height:1.18; }
.list-post h3 a { color:var(--p26-ink); }

.widget { padding:18px; }
.widget-title { margin:0 0 12px; font-size:18px; }
.widget ul { margin:0; padding-left:18px; }

.breadcrumbs { font-size:13px; color:var(--p26-muted); margin-bottom:18px; }
.single-header { margin-bottom:20px; }
.single-header h1 { font-size:clamp(40px,4vw,64px); line-height:1.02; letter-spacing:-.045em; margin:10px 0 14px; max-width:950px; }
.single-excerpt { color:var(--p26-muted); font-size:18px; max-width:900px; }
.single-featured { border-radius:16px; overflow:hidden; margin:20px 0 28px; }
.single-featured img { width:100%; max-height:560px; object-fit:cover; }
.entry-content { font-size:17px; }
.entry-content h2, .entry-content h3 { line-height:1.15; letter-spacing:-.03em; margin-top:1.6em; }
.entry-content h2 { font-size:30px; }
.entry-content h3 { font-size:24px; }
.entry-content pre { background:#111827; color:#e5e7eb; padding:18px; border-radius:10px; overflow:auto; font-size:14px; }
.entry-content code { font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace; }
.entry-content blockquote { margin:24px 0; padding:16px 20px; border-left:4px solid var(--p26-blue); background:#eef5ff; border-radius:0 8px 8px 0; }
.entry-content table { width:100%; border-collapse:collapse; }
.entry-content th,.entry-content td { border:1px solid var(--p26-border); padding:10px; }

.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.related-card img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:10px; }
.related-card h3 { font-size:16px; line-height:1.25; }

.archive-title { font-size:38px; letter-spacing:-.04em; margin:0 0 20px; }
.pagination { margin-top:30px; display:flex; gap:8px; flex-wrap:wrap; }
.pagination .page-numbers { padding:8px 12px; border-radius:8px; background:#fff; border:1px solid var(--p26-border); }
.pagination .current { background:var(--p26-blue); color:#fff; }

.site-footer { background:#0f172a; color:#cbd5e1; padding:46px 0 26px; margin-top:40px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:30px; }
.site-footer a { color:#e2e8f0; }
.site-footer .copyright { margin-top:28px; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; color:#94a3b8; }

@media (max-width: 1100px) {
  :root { --p26-container: 980px; --p26-sidebar: 300px; }
  .header-inner { grid-template-columns:auto auto 1fr; }
  .main-navigation { grid-column:1/-1; order:3; border-top:1px solid var(--p26-border); }
  .main-navigation ul { justify-content:flex-start; overflow-x:auto; }
  .main-navigation a { padding:13px 0; }
  .header-search { justify-self:end; }
  .post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .topic-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 820px) {
  .p26-container { width:min(calc(100% - 28px), var(--p26-container)); }
  .site-header { position:relative; }
  .header-inner { grid-template-columns:1fr auto; min-height:68px; }
  .header-search { grid-column:1/-1; width:100%; padding-bottom:14px; }
  .menu-toggle { display:block; }
  .main-navigation { display:none; grid-column:1/-1; }
  .main-navigation.is-open { display:block; }
  .main-navigation ul { flex-direction:column; align-items:stretch; gap:0; }
  .main-navigation a { padding:11px 0; }
  .layout-grid { grid-template-columns:1fr; }
  .sticky-rail { position:static; }
  .sidebar { order:2; }
  .hero-feature, .hero-feature img { min-height:360px; height:360px; }
  .hero-copy { left:22px; right:22px; bottom:24px; }
  .post-grid, .related-grid { grid-template-columns:1fr 1fr; }
  .list-posts { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
}

@media (max-width: 560px) {
  .site-title { font-size:26px; }
  .post-grid, .related-grid, .topic-grid { grid-template-columns:1fr; }
  .hero-feature, .hero-feature img { height:430px; }
  .hero-copy h1 { font-size:38px; }
  .single-header h1 { font-size:40px; }
  .list-post { grid-template-columns:92px minmax(0,1fr); }
  .list-post img { width:92px; height:72px; }
}
