/*
Theme Name: DropKingHub
Theme URI: https://dropkinghub.net/
Author: BearMoon for DropKingHub
Description: Editorial WordPress theme for AI automation, AI music, and content operations guides.
Version: 1.0.11
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dropkinghub
*/

:root {
  --dk-bg: #080a0d;
  --dk-bg-soft: #11161c;
  --dk-surface: #ffffff;
  --dk-ink: #14181d;
  --dk-muted: #66717e;
  --dk-line: #e7ebef;
  --dk-accent: #b8ff35;
  --dk-accent-dark: #7ebd16;
  --dk-blue: #276ef1;
  --dk-ai: #276ef1;
  --dk-auto: #0f9f7a;
  --dk-money: #e18b13;
  --dk-musicframe: #7c4dff;
  --dk-ebook: #d9486e;
  --dk-card-accent: var(--dk-blue);
  --dk-card-wash: #eef5ff;
  --dk-max: 1180px;
  --dk-radius: 8px;
  --dk-shadow: 0 20px 80px rgba(8, 10, 13, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--dk-ink);
  background: #f5f7f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
button,
input,
textarea {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.admin-bar .dk-site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.dk-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 10, 13, 0.86);
  color: #fff;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dk-nav {
  width: min(100% - 32px, var(--dk-max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  text-decoration: none;
}

.dk-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #071008;
  background: var(--dk-accent);
  border-radius: 8px;
  font-weight: 900;
}

.dk-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dk-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dk-menu a:hover,
.dk-menu .current-menu-item a {
  color: var(--dk-accent);
}

.dk-header-action {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  color: #071008;
  background: var(--dk-accent);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.dk-hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--dk-bg);
  overflow: hidden;
}

.dk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.94) 0%, rgba(8, 10, 13, 0.72) 37%, rgba(8, 10, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 10, 13, 0.96) 0%, rgba(8, 10, 13, 0.1) 42%);
  z-index: 1;
}

.dk-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.dk-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--dk-max));
  margin: 0 auto;
  padding: 82px 0 76px;
}

.dk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--dk-accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.dk-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.dk-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.72;
}

.dk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.dk-button,
.dk-button-secondary,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.dk-button,
.wp-block-button__link,
input[type="submit"] {
  color: #071008;
  background: var(--dk-accent);
}

.dk-button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dk-section {
  padding: 86px 0;
}

.dk-container {
  width: min(100% - 32px, var(--dk-max));
  margin: 0 auto;
}

.dk-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.dk-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.dk-section-head p {
  margin: 0;
  color: var(--dk-muted);
  font-size: 16px;
  line-height: 1.75;
}

.dk-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dk-post-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 48%, var(--dk-card-wash) 100%);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius);
  box-shadow: 0 1px 0 rgba(8, 10, 13, 0.03);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dk-post-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--dk-card-accent);
}

.dk-post-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -54px;
  width: 142px;
  height: 142px;
  background: var(--dk-card-accent);
  border-radius: 999px;
  opacity: 0.08;
  pointer-events: none;
}

.dk-post-card > * {
  position: relative;
  z-index: 1;
}

.dk-post-card.category-ai-music {
  --dk-card-accent: var(--dk-ai);
  --dk-card-wash: #eef5ff;
}

.dk-post-card.category-automation {
  --dk-card-accent: var(--dk-auto);
  --dk-card-wash: #edf9f5;
}

.dk-post-card.category-monetization {
  --dk-card-accent: var(--dk-money);
  --dk-card-wash: #fff6e8;
}

.dk-post-card.category-musicframe {
  --dk-card-accent: var(--dk-musicframe);
  --dk-card-wash: #f4f0ff;
}

.dk-post-card.category-ebook {
  --dk-card-accent: var(--dk-ebook);
  --dk-card-wash: #fff0f4;
}

.dk-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 10, 13, 0.12);
  box-shadow: var(--dk-shadow);
}

.dk-post-card a {
  text-decoration: none;
}

.dk-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dk-muted);
  font-size: 13px;
  font-weight: 700;
}

.dk-post-meta span {
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 10, 13, 0.06);
  border-radius: 999px;
}

.dk-post-card h3 {
  margin: 18px 0 12px;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: 0;
}

.dk-post-card p {
  margin: 0;
  color: var(--dk-muted);
  line-height: 1.7;
}

.dk-post-card > a:last-child {
  width: fit-content;
  margin-top: 22px;
  color: var(--dk-card-accent);
  font-weight: 850;
}

.dk-category-band {
  color: #fff;
  background: var(--dk-bg);
}

.dk-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dk-category-tile {
  position: relative;
  min-height: 260px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(17, 22, 28, 0.98) 0%, rgba(17, 22, 28, 0.9) 54%, rgba(39, 110, 241, 0.2) 100%);
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease;
}

.dk-category-tile:nth-child(1) {
  --dk-tile-accent: var(--dk-ai);
}

.dk-category-tile:nth-child(2) {
  --dk-tile-accent: var(--dk-auto);
}

.dk-category-tile:nth-child(3) {
  --dk-tile-accent: var(--dk-money);
}

.dk-category-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--dk-tile-accent, var(--dk-accent));
}

.dk-category-tile::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 160px;
  height: 160px;
  background: var(--dk-tile-accent, var(--dk-accent));
  border-radius: 999px;
  opacity: 0.16;
}

