/**
 * Grace Charis - Core Design System & Components
 * Supports Dual Light (Default) & Dark Luxury Themes
 */

/* ==========================================================================
   1. CSS Custom Properties / Tokens
   ========================================================================== */

/* LIGHT THEME (DEFAULT) */
:root,
[data-theme="light"] {
  --gc-bg: #F8F9FA;
  --gc-surface: #FFFFFF;
  --gc-surface-2: #F1F3F5;
  --gc-card: #FFFFFF;
  --gc-card-hover: #F8FAFC;
  --gc-text: #111827;
  --gc-text-body: #374151;
  --gc-muted: #4B5563;
  --gc-dimmed: #9CA3AF;
  --gc-border: rgba(0, 0, 0, 0.08);
  --gc-border-light: rgba(0, 0, 0, 0.04);
  --gc-border-hover: rgba(0, 0, 0, 0.18);
  
  --gc-telegram: #229ED9;
  --gc-telegram-hover: #1b8fc5;
  --gc-telegram-glow: rgba(34, 158, 217, 0.22);
  
  --gc-header-bg: rgba(255, 255, 255, 0.88);
  --gc-header-text: #111827;
  --gc-card-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  --gc-card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.08);

  --gc-badge-bg: rgba(0, 0, 0, 0.05);
  --gc-badge-border: rgba(0, 0, 0, 0.10);
  --gc-badge-text: #111827;

  --gc-footer-bg: #0F172A;
  --gc-footer-text: #E2E8F0;
  --gc-footer-muted: #94A3B8;
  --gc-footer-border: rgba(255, 255, 255, 0.08);

  --gc-radius-sm: 8px;
  --gc-radius-md: 14px;
  --gc-radius-lg: 20px;
  --gc-radius-full: 9999px;

  --gc-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gc-container-max: 1280px;
  --gc-header-h: 76px;

  --gc-transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --gc-transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --gc-transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK LUXURY THEME */
[data-theme="dark"] {
  --gc-bg: #080808;
  --gc-surface: #111111;
  --gc-surface-2: #141414;
  --gc-card: #161616;
  --gc-card-hover: #1D1D1D;
  --gc-text: #FFFFFF;
  --gc-text-body: #E5E7EB;
  --gc-muted: #A5A5A5;
  --gc-dimmed: #737373;
  --gc-border: rgba(255, 255, 255, 0.10);
  --gc-border-light: rgba(255, 255, 255, 0.05);
  --gc-border-hover: rgba(255, 255, 255, 0.22);
  
  --gc-telegram: #229ED9;
  --gc-telegram-hover: #1c8ac0;
  --gc-telegram-glow: rgba(34, 158, 217, 0.28);
  
  --gc-header-bg: rgba(8, 8, 8, 0.85);
  --gc-header-text: #FFFFFF;
  --gc-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --gc-card-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.6);

  --gc-badge-bg: rgba(255, 255, 255, 0.08);
  --gc-badge-border: rgba(255, 255, 255, 0.15);
  --gc-badge-text: #FFFFFF;

  --gc-footer-bg: #050505;
  --gc-footer-text: #FFFFFF;
  --gc-footer-muted: #A5A5A5;
  --gc-footer-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--gc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gc-text);
  background-color: var(--gc-bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gc-header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--gc-transition-base), color var(--gc-transition-base);
}

[id] {
  scroll-margin-top: calc(var(--gc-header-h) + 20px);
}

body.admin-bar [id] {
  scroll-margin-top: calc(var(--gc-header-h) + 52px);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--gc-bg);
  color: var(--gc-text);
  overflow-x: hidden;
  transition: background-color var(--gc-transition-base), color var(--gc-transition-base);
}

img, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--gc-transition-fast);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--gc-telegram);
  outline-offset: 3px;
}

/* ==========================================================================
   3. Container & Layout Helpers
   ========================================================================== */
