/*
Theme Name: Skyline Forever
Theme URI: https://nimbusforge.dev/skyline-forever
Author: Nimbus Forge
Author URI: https://nimbusforge.dev
Description: A sleek dark, modern theme with neon gradient accents, a glassy sticky topbar, and a full-bleed gradient hero. Built for tech and SaaS-style sites that want a futuristic feel.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skyline-forever
Tags: dark, modern, full-width, custom-menu, custom-logo, featured-images, sticky-header, two-columns, right-sidebar
*/

:root {
  --sky-bg: #0c0e14;
  --sky-panel: #141824;
  --sky-text: #e8ecf4;
  --sky-muted: #9aa3b8;
  --sky-radius: 14px;
  --sky-grad: linear-gradient(135deg, #22d3ee, #a855f7);
  --sky-glow: 0 8px 30px rgba(34, 211, 238, 0.08), 0 2px 10px rgba(168, 85, 247, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sky-bg);
  color: var(--sky-text);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #22d3ee;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus {
  color: #a855f7;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--sky-text);
}

.sky-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sky-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--sky-panel);
  color: var(--sky-text);
  padding: 12px 18px;
  border-radius: 0 0 var(--sky-radius) 0;
}

.sky-skip:focus {
  left: 0;
}

/* ---------- Topbar ---------- */
.sky-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(20, 24, 36, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Keep the whole sticky topbar visible below the WP admin bar (logged-in view) so its
   top isn't hidden behind the fixed admin bar. */
body.admin-bar .sky-topbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .sky-topbar {
    top: 46px;
  }
}

.sky-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.sky-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sky-brand a {
  background: var(--sky-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sky-brand__tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sky-muted);
  -webkit-text-fill-color: var(--sky-muted);
  letter-spacing: 0;
}

.sky-brand .custom-logo {
  display: block;
  max-height: 46px;
  width: auto;
}

/* ---------- Navigation ---------- */
.sky-nav-toggle {
  display: none;
  background: var(--sky-panel);
  color: var(--sky-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.sky-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sky-nav li {
  position: relative;
}

.sky-nav a {
  display: block;
  color: var(--sky-text);
  padding: 8px 12px;
  border-radius: 10px;
  position: relative;
}

.sky-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--sky-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.sky-nav a:hover::after,
.sky-nav a:focus::after,
.sky-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.sky-nav ul ul {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  flex-direction: column;
  align-items: stretch;
  background: var(--sky-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--sky-glow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 950;
}

.sky-nav li:hover > ul,
.sky-nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sky-nav ul ul li {
  width: 100%;
}

.sky-nav ul ul a::after {
  display: none;
}

.sky-nav ul ul a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Hero ---------- */
.sky-hero {
  background: var(--sky-grad);
  color: #0a0c12;
  margin-bottom: 40px;
}

.sky-hero__inner {
  padding: 64px 24px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.sky-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  color: #0a0c12;
}

.sky-hero__title a {
  color: #0a0c12;
}

.sky-hero__sub {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1.1rem;
  color: #15131f;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.sky-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding-top: 8px;
  padding-bottom: 64px;
}

/* Full-width layout (no right sidebar) — single column. */
.sky-layout--full {
  grid-template-columns: 1fr;
}

.sky-main {
  min-width: 0;
}

/* ---------- Feed / Cards ---------- */
.sky-feed {
  display: grid;
  gap: 28px;
}

.sky-card {
  position: relative;
  background: var(--sky-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--sky-radius);
  padding: 26px 28px;
  box-shadow: var(--sky-glow);
  overflow: hidden;
}

.sky-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sky-grad);
}

.sky-card__thumb {
  display: block;
  margin: 0 -28px 20px;
}

.sky-card__thumb img {
  width: 100%;
  display: block;
}

.sky-card__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.sky-card__title a {
  color: var(--sky-text);
}

.sky-card__title a:hover {
  background: var(--sky-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sky-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--sky-muted);
}

.sky-meta a {
  color: var(--sky-muted);
}

.sky-meta a:hover {
  color: #22d3ee;
}

.sky-card__excerpt p:first-child {
  margin-top: 0;
}

.sky-more {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--sky-grad);
  color: #0a0c12 !important;
  font-weight: 700;
}

.sky-more:hover {
  opacity: 0.9;
}

/* ---------- Single / Page article ---------- */
.sky-article {
  position: relative;
  background: var(--sky-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--sky-radius);
  padding: 34px 36px;
  box-shadow: var(--sky-glow);
  overflow: hidden;
}