.dk-category-tile:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(145deg, rgba(19, 26, 34, 1) 0%, rgba(17, 22, 28, 0.94) 50%, rgba(184, 255, 53, 0.11) 100%);
}

.dk-category-tile > * {
  position: relative;
  z-index: 1;
}

.dk-category-tile span {
  color: var(--dk-tile-accent, var(--dk-accent));
  font-size: 13px;
  font-weight: 850;
}

.dk-category-tile h3 {
  margin: 52px 0 12px;
  font-size: 28px;
}

.dk-category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.72;
}

.dk-main-layout {
  width: min(100% - 32px, var(--dk-max));
  margin: 56px auto 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
}

.dk-content,
.dk-sidebar-widget {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius);
  overflow: hidden;
}

.dk-content {
  padding: clamp(26px, 5vw, 58px);
}

.dk-content::before,
.dk-sidebar-widget::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--dk-accent), var(--dk-blue));
}

.dk-content > *,
.dk-sidebar-widget > * {
  position: relative;
  z-index: 1;
}

.dk-content h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.dk-entry-meta {
  color: var(--dk-muted);
  font-size: 14px;
  font-weight: 700;
}

.dk-entry {
  margin-top: 34px;
  font-size: 18px;
  line-height: 1.86;
}

.dk-entry h2,
.dk-entry h3 {
  margin-top: 44px;
  line-height: 1.26;
}

.dk-entry blockquote {
  margin: 32px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--dk-accent-dark);
  background: #f5f8f2;
}

.dk-comments {
  margin-top: 46px;
  padding-top: 36px;
  border-top: 1px solid var(--dk-line);
}

.dk-comments-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.dk-comments-head p:last-child {
  margin: 0 0 24px;
  color: var(--dk-muted);
  line-height: 1.7;
}

.dk-comment-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.dk-comment-list .comment {
  margin: 0 0 16px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius);
}

.dk-comment-list .children {
  margin: 16px 0 0 24px;
  padding: 0;
  list-style: none;
}

.dk-comment-list .comment-author,
.dk-comment-list .comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dk-muted);
  font-size: 14px;
}

.dk-comment-list .comment-author b {
  color: var(--dk-ink);
}

.dk-comment-list .comment-content {
  margin-top: 12px;
  line-height: 1.75;
}

.dk-comment-form-wrap {
  margin-top: 26px;
  padding: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius);
}

.dk-comment-form-wrap h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.dk-comment-form p {
  margin: 0 0 16px;
}

.dk-comment-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--dk-muted);
  font-size: 14px;
  font-weight: 800;
}

.dk-comment-form input[type="text"],
.dk-comment-form input[type="email"],
.dk-comment-form input[type="url"],
.dk-comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--dk-ink);
  background: #fff;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  font: inherit;
}

.dk-comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.dk-comment-form .comment-notes,
.dk-comment-form .logged-in-as {
  color: var(--dk-muted);
  font-size: 14px;
  line-height: 1.65;
}

.dk-comments-closed {
  color: var(--dk-muted);
  font-weight: 700;
}

.dk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dk-sidebar-widget {
  padding: 22px;
}

.dk-sidebar-widget h2,
.dk-sidebar-widget h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.dk-sidebar-widget ul {
  margin: 0;
  padding-left: 18px;
}

.dk-sidebar-widget li {
  margin: 10px 0;
}

.dk-cta {
  color: #fff;
  background: #10151a;
}

.dk-cta .dk-container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.45fr);
  gap: 34px;
  align-items: center;
}

.dk-cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
}

.dk-cta p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.dk-site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.68);
  background: #050608;
  font-size: 14px;
}

.dk-musicframe-shell {
  height: calc(100svh - 68px);
  min-height: 0;
  background: #07090c;
  color: #fff;
  overflow: hidden;
}

.dk-musicframe-top {
  width: min(100% - 32px, var(--dk-max));
  margin: 0 auto;
  padding: 14px 0 10px;
}

.dk-musicframe-top h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.12;
}

.dk-musicframe-top p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.dk-musicframe-frame-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  background: #050608;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.dk-musicframe-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050608;
}

.page-template-page-musicframe-app {
  overflow: hidden;
}

.admin-bar .dk-musicframe-shell {
  height: calc(100svh - 100px);
}

.dk-site-footer .dk-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dk-footer-links {
  display: flex;
  gap: 18px;
}

.dk-footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.dk-empty {
  padding: 28px;
  color: var(--dk-muted);
  background: #fff;
  border: 1px dashed #cdd4dc;
  border-radius: var(--dk-radius);
}

@media (max-width: 900px) {
  body.admin-bar .dk-site-header {
    top: 46px;
  }

  .dk-menu {
    display: none;
  }

  .dk-section-head,
  .dk-latest-grid,
  .dk-category-grid,
  .dk-main-layout,
  .dk-cta .dk-container {
    grid-template-columns: 1fr;
  }

  .dk-main-layout {
    margin-top: 32px;
    gap: 24px;
  }

  .dk-hero {
    min-height: 720px;
  }
}

@media (max-width: 560px) {
  .dk-header-action {
    display: none;
  }

  .dk-hero-inner {
    padding-bottom: 52px;
  }

  .dk-hero h1 {
    font-size: 42px;
  }

  .dk-hero p,
  .dk-entry {
    font-size: 16px;
  }
}