.gc-container {
  width: min(100% - 64px, var(--gc-container-max));
  margin-inline: auto;
  padding-top: var(--gc-container-pt, clamp(24px, 3vw, 40px));
}

/* Header container must occupy full header height so brand, nav, and actions are vertically centered */
.gc-site-header .gc-container {
  height: 100%;
  padding-top: 0;
}

/* Reset padding-top for other elements that have their own fixed height, flex centering, or sections */
.gc-hero-section .gc-container,
.gc-footer .gc-container,
.gc-mobile-drawer .gc-container,
.gc-section .gc-container {
  padding-top: 0;
}

/* On inner pages, ensure container comfortably clears the fixed header */
body:not(.home) .gc-main-wrapper > .gc-container {
  padding-top: calc(var(--gc-header-h) + clamp(24px, 3.5vw, 44px));
}

.gc-section {
  padding-block: clamp(64px, 8vw, 110px);
  position: relative;
}

.gc-section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-section-header.has-action {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gc-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gc-telegram);
}

.gc-section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gc-text);
}

.gc-section-desc {
  font-size: 16px;
  color: var(--gc-muted);
  max-width: 600px;
}

/* Badges */
.gc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--gc-radius-full);
  background: var(--gc-badge-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gc-badge-border);
  color: var(--gc-badge-text);
}

.gc-cat-badge {
  transition: background var(--gc-transition-fast), border-color var(--gc-transition-fast), color var(--gc-transition-fast);
}

.gc-cat-badge:hover {
  background: var(--gc-telegram);
  border-color: var(--gc-telegram);
  color: #FFFFFF;
}

/* ==========================================================================
   4. Buttons & CTAs
   ========================================================================== */
.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--gc-radius-full);
  transition: transform var(--gc-transition-fast), box-shadow var(--gc-transition-fast), background var(--gc-transition-fast), border-color var(--gc-transition-fast);
  white-space: nowrap;
  user-select: none;
}

.gc-btn svg {
  transition: transform var(--gc-transition-fast);
}

.gc-btn:hover svg.gc-icon-arrow-right {
  transform: translateX(4px);
}

/* Primary Telegram CTA button */
.gc-btn-telegram {
  background-color: var(--gc-telegram);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px var(--gc-telegram-glow);
}

.gc-btn-telegram:hover {
  background-color: var(--gc-telegram-hover);
  box-shadow: 0 6px 26px rgba(34, 158, 217, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.gc-btn-telegram:active {
  transform: translateY(0);
}

/* Secondary outline button */
.gc-btn-secondary {
  background-color: var(--gc-surface);
  color: var(--gc-text);
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-card-shadow);
}

.gc-btn-secondary:hover {
  background-color: var(--gc-card-hover);
  border-color: var(--gc-border-hover);
  transform: translateY(-2px);
  color: var(--gc-text);
}

/* Small button variant */
.gc-btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  gap: 8px;
}

/* Large button variant */
.gc-btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* Ghost / text button */
.gc-btn-ghost {
  color: var(--gc-muted);
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

.gc-btn-ghost:hover {
  color: var(--gc-text);
}

.gc-btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   5. Header & Navigation (Light & Dark Aware)
   ========================================================================== */
.gc-site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--gc-header-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--gc-transition-base), backdrop-filter var(--gc-transition-base), border-color var(--gc-transition-base);
  border-bottom: 1px solid transparent;
}

/* Default state for pages without hero (single, archive, page, search) */
body:not(.home) .gc-site-header {
  background: var(--gc-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--gc-border);
}

