/*
Theme Name: Hajkuna
Theme URI: https://hakuna4tv.com
Author: Hakuna 4tv
Description: Custom React landing page for Hakuna 4tv
Version: 1.0.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #05050e;
  --bg2:     #0a0a16;
  --accent:  #6C63FF;
  --cyan:    #00D4FF;
  --neon:    #00FF88;
  --s2:      rgba(255,255,255,0.5);
  --border:  rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

/* ── Navbar ── */
.hk-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,14,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hk-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hk-logo span { color: var(--cyan); }
.hk-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hk-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.hk-nav-links a {
  color: var(--s2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.hk-nav-links a:hover { color: #fff; }
.hk-nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}
.hk-nav-cta:hover { opacity: 0.88; color: #fff; }

/* ── Layout ── */
.hk-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Blog Hero ── */
.hk-blog-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hk-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hk-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.hk-blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hk-blog-hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hk-blog-hero p {
  color: var(--s2);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Post Grid ── */
.hk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 60px 0;
}

.hk-card {
  background: rgba(10,10,22,0.97);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.hk-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108,99,255,0.35);
  box-shadow: 0 16px 48px rgba(108,99,255,0.18);
}
.hk-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: rgba(108,99,255,0.08);
}
.hk-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(0,212,255,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hk-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hk-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--s2);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.hk-card-cat {
  background: rgba(108,99,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.25);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hk-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: #fff;
}
.hk-card h2 a { color: #fff; }
.hk-card h2 a:hover { color: var(--cyan); }
.hk-card-excerpt {
  color: var(--s2);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hk-card-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap 0.2s;
}
.hk-card-read:hover { gap: 0.65rem; color: var(--accent); }
.hk-card-top-bar {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.hk-card:hover .hk-card-top-bar { opacity: 1; }

/* ── Pagination ── */
.hk-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 5rem;
  flex-wrap: wrap;
}
.hk-pagination a,
.hk-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--s2);
  transition: all 0.2s;
}
.hk-pagination a:hover {
  border-color: rgba(108,99,255,0.4);
  color: var(--accent);
  background: rgba(108,99,255,0.08);
}
.hk-pagination .current {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  border-color: transparent;
}

/* ── Single Post ── */
.hk-single-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--border);
}
.hk-single-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hk-single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--s2);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.hk-single-thumb {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 1.25rem;
  margin: 2.5rem 0;
  border: 1px solid var(--border);
}

/* ── Post Content ── */
.hk-content {
  padding: 3rem 0 5rem;
  max-width: 760px;
  margin: 0 auto;
}
.hk-content h2,
.hk-content h3,
.hk-content h4 {
  font-weight: 800;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
  color: #fff;
}
.hk-content h2 { font-size: 1.75rem; }
.hk-content h3 { font-size: 1.35rem; }
.hk-content h4 { font-size: 1.1rem; }
.hk-content p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.hk-content ul,
.hk-content ol {
  color: rgba(255,255,255,0.78);
  margin: 0 0 1.35rem 1.5rem;
  line-height: 1.75;
}
.hk-content li { margin-bottom: 0.4rem; }
.hk-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(108,99,255,0.06);
  border-radius: 0 0.75rem 0.75rem 0;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}
.hk-content a { color: var(--cyan); }
.hk-content a:hover { color: var(--accent); }
.hk-content code {
  background: rgba(108,99,255,0.12);
  color: var(--cyan);
  padding: 0.15em 0.45em;
  border-radius: 0.3rem;
  font-size: 0.88em;
}
.hk-content pre {
  background: rgba(10,10,22,0.98);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.hk-content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.hk-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Back link ── */
.hk-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--s2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.hk-back:hover { color: #fff; }

/* ── Footer ── */
.hk-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--s2);
  font-size: 0.85rem;
}
.hk-footer a { color: var(--s2); }
.hk-footer a:hover { color: #fff; }

/* ── No posts ── */
.hk-empty {
  text-align: center;
  padding: 5rem 0;
  color: var(--s2);
}

@media (max-width: 640px) {
  .hk-nav { padding: 0 1rem; }
  .hk-nav-links { display: none; }
  .hk-grid { grid-template-columns: 1fr; }
  .hk-blog-hero { padding: 50px 0 40px; }
}
