/*
Theme Name: Scookiegeek 3D Blog
Theme URI: https://cookiegeek.blog/
Author: CookieGeek
Author URI: https://cookiegeek.blog/
Description: A fast, responsive WordPress blogging theme for Scookiegeek / CookieGeek with glossy 3D illustrations, category-forward navigation, useful links, and clean article templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scookiegeek-3d-blog
Tags: blog, custom-logo, featured-images, one-column, two-columns, right-sidebar, custom-menu, threaded-comments, translation-ready
*/

:root {
  --cg-ink: #15131d;
  --cg-muted: #615f6d;
  --cg-paper: #fffaf3;
  --cg-surface: #ffffff;
  --cg-surface-2: #f4f0ff;
  --cg-primary: #6f4cff;
  --cg-primary-dark: #5032c9;
  --cg-accent: #ffb02e;
  --cg-accent-2: #12b8a6;
  --cg-border: rgba(21, 19, 29, 0.12);
  --cg-shadow: 0 24px 70px rgba(43, 35, 84, 0.16);
  --cg-radius: 22px;
  --cg-content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cg-paper);
  color: var(--cg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--cg-primary-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--cg-primary);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--cg-ink);
  color: var(--cg-surface);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--cg-border);
  background: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(var(--cg-content), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.site-branding .custom-logo-link,
.site-branding__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cg-accent), #ffe2a5);
  box-shadow: 0 10px 24px rgba(255, 176, 46, 0.34);
  color: var(--cg-ink);
  font-size: 24px;
}

.site-branding .custom-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.site-description {
  margin: 2px 0 0;
  color: var(--cg-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cg-border);
  border-radius: 14px;
  background: var(--cg-surface);
  color: var(--cg-ink);
  cursor: pointer;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle__bar {
  position: relative;
}

.menu-toggle__bar::before {
  position: absolute;
  top: -7px;
}

.menu-toggle__bar::after {
  position: absolute;
  top: 7px;
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.primary-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--cg-ink);
  font-weight: 750;
  font-size: 0.92rem;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--cg-surface-2);
  color: var(--cg-primary-dark);
}

.site-main {
  min-height: 60vh;
}

.cg-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cg-border);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 176, 46, 0.22), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(18, 184, 166, 0.18), transparent 30%),
    linear-gradient(180deg, #fffaf3 0%, #fff4e8 100%);
}

.cg-hero__inner {
  width: min(var(--cg-content), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0 54px;
}

.cg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(111, 76, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--cg-primary-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cg-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.45rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.cg-hero__lead {
  margin: 20px 0 0;
  max-width: 620px;
  color: var(--cg-muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.cg-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cg-primary);
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(111, 76, 255, 0.26);
}

.cg-button:hover,
.cg-button:focus {
  background: var(--cg-primary-dark);
  color: #ffffff;
}

.cg-button--ghost {
  background: var(--cg-surface);
  color: var(--cg-ink);
  box-shadow: none;
  border: 1px solid var(--cg-border);
}

.cg-button--ghost:hover,
.cg-button--ghost:focus {
  background: var(--cg-surface-2);
  color: var(--cg-primary-dark);
}

.cg-hero__media {
  position: relative;
}

.cg-hero__image {
  display: block;
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--cg-shadow);
}

.cg-hero__badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(21, 19, 29, 0.16);
  backdrop-filter: blur(16px);
}

.cg-hero__badge strong {
  font-size: 1rem;
}

.cg-hero__badge span {
  color: var(--cg-muted);
  font-size: 0.82rem;
}

.cg-strip {
  border-bottom: 1px solid var(--cg-border);
  background: var(--cg-surface);
}