/* Scrolled state on all pages */
.gc-site-header.is-scrolled {
  background: var(--gc-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--gc-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   WordPress Admin Bar Spacing Integration
   ========================================================================== */
body.admin-bar .gc-site-header {
  top: 32px;
}

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

/* Compensate page padding for fixed header + admin bar */
body.admin-bar .gc-hero-section {
  padding-top: calc(var(--gc-header-h) + 72px);
}

body.admin-bar:not(.home) .gc-main-wrapper > .gc-container {
  padding-top: calc(var(--gc-header-h) + 32px + clamp(24px, 3.5vw, 44px));
}

body.admin-bar:not(.home) .gc-section,
body.admin-bar:not(.home) .gc-single-article,
body.admin-bar:not(.home) .gc-state-page {
  padding-top: calc(var(--gc-header-h) + 72px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .gc-hero-section {
    padding-top: calc(var(--gc-header-h) + 86px);
  }
  body.admin-bar:not(.home) .gc-main-wrapper > .gc-container {
    padding-top: calc(var(--gc-header-h) + 46px + clamp(20px, 3vw, 36px));
  }
  body.admin-bar:not(.home) .gc-section,
  body.admin-bar:not(.home) .gc-single-article,
  body.admin-bar:not(.home) .gc-state-page {
    padding-top: calc(var(--gc-header-h) + 86px);
  }
}

.gc-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gc-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Logo */
.gc-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.gc-logo-wordmark,
.gc-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.gc-logo-main {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 4px;
  color: var(--gc-text);
  text-transform: uppercase;
  transition: color var(--gc-transition-fast), transform var(--gc-transition-fast);
}

.gc-logo-link:hover .gc-logo-main {
  color: var(--gc-telegram);
}

/* Over transparent hero on homepage */
body.home .gc-site-header:not(.is-scrolled) .gc-logo-main {
  color: #FFFFFF;
}

.gc-logo-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4.5px;
  color: var(--gc-telegram);
  margin-top: 3px;
  text-transform: uppercase;
}

.gc-logo-custom-text .gc-logo-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gc-text);
}

body.home .gc-site-header:not(.is-scrolled) .gc-logo-custom-text .gc-logo-title {
  color: #FFFFFF;
}

.gc-custom-logo-img,
.gc-custom-logo {
  max-height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: opacity var(--gc-transition-fast), transform var(--gc-transition-fast);
}

.gc-logo-link:hover .gc-custom-logo-img {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Desktop Navigation */
.gc-nav-desktop {
  display: flex;
  align-items: center;
}

/* Mobile drawer is strictly hidden on desktop */
.gc-mobile-drawer,
.gc-nav-mobile-cta {
  display: none !important;
}

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

.gc-nav-list li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.gc-nav-list li a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--gc-muted);
  position: relative;
  padding-block: 6px;
  line-height: 1;
  transition: color var(--gc-transition-fast);
}

/* Unscrolled over hero on homepage */
body.home .gc-site-header:not(.is-scrolled) .gc-nav-list li a {
  color: rgba(255, 255, 255, 0.85);
}

body.home .gc-site-header:not(.is-scrolled) .gc-nav-list li a:hover,
body.home .gc-site-header:not(.is-scrolled) .gc-nav-list li.current-menu-item > a {
  color: #FFFFFF;
}

.gc-nav-list li a:hover,
.gc-nav-list li.current-menu-item > a {
  color: var(--gc-text);
}

.gc-nav-list li.current-menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gc-telegram);
  border-radius: 2px;
}

/* Theme Toggle Button (Sun/Moon) */
.gc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  color: var(--gc-text);
  box-shadow: var(--gc-card-shadow);
  transition: transform var(--gc-transition-fast), background var(--gc-transition-fast), border-color var(--gc-transition-fast);
  padding: 0;
  flex-shrink: 0;
}

body.home .gc-site-header:not(.is-scrolled) .gc-theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.gc-theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--gc-border-hover);
}