.sky-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sky-grad);
}

.sky-article__title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.sky-article__thumb {
  margin: 0 -36px 24px;
}

.sky-article__thumb img {
  width: 100%;
  display: block;
}

.sky-prose {
  color: var(--sky-text);
}

.sky-prose a {
  text-decoration: underline;
  text-decoration-color: rgba(168, 85, 247, 0.5);
  text-underline-offset: 3px;
}

.sky-prose img {
  border-radius: 10px;
}

.sky-prose blockquote {
  margin: 24px 0;
  padding: 12px 22px;
  border-left: 3px solid #a855f7;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 10px 10px 0;
  color: var(--sky-muted);
}

.sky-prose pre,
.sky-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sky-prose pre {
  background: #0a0c12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  overflow: auto;
}

.sky-pagelinks {
  margin-top: 24px;
  color: var(--sky-muted);
}

.sky-pagelinks a {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin: 0 3px;
}

/* ---------- Fossil / empty SEO content ---------- */
.sky-fossil {
  background: var(--sky-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--sky-radius);
  padding: 30px 34px;
  box-shadow: var(--sky-glow);
}

.sky-empty {
  background: var(--sky-panel);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--sky-radius);
  padding: 48px 34px;
  text-align: center;
  color: var(--sky-muted);
}

.sky-empty h2 {
  margin-top: 0;
}

/* ---------- Pager ---------- */
.sky-pager {
  margin-top: 36px;
}

.sky-pager .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sky-pager .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--sky-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sky-text);
}

.sky-pager .page-numbers.current,
.sky-pager .page-numbers:hover {
  background: var(--sky-grad);
  color: #0a0c12;
  border-color: transparent;
}

/* ---------- Rail / sidebar ---------- */
.sky-rail {
  min-width: 0;
}

.sky-rail__widget {
  background: rgba(20, 24, 36, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--sky-radius);
  padding: 22px 24px;
  margin-bottom: 26px;
  box-shadow: var(--sky-glow);
}

.sky-rail__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sky-rail__widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sky-rail__widget li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sky-rail__widget li:last-child {
  border-bottom: 0;
}

/* ---------- Search form ---------- */
.search-form,
.sky-searchform {
  display: flex;
  gap: 10px;
}

.search-form label,
.sky-searchform label {
  flex: 1;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  background: #0a0c12;
  color: var(--sky-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

button,
input[type="submit"],
.sky-btn {
  cursor: pointer;
  background: var(--sky-grad);
  color: #0a0c12;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
}

button:hover,
input[type="submit"]:hover {
  opacity: 0.9;
}

/* ---------- Comments ---------- */
.sky-comments {
  margin-top: 36px;
  background: var(--sky-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--sky-radius);
  padding: 30px 34px;
}

.sky-comments__title {
  margin-top: 0;
}

.sky-commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sky-commentlist .children {
  list-style: none;
  margin-left: 26px;
}

.sky-commentlist li {
  margin: 18px 0;
}

.sky-commentlist .comment-body {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
}

.sky-commentlist .comment-author {
  font-weight: 700;
}

.sky-commentlist .comment-meta {
  font-size: 0.8rem;
  color: var(--sky-muted);
}

/* ---------- Footer ---------- */
.sky-foot {
  background: var(--sky-panel);
  border-top: 3px solid transparent;
  border-image: var(--sky-grad) 1;
  margin-top: auto;
}

.sky-foot__widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 48px 24px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.sky-foot__widgets .sky-rail__title {
  font-size: 1rem;
}

.sky-foot__widgets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sky-foot__widgets li {
  padding: 5px 0;
}

.sky-foot__widgets a {
  color: var(--sky-muted);
}

.sky-foot__widgets a:hover {
  color: #22d3ee;
}

.sky-colophon {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  text-align: center;
  color: var(--sky-muted);
  font-size: 0.86rem;
}

.sky-colophon a {
  color: var(--sky-muted);
}

/* ---------- Page shell for sticky footer ---------- */
.sky-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .sky-layout {
    grid-template-columns: 1fr;
  }

  .sky-nav-toggle {
    display: inline-block;
  }

  .sky-nav {
    display: none;
    width: 100%;
    margin-top: 12px;
  }

  .sky-nav.is-open {
    display: block;
  }

  .sky-topbar__inner {
    flex-wrap: wrap;
  }

  .sky-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .sky-nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 14px;
  }
}