.cg-strip__inner {
  width: min(var(--cg-content), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cg-strip__label {
  color: var(--cg-muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cg-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--cg-border);
  border-radius: 999px;
  background: var(--cg-paper);
  color: var(--cg-ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.cg-section {
  width: min(var(--cg-content), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.cg-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.cg-section__title,
.page-title,
.entry-title,
.comments-title,
.comment-reply-title {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.cg-section__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-title {
  font-size: clamp(2rem, 5vw, 4rem);
}

.cg-layout {
  width: min(var(--cg-content), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.cg-layout--single {
  grid-template-columns: minmax(0, 800px) 320px;
  justify-content: center;
}

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

.post-card,
.widget,
.comments-area,
.comment-respond,
.no-results,
.not-found {
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius);
  background: var(--cg-surface);
  box-shadow: 0 16px 46px rgba(43, 35, 84, 0.08);
}

.post-card {
  overflow: hidden;
}

.post-card__thumbnail {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--cg-surface-2);
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 20px;
}

.entry-meta,
.entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--cg-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.post-card .entry-title {
  margin-top: 9px;
  font-size: 1.25rem;
}

.post-card .entry-title a {
  color: var(--cg-ink);
}

.post-card .entry-summary {
  margin-top: 10px;
  color: var(--cg-muted);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--cg-primary-dark);
  font-weight: 850;
}

.site-sidebar {
  display: grid;
  gap: 18px;
}

.widget {
  padding: 22px;
}

.widget-title {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.2;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.widget li a {
  color: var(--cg-ink);
  font-weight: 750;
}

.widget_search .search-form,
.search-form {
  display: flex;
  gap: 8px;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--cg-border);
  border-radius: 14px;
  background: var(--cg-paper);
  color: var(--cg-ink);
  padding: 11px 12px;
}

.search-submit,
.form-submit .submit {
  border: 0;
  border-radius: 14px;
  background: var(--cg-ink);
  color: #ffffff;
  padding: 11px 14px;
  font-weight: 850;
  cursor: pointer;
}

.entry-content {
  margin-top: 24px;
  font-size: 1.05rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8em;
  line-height: 1.15;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table {
  margin-bottom: 1.1em;
}

.entry-content blockquote {
  margin-left: 0;
  padding: 16px 20px;
  border-left: 5px solid var(--cg-accent);
  border-radius: 0 18px 18px 0;
  background: var(--cg-surface-2);
  color: var(--cg-ink);
  font-weight: 700;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--cg-border);
  padding: 10px;
}

.single-article,
.page-article {
  border: 1px solid var(--cg-border);
  border-radius: 28px;
  background: var(--cg-surface);
  box-shadow: 0 18px 54px rgba(43, 35, 84, 0.08);
  overflow: hidden;
}

.single-article__media img,
.page-article__media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-article__body,
.page-article__body {
  padding: clamp(22px, 5vw, 44px);
}

.single-article .entry-title,
.page-article .entry-title {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.post-navigation,
.posts-navigation {
  margin-top: 28px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.nav-links a {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid var(--cg-border);
  border-radius: 999px;
  background: var(--cg-surface);
  color: var(--cg-ink);
  font-weight: 850;
}

.comments-area,
.comment-respond {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 34px);
}

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

.comment-body {
  padding: 16px 0;
  border-bottom: 1px solid var(--cg-border);
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--cg-border);
  background: #17131f;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: #ffffff;
}

.site-footer__inner {
  width: min(var(--cg-content), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.site-footer__brand h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.55rem;
}

.site-footer__brand p {
  max-width: 460px;
  margin: 10px 0 0;
}

.site-footer__links h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer__links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer__bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.alignwide {
  max-width: min(100%, 1040px);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption {
  color: var(--cg-muted);
  font-size: 0.9rem;
}

.bypostauthor .comment-author::after {
  content: "Author";
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--cg-accent);
  color: var(--cg-ink);
  font-size: 0.72rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--cg-border);
    border-radius: 18px;
    background: var(--cg-surface);
    box-shadow: var(--cg-shadow);
  }

  .main-navigation.toggled .primary-menu {
    display: grid;
  }

  .primary-menu a {
    border-radius: 12px;
  }

  .cg-hero__inner,
  .cg-layout,
  .cg-layout--single,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-description {
    display: none;
  }

  .cg-hero__inner {
    padding-top: 44px;
    gap: 28px;
  }

  .cg-hero__badge {
    position: static;
    margin-top: 12px;
  }

  .cg-section__header,
  .nav-links {
    align-items: stretch;
    flex-direction: column;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .widget_search .search-form,
  .search-form {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cg-hero__image,
  .post-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .cg-hero__image:hover,
  .post-card:hover {
    transform: translateY(-4px);
  }
}