/* Icon visibility & centering */
.gc-theme-toggle .gc-icon-sun-wrap,
.gc-theme-toggle .gc-icon-moon-wrap {
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gc-theme-toggle svg {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}

[data-theme="light"] .gc-icon-sun-wrap { display: none !important; }
[data-theme="light"] .gc-icon-moon-wrap { display: inline-flex !important; }
[data-theme="dark"] .gc-icon-sun-wrap { display: inline-flex !important; }
[data-theme="dark"] .gc-icon-moon-wrap { display: none !important; }

/* Mobile drawer toggle */
.gc-theme-toggle-mobile {
  width: 100%;
  height: 46px;
  border-radius: var(--gc-radius-md);
  justify-content: flex-start;
  padding-inline: 16px;
  gap: 12px;
}

.gc-theme-toggle-mobile .gc-toggle-label {
  font-size: 14px;
  font-weight: 600;
}

/* Header CTA action */
.gc-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gc-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gc-text);
  padding: 8px;
  border-radius: var(--gc-radius-sm);
  line-height: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color var(--gc-transition-fast), background var(--gc-transition-fast);
}

.gc-mobile-toggle:hover {
  background: var(--gc-surface-2);
}

body.home .gc-site-header:not(.is-scrolled) .gc-mobile-toggle {
  color: #FFFFFF;
}

body.home .gc-site-header:not(.is-scrolled) .gc-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Dedicated Mobile Drawer Component */
.gc-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--gc-surface);
  color: var(--gc-text);
  border-left: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--gc-transition-smooth);
  z-index: 1002;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

body.admin-bar .gc-mobile-drawer {
  top: 32px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .gc-mobile-drawer {
    top: 46px;
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
  }
}

.gc-mobile-drawer.is-open {
  right: 0;
}

.gc-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gc-border-light);
  flex-shrink: 0;
}

.gc-mobile-drawer-close {
  background: none;
  border: none;
  color: var(--gc-text);
  padding: 8px;
  border-radius: var(--gc-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: color var(--gc-transition-fast), background var(--gc-transition-fast);
}

.gc-mobile-drawer-close:hover {
  background: var(--gc-surface-2);
  color: var(--gc-telegram);
}

.gc-mobile-drawer-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gc-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gc-mobile-nav-list li {
  width: 100%;
  list-style: none;
}

.gc-mobile-nav-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gc-text);
  padding-block: 8px;
  border-bottom: 1px solid var(--gc-border-light);
  transition: color var(--gc-transition-fast), transform var(--gc-transition-fast);
}

.gc-mobile-nav-list li a:hover {
  color: var(--gc-telegram);
  transform: translateX(4px);
}

.gc-mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  flex-shrink: 0;
}

.gc-mobile-drawer-tg-btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

/* ==========================================================================
   6. Hero Section (Cinematic)
   ========================================================================== */
.gc-hero-section {
  position: relative;
  min-height: clamp(620px, 85vh, 850px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 8vw, 100px);
  padding-top: calc(var(--gc-header-h) + 40px);
  overflow: hidden;
}

.gc-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Cinematic overlay ensures hero copy always has punch */
.gc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.45) 0%,
    rgba(10, 10, 10, 0.25) 40%,
    rgba(10, 10, 10, 0.75) 75%,
    rgba(10, 10, 10, 0.98) 100%
  );
  z-index: 2;
}

.gc-hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.gc-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gc-telegram);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.25);
  border-radius: var(--gc-radius-full);
}

.gc-hero-heading {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.gc-hero-subheading {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 540px;
}

.gc-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gc-hero-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   7. Telegram Community Cards Section
   ========================================================================== */
.gc-telegram-cards-section {
  position: relative;
  z-index: 5;
  margin-top: -30px;
  padding-bottom: clamp(40px, 6vw, 70px);
}

.gc-tg-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gc-tg-card {
  position: relative;
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--gc-card-shadow);
  transition: transform var(--gc-transition-base), border-color var(--gc-transition-base), box-shadow var(--gc-transition-base), background var(--gc-transition-base);
  overflow: hidden;
}

.gc-tg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gc-telegram), transparent);
  opacity: 0.7;
  transition: opacity var(--gc-transition-fast);
}

