/*
Theme Name: Klikit Downloader
Description: A fast, dark, mobile-friendly site for the YT Video Downloader plugin. Front page includes the downloader; About, FAQ, Privacy, Terms and Contact pages are created on activation.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: klikit
*/

/* ---------- Header ---------- */
.kd-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 11, 18, .78); border-bottom: 1px solid var(--wp--preset--color--border); }
.kd-logo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px;
  background: var(--wp--preset--gradient--brand); vertical-align: middle; }
.kd-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; }

/* ---------- Hero ---------- */
.kd-hero { position: relative; overflow: hidden; }
.kd-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .28), transparent 70%),
              radial-gradient(closest-side at 70% 40%, rgba(255, 61, 87, .22), transparent 70%); }
.kd-hero > * { position: relative; }
.kd-gradient-text { background: var(--wp--preset--gradient--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kd-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); }
.kd-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.kd-badges span { padding: 6px 12px; border-radius: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); }

/* ---------- Cards / features ---------- */
.kd-grid { display: grid; gap: 16px; margin-top: 32px; }
.kd-grid-4 { grid-template-columns: repeat(4, 1fr); }
.kd-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .kd-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .kd-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kd-grid-4 { grid-template-columns: 1fr; } }
.kd-card h3.wp-block-heading { font-size: 1.15rem; margin: 0 0 8px; }
.kd-card p:last-child { margin-bottom: 0; }
.kd-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px; padding: 24px !important; height: 100%; transition: border-color .2s, transform .2s; }
.kd-card:hover { border-color: rgba(255, 61, 87, .5); transform: translateY(-2px); }
.kd-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin: 0 0 12px !important;
  background: rgba(255, 61, 87, .12); }
.kd-step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--wp--preset--gradient--brand); color: #fff; font-weight: 800; margin: 0 0 10px !important; }
.kd-muted { color: var(--wp--preset--color--muted); }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.wp-block-details p { color: var(--wp--preset--color--muted); margin-top: 10px; }

/* ---------- Downloader plugin: dark skin ---------- */
.ytd-app {
  --ytd-card: #15151f; --ytd-text: #f4f4f8; --ytd-muted: #a0a0b4; --ytd-border: #262636;
  --ytd-field: #0f0f17; --ytd-chip: #1d1d2a; --ytd-accent: #ff3d57; --ytd-ok: #2fbf71; --ytd-err: #ff6b7d;
  text-align: left;
}
.kd-hero .ytd-app .ytd-card:first-child { box-shadow: 0 20px 60px rgba(124, 92, 255, .18); border-color: #33334a; }
.ytd-app .ytd-url { font-size: 16px; }
.ytd-app .ytd-fetch-err:empty { display: none; }
.ytd-app .ytd-card > * { margin-block-start: 0; }

/* ---------- Pages ---------- */
.kd-page-header { border-bottom: 1px solid var(--wp--preset--color--border); }
.entry-content a, .wp-block-post-content a { color: var(--wp--preset--color--accent); }

/* ---------- Footer ---------- */
.kd-footer { border-top: 1px solid var(--wp--preset--color--border); }
.kd-footer a { text-decoration: none; color: var(--wp--preset--color--muted); }
.kd-footer a:hover { color: var(--wp--preset--color--contrast); }
