/*
Theme Name: SK27GYM Custom Theme
Theme URI: https://sk27gym.com/
Author: SK27GYM
Author URI: https://sk27gym.com/
Description: Fast, clean, black-red fitness blog theme for SK27GYM (custom).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sk27gym
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns, right-sidebar
*/

:root {
  --bg: #0b0b0e;
  --surface: #101015;
  --surface-2: #15151b;
  --text: #e9e9ef;
  --muted: #b7b7c5;
  --border: rgba(255,255,255,.08);
  --red: #e10600;
  --red-2: #ff2a2a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(225,6,0,.18), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(255,42,42,.10), transparent 60%),
              var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-2); }
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus { left: 12px; top: 12px; background: #fff; color:#000; padding: 10px 12px; border-radius: 10px; z-index: 9999; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,14,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.site-title {
  font-weight: 800;
  letter-spacing: .5px;
}
.site-title span { color: var(--red); }
.site-description { color: var(--muted); font-size: 13px; margin-top: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.nav {
  display: flex; align-items: center; gap: 16px;
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 14px; align-items: center;
}
.nav a {
  padding: 10px 10px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.nav .current-menu-item > a,
.nav a:hover {
  background: rgba(255,255,255,.06);
}

.header-actions {
  display: flex; align-items: center; gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.btn--red {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  border-color: rgba(255,255,255,.08);
}
.btn--red:hover { filter: brightness(1.05); color: #fff; }
.icon-links a {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.icon-links a:hover { background: rgba(225,6,0,.15); border-color: rgba(225,6,0,.35); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav ul {
    position: fixed;
    inset: 72px 14px auto 14px;
    background: rgba(16,16,21,.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: .2s ease;
  }
  body.nav-open .nav ul {
    opacity: 1; pointer-events: auto;
    transform: translateY(0);
  }
  .header-actions { gap: 8px; }
}

/* Layout */
.main {
  padding: 28px 0 60px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.hero {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(225,6,0,.16), rgba(255,255,255,.03));
}

/* Post */
.post-title {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 10px 0 10px;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.meta a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); }
.meta a:hover { color: #fff; }
.featured {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 14px 0;
}
.content {
  font-size: 16px;
}
.content h2, .content h3, .content h4 {
  margin-top: 26px;
  line-height: 1.25;
}
.content h2 { font-size: 22px; }
.content h3 { font-size: 18px; }
.content p { color: rgba(233,233,239,.92); }
.content blockquote {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  color: rgba(233,233,239,.92);
}
.content ul, .content ol { padding-left: 20px; }
.content code {
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 8px;
}
.content pre {
  background: rgba(255,255,255,.06);
  padding: 14px;
  border-radius: 12px;
  overflow: auto;
}

.badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-size: 13px;
  color: var(--muted);
}
.badge:hover { border-color: rgba(225,6,0,.35); background: rgba(225,6,0,.10); color: #fff; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 22px;
}
.post-nav a {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  display: block;
}
.post-nav a small { display:block; color: var(--muted); margin-bottom: 4px; }
.post-nav a:hover { background: rgba(225,6,0,.10); border-color: rgba(225,6,0,.35); }

/* Sidebar */
.widget {
  margin-bottom: 16px;
}
.widget-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(233,233,239,.92);
}
.widget .card-pad { padding: 16px; }
.searchform {
  display: flex; gap: 10px;
}
.searchform input[type="search"] {
  flex: 1;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
.searchform input[type="search"]::placeholder { color: rgba(233,233,239,.55); }
.searchform button {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.list-links {
  list-style: none; margin: 0; padding: 0;
}
.list-links li {
  border-top: 1px solid var(--border);
}
.list-links li:first-child { border-top: 0; }
.list-links a {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 0;
  color: rgba(233,233,239,.92);
}
.list-links a:hover { color: #fff; }

/* Cards for archives */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) {
  .archive-grid { grid-template-columns: 1fr; }
}
.post-card {
  overflow: hidden;
}
.post-card .thumb {
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .info { padding: 14px 16px 16px; }
.post-card h3 { margin: 0 0 8px; line-height: 1.2; }
.post-card p { margin: 0; color: var(--muted); }
.post-card:hover { border-color: rgba(225,6,0,.35); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10,10,14,.62);
}
.footer-inner {
  padding: 26px 0;
  display: flex; flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.footer-inner a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); }
.footer-inner a:hover { color: #fff; }

/* Pagination */
.pagination {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
.pagination .page-numbers {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.pagination .current {
  background: rgba(225,6,0,.15);
  border-color: rgba(225,6,0,.35);
}

/* Comments */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.comment-meta { color: var(--muted); font-size: 13px; }
.comment-content { margin-top: 8px; color: rgba(233,233,239,.92); }
.comment-reply-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(225,6,0,.5); }