.gc-tg-card:hover {
  transform: translateY(-4px);
  background: var(--gc-card-hover);
  border-color: var(--gc-border-hover);
  box-shadow: var(--gc-card-shadow-hover);
}

.gc-tg-card:hover::before {
  opacity: 1;
}

.gc-tg-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.gc-tg-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gc-telegram);
  flex-shrink: 0;
}

.gc-tg-card-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gc-telegram);
  margin-bottom: 6px;
  display: block;
}

.gc-tg-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--gc-text);
}

.gc-tg-card-desc {
  font-size: 14px;
  color: var(--gc-muted);
  line-height: 1.5;
}

.gc-tg-card-action {
  align-self: flex-start;
}

/* ==========================================================================
   8. Content Grid & Post Cards
   ========================================================================== */
.gc-content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gc-post-card {
  display: flex;
  flex-direction: column;
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-md);
  box-shadow: var(--gc-card-shadow);
  overflow: hidden;
  transition: transform var(--gc-transition-base), border-color var(--gc-transition-base), box-shadow var(--gc-transition-base);
  height: 100%;
}

.gc-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--gc-border-hover);
  box-shadow: var(--gc-card-shadow-hover);
}

.gc-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gc-surface-2);
}

.gc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gc-post-card:hover .gc-card-img {
  transform: scale(1.03);
}

.gc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0.7;
  transition: opacity var(--gc-transition-fast);
}

.gc-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.gc-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 12px;
}

.gc-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--gc-transition-fast);
}

.gc-post-card:hover .gc-card-title {
  color: var(--gc-telegram);
}

.gc-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gc-dimmed);
  line-height: 1;
  flex-wrap: wrap;
}

.gc-card-meta .gc-card-meta-item,
.gc-card-meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  white-space: nowrap;
}

.gc-card-meta svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--gc-telegram);
}

.gc-card-meta .gc-meta-sep {
  color: var(--gc-dimmed);
  opacity: 0.5;
  font-size: 11px;
  line-height: 1;
}

/* ==========================================================================
   9. In-Feed Telegram CTA Banner (After 4 posts)
   ========================================================================== */
.gc-feed-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(34, 158, 217, 0.3);
  border-radius: var(--gc-radius-lg);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  margin-block: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
}

.gc-feed-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.gc-feed-banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.gc-feed-banner-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gc-telegram);
  margin-bottom: 8px;
  display: block;
}

.gc-feed-banner-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.gc-feed-banner-desc {
  font-size: 15px;
  color: #CBD5E1;
}

.gc-feed-banner-action {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ==========================================================================
   10. Homepage About Section
   ========================================================================== */
.gc-about-section {
  background: var(--gc-surface);
  border-top: 1px solid var(--gc-border);
  border-bottom: 1px solid var(--gc-border);
}

.gc-about-inner {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gc-about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gc-telegram);
}

.gc-about-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gc-text);
}

.gc-about-text {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--gc-muted);
  line-height: 1.7;
}

/* ==========================================================================
   11. Pre-Footer Telegram Conversion Section ("Stay Connected")
   ========================================================================== */
.gc-footer-telegram-section {
  padding-block: clamp(80px, 10vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gc-footer-tg-card {
  background: var(--gc-card);
  border: 1px solid rgba(34, 158, 217, 0.25);
  border-radius: var(--gc-radius-lg);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px);
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--gc-card-shadow-hover);
}

.gc-footer-tg-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gc-telegram);
  box-shadow: 0 0 30px var(--gc-telegram-glow);
}

.gc-footer-tg-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gc-text);
}

.gc-footer-tg-desc {
  font-size: 16px;
  color: var(--gc-muted);
  max-width: 520px;
  line-height: 1.6;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.gc-site-footer {
  background: var(--gc-footer-bg);
  color: var(--gc-footer-text);
  border-top: 1px solid var(--gc-footer-border);
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: 40px;
}

.gc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 70px);
}

.gc-footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gc-site-footer .gc-logo-main {
  color: #FFFFFF !important;
}

.gc-footer-about {
  font-size: 14px;
  color: var(--gc-footer-muted);
  line-height: 1.6;
  max-width: 320px;
}

.gc-footer-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
}

.gc-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-footer-nav a {
  font-size: 14px;
  color: var(--gc-footer-muted);
  transition: color var(--gc-transition-fast);
}

.gc-footer-nav a:hover {
  color: #FFFFFF;
}

.gc-social-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gc-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gc-footer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gc-footer-muted);
  transition: all var(--gc-transition-fast);
}

.gc-social-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.gc-footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gc-footer-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--gc-footer-muted);
}

.gc-footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.gc-footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gc-footer-border);
  border-radius: var(--gc-radius-sm);
  padding: 14px 18px;
  font-size: 12px;
  color: var(--gc-footer-muted);
  line-height: 1.6;
}

.gc-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gc-footer-legal-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   13. Single Post Layout
   ========================================================================== */
.gc-single-article {
  padding-top: 0;
}

.gc-single-header {
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gc-dimmed);
  flex-wrap: wrap;
}

.gc-breadcrumb-link:hover {
  color: var(--gc-text);
}

.gc-breadcrumb-sep {
  opacity: 0.5;
}

.gc-breadcrumb-current {
  color: var(--gc-muted);
}

.gc-single-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gc-text);
}

.gc-single-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--gc-muted);
  flex-wrap: wrap;
  line-height: 1;
}

.gc-single-meta .gc-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  white-space: nowrap;
}

.gc-single-meta .gc-meta-item svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--gc-telegram);
}

.gc-single-meta .gc-meta-sep {
  display: inline-block;
  color: var(--gc-dimmed);
  font-size: 12px;
  line-height: 1;
  opacity: 0.6;
}

.gc-single-featured {
  max-width: 1000px;
  margin-inline: auto;
  margin-bottom: 48px;
  border-radius: var(--gc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-card-shadow-hover);
}

.gc-single-featured img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.gc-single-content {
  max-width: 800px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--gc-text-body);
}

.gc-single-content p {
  margin-bottom: 24px;
}

.gc-single-content h2,
.gc-single-content h3,
.gc-single-content h4 {
  color: var(--gc-text);
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.gc-single-content h2 { font-size: clamp(26px, 3.5vw, 34px); }
.gc-single-content h3 { font-size: clamp(22px, 3vw, 28px); }

.gc-single-content ul,
.gc-single-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.gc-single-content ul { list-style: disc; }
.gc-single-content ol { list-style: decimal; }

.gc-single-content li {
  margin-bottom: 8px;
}

.gc-single-content blockquote {
  border-left: 3px solid var(--gc-telegram);
  padding-left: 20px;
  margin-block: 32px;
  font-style: italic;
  color: var(--gc-muted);
}

/* Social Share Bar */
.gc-share-section {
  max-width: 800px;
  margin-inline: auto;
  padding-block: 32px;
  border-top: 1px solid var(--gc-border);
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.gc-share-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gc-muted);
}

.gc-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--gc-radius-full);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  min-height: 38px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  color: var(--gc-text);
  box-shadow: var(--gc-card-shadow);
  transition: all var(--gc-transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.gc-share-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--gc-transition-fast);
}

.gc-share-btn:hover {
  background: var(--gc-card-hover);
  border-color: var(--gc-border-hover);
  transform: translateY(-2px);
  color: var(--gc-text);
}

.gc-share-btn:hover svg {
  transform: scale(1.1);
}

.gc-share-btn-tg:hover {
  background: rgba(34, 158, 217, 0.12);
  border-color: rgba(34, 158, 217, 0.45);
  color: var(--gc-telegram);
}

.gc-share-btn-x:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--gc-text);
}

[data-theme="dark"] .gc-share-btn-x:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.gc-share-btn-fb:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: rgba(24, 119, 242, 0.45);
  color: #1877F2;
}

.gc-share-btn-reddit:hover {
  background: rgba(255, 69, 0, 0.1);
  border-color: rgba(255, 69, 0, 0.45);
  color: #FF4500;
}

.gc-share-btn-copy.is-copied {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10B981;
}

/* Single Inline Telegram Card */
.gc-single-tg-banner {
  max-width: 800px;
  margin-inline: auto;
  margin-block: 48px;
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-lg);
  box-shadow: var(--gc-card-shadow);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gc-single-tg-banner-info {
  flex: 1;
}

.gc-single-tg-banner-title {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gc-text);
  line-height: 1.3;
}

.gc-single-tg-banner-desc {
  font-size: 14px;
  color: var(--gc-muted);
  line-height: 1.5;
}

.gc-single-tg-banner-action {
  flex-shrink: 0;
}

/* Related Posts */
.gc-related-section {
  padding-block: 60px;
  border-top: 1px solid var(--gc-border);
}

/* ==========================================================================
   14. Pagination
   ========================================================================== */
.gc-pagination {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gc-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 14px;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  color: var(--gc-muted);
  box-shadow: var(--gc-card-shadow);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--gc-transition-fast);
}

.gc-pagination .page-numbers:hover {
  background: var(--gc-card-hover);
  border-color: var(--gc-border-hover);
  color: var(--gc-text);
}

.gc-pagination .page-numbers.current {
  background: var(--gc-telegram);
  border-color: var(--gc-telegram);
  color: #FFFFFF;
}

/* ==========================================================================
   15. Comments & Forms
   ========================================================================== */
.gc-comments-area {
  max-width: 800px;
  margin-inline: auto;
  padding-block: 48px;
}

.gc-comments-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--gc-text);
}

.gc-comment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  list-style: none;
  padding: 0;
}

.gc-comment-item {
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-md);
  box-shadow: var(--gc-card-shadow);
  padding: 24px;
  list-style: none;
}

.gc-comment-item .children {
  margin-top: 20px;
  margin-left: clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.gc-comment-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.gc-avatar-img {
  border-radius: 50%;
  border: 1px solid var(--gc-border);
}

.gc-comment-author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gc-text);
}

.gc-comment-date {
  font-size: 12px;
  color: var(--gc-dimmed);
}

.gc-comment-content {
  font-size: 15px;
  color: var(--gc-text-body);
  line-height: 1.6;
}

.gc-comment-reply a {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-telegram);
}

/* Forms */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-respond {
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-md);
  box-shadow: var(--gc-card-shadow);
  padding: 32px;
}

.comment-reply-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gc-text);
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gc-muted);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.gc-search-input {
  width: 100%;
  background: var(--gc-surface-2);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  padding: 12px 16px;
  color: var(--gc-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--gc-transition-fast), background var(--gc-transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus,
.gc-search-input:focus {
  border-color: var(--gc-telegram);
  background: var(--gc-card);
  outline: none;
}

.comment-form-cookies-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-block: 4px 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gc-telegram);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.comment-form-cookies-consent label {
  display: inline !important;
  font-size: 13px;
  color: var(--gc-muted);
  cursor: pointer;
  line-height: 1.4;
  margin-bottom: 0 !important;
}

.logged-in-as {
  font-size: 14px;
  color: var(--gc-muted);
  margin-bottom: 10px;
}

.logged-in-as a {
  color: var(--gc-telegram);
  font-weight: 500;
}

.logged-in-as a:hover {
  text-decoration: underline;
}

#cancel-comment-reply-link {
  font-size: 13px;
  color: #EF4444;
  margin-left: 12px;
  font-weight: 500;
}

#cancel-comment-reply-link:hover {
  text-decoration: underline;
}

.form-submit {
  margin: 0;
}

.form-submit input[type="submit"],
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 30px;
  border: none;
  border-radius: var(--gc-radius-full);
  background: var(--gc-telegram);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--gc-telegram-glow);
  transition: all var(--gc-transition-fast);
}

.form-submit input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
  background: var(--gc-telegram-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(34, 158, 217, 0.45);
}

/* ==========================================================================
   16. 404 & Empty State
   ========================================================================== */
.gc-state-page {
  padding-top: calc(var(--gc-header-h) + 60px);
  padding-bottom: 100px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.gc-state-inner {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gc-state-code {
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 900;
  line-height: 1;
  color: var(--gc-border-hover);
  letter-spacing: 4px;
}

.gc-state-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gc-text);
}

.gc-state-desc {
  font-size: 16px;
  color: var(--gc-muted);
}

.gc-state-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

/* Search Form */
.gc-search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

.gc-search-form .gc-search-input {
  flex: 1;
  height: 48px;
  background: var(--gc-surface-2);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  padding: 0 18px;
  color: var(--gc-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--gc-transition-fast), background var(--gc-transition-fast);
}

.gc-search-form .gc-search-input:focus {
  border-color: var(--gc-telegram);
  background: var(--gc-card);
  outline: none;
}

.gc-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  background: var(--gc-telegram);
  color: #FFFFFF;
  padding: 0 24px;
  border: none;
  border-radius: var(--gc-radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--gc-telegram-glow);
  transition: all var(--gc-transition-fast);
}

.gc-search-btn:hover {
  background: var(--gc-telegram-hover);
  transform: translateY(-1px);
}

.gc-search-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Toast notification */
.gc-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1F2937;
  border: 1px solid var(--gc-border-hover);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--gc-radius-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.gc-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   17. Age Notice Modal
   ========================================================================== */
.gc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--gc-transition-base), visibility var(--gc-transition-base);
}

.gc-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.gc-modal-box {
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-lg);
  padding: clamp(32px, 5vw, 48px);
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.gc-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gc-telegram);
}

.gc-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gc-text);
}

.gc-modal-text {
  font-size: 15px;
  color: var(--gc-muted);
  line-height: 1.6;
}

.gc-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
}

.gc-modal-actions .gc-btn {
  flex: 1;
}

/* ==========================================================================
   18. Micro-Animations System
   ========================================================================== */
/* Scroll Reveal */
.gc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.gc-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card reveals */
.gc-content-grid .gc-post-card:nth-child(1) { transition-delay: 0.04s; }
.gc-content-grid .gc-post-card:nth-child(2) { transition-delay: 0.08s; }
.gc-content-grid .gc-post-card:nth-child(3) { transition-delay: 0.12s; }
.gc-content-grid .gc-post-card:nth-child(4) { transition-delay: 0.16s; }
.gc-content-grid .gc-post-card:nth-child(5) { transition-delay: 0.20s; }
.gc-content-grid .gc-post-card:nth-child(6) { transition-delay: 0.24s; }
.gc-content-grid .gc-post-card:nth-child(7) { transition-delay: 0.28s; }
.gc-content-grid .gc-post-card:nth-child(8) { transition-delay: 0.32s; }

/* Theme Toggle Button Spin */
.gc-theme-toggle.is-animating {
  animation: gcToggleSpin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gcToggleSpin {
  0% { transform: scale(0.8) rotate(0deg); }
  50% { transform: scale(1.18) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Button Tactile Click Interaction */
.gc-btn {
  position: relative;
  overflow: hidden;
}

.gc-btn:active {
  transform: scale(0.96) !important;
}

/* Post Card Micro-Interactions */
.gc-post-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.gc-post-card:hover {
  transform: translateY(-5px);
}

.gc-post-card .gc-card-img {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gc-post-card:hover .gc-card-img {
  transform: scale(1.035);
}

/* Badge Micro-Transition */
.gc-badge {
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.gc-badge:hover {
  transform: translateY(-1px);
}

/* Social Buttons Tactile Interaction */
.gc-social-btn {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

.gc-social-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

/* ==========================================================================
   19. Reduced Motion Handling
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
