/* ==========================================================================
   INDEX-BLOG SHARED STYLESHEET (index-blog.css)
   Requires: style.css (Global tokens & base styling)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO & WORKBENCH SECTION (index.html)
   -------------------------------------------------------------------------- */
.hero-workbench-section {
  min-height: calc(100vh - 65px);
  background-color: var(--surface-primary);
  background-image: linear-gradient(to right, rgba(56, 56, 56, 0.08) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(56, 56, 56, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: none;
  padding: 3.5rem 0 0 0;
}

.hero-headline-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-accent-tag {
  background: var(--signal-yellow);
  border: 2px solid var(--action-text);
  box-shadow: -3px 3px 0px 0px var(--action-text);
  padding: 0.15rem 0.5rem;
  display: inline-block;
}

.hero-lead-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444444;
  font-weight: 500;
  max-width: 580px;
}

.hero-stat-card {
  background: #ffffff;
  border: 2px solid var(--action-text);
  box-shadow: -3px 3px 0px 0px var(--action-text);
  padding: 0.75rem 1rem;
  min-width: 140px;
}

.hero-stat-number {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--action-text);
}

.hero-stat-desc {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-workbench-console {
  background: #141414;
  border: 3px solid var(--action-text);
  border-radius: var(--radius-sharp);
  box-shadow: -8px 8px 0px 0px var(--action-text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.console-topbar {
  background: #252525;
  border-bottom: 2px solid var(--action-text);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-body {
  padding: 1.25rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  min-height: 290px;
  color: #e5e5e5;
  line-height: 1.7;
}

.console-tab {
  background: var(--signal-yellow);
  border: 1.5px solid var(--action-text);
  color: #000000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  text-transform: uppercase;
}

.code-comment { color: #888888; }
.code-keyword { color: var(--orange-accent); font-weight: 700; }
.code-string  { color: var(--sky-blue); }
.code-success { color: #27c93f; }
.code-output  { color: var(--signal-yellow); }

.console-action-bar {
  background: #1e1e1e;
  border-top: 1.5px solid #333333;
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
}

.console-chip-btn {
  background: #2b2b2b;
  border: 1px solid #4a4a4a;
  color: #cccccc;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.console-chip-btn:hover {
  background: var(--signal-yellow);
  color: #000000;
  border-color: #000000;
}

/* Hero Bottom Ribbons */
.hero-bottom-tape {
  margin-top: auto;
  background: var(--signal-yellow);
  border-top: 3px solid var(--action-text);
  border-bottom: 3px solid var(--action-text);
  padding: 0.55rem 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  user-select: none;
}

.hero-ticker-track {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: tickerScroll 24s linear infinite;
}

/* --------------------------------------------------------------------------
   2. BLOG LISTING & CAROUSEL (blog.html)
   -------------------------------------------------------------------------- */
.blog-header-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.blog-header-intro {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}

.ticker-strip-wrapper {
  background-color: var(--signal-yellow);
  border-top: 2px solid var(--action-text);
  border-bottom: 2px solid var(--action-text);
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  padding: 0.5rem 0;
  margin-top: 1.25rem;
}

.ticker-strip-content {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: tickerScroll 25s linear infinite;
}

.ticker-item {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--action-text);
  text-transform: uppercase;
}

.ticker-separator {
  color: var(--action-text);
  opacity: 0.5;
}

.filter-panel {
  background-color: #e8e3dd;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sharp);
  padding: 1.25rem;
}

.clear-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
  background: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.clear-btn:hover {
  color: var(--action-text);
  text-decoration: underline;
}

.search-input-group {
  position: relative;
}

.search-input-group .input-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid-gray);
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}

.search-input-group .form-control-neo {
  padding-left: 2.3rem;
  background: #ffffff;
  border: 1.5px solid var(--action-text);
}

.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: #ffffff;
  border: 1.5px solid var(--action-text);
  border-top: none;
  border-radius: 0 0 var(--radius-sharp) var(--radius-sharp);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  max-height: 250px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--action-text);
  cursor: pointer;
  line-height: 1.2;
}

.suggestion-item:hover {
  background-color: #f1f5f9;
}

.suggestion-header {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: #f1f5f9;
  color: var(--mid-gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-match {
  color: var(--orange-accent);
  font-weight: 700;
  background-color: rgba(255, 222, 0, 0.35);
}

.select-neo {
  border: 1.5px solid var(--action-text);
  background-color: #ffffff;
  border-radius: var(--radius-sharp);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--action-text);
  width: 100%;
}

.featured-carousel-wrapper {
  position: relative;
}

.featured-post-card {
  background: #ffffff;
  border: 2px solid var(--action-text);
  border-radius: var(--radius-sharp);
  overflow: hidden;
}

.featured-post-banner {
  background: var(--sky-blue);
  border-right: 2px solid var(--action-text);
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.banner-badge-strip {
  background: var(--signal-yellow);
  border-top: 2px solid var(--action-text);
  margin: -1.5rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 2px solid var(--action-text);
  background: var(--signal-yellow);
  box-shadow: -3px 3px 0px 0px var(--action-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  transform: translateY(-50%) translate(-2px, -2px);
  box-shadow: -5px 5px 0px 0px var(--action-text);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) translate(0, 0);
  box-shadow: -1px 1px 0px 0px var(--action-text);
}

.carousel-nav-btn.prev-btn { left: -15px; }
.carousel-nav-btn.next-btn { right: -15px; }

/* --------------------------------------------------------------------------
   3. SHARED POST CARDS & HORIZONTAL SCROLL CONTAINERS
   -------------------------------------------------------------------------- */
.yellow-section-bg {
  background-color: var(--signal-yellow);
  border-top: 3px solid var(--action-text);
  border-bottom: 3px solid var(--action-text);
  padding: var(--space-section) 0;
}

.scroll-container-wrapper {
  position: relative;
  overflow-x: auto;
  scroll-behavior: smooth;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.scroll-container-wrapper::-webkit-scrollbar {
  display: none;
}

.card-horizontal-item {
  flex: 0 0 300px;
  max-width: 300px;
}

.blog-post-card {
  background: #ffffff;
  border: 2px solid var(--action-text);
  border-radius: var(--radius-sharp);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-graphic-header {
  height: 160px;
  border-bottom: 2px solid var(--action-text);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-meta-text {
  font-size: 0.78rem;
  color: #888888;
  font-family: var(--font-sans);
}

.card-post-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  color: var(--action-text);
}

.card-post-excerpt {
  font-size: 0.84rem;
  color: var(--content-text);
  line-height: 1.5;
}

.topic-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.topic-tag-box {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--signal-yellow);
  color: var(--action-text);
  border: 1.5px solid var(--action-text);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sharp);
  box-shadow: 1px 1px 0px 0px var(--action-text);
  display: inline-block;
}

.arrow-btn {
  background: #ffffff;
  border: 2px solid var(--action-text);
  box-shadow: 2px 2px 0px 0px var(--action-text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--action-text);
}

.arrow-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px var(--action-text);
}

.arrow-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--action-text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.capability-img-box {
  height: 140px;
  border-bottom: 2px solid var(--action-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   4. PHOTO TICKER CAROUSEL (index.html)
   -------------------------------------------------------------------------- */
.photo-ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2.5rem 0;
  background-color: transparent;
}

.photo-ticker-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
}

.photo-ticker-wrapper:hover .photo-ticker-track {
  animation-play-state: paused;
}

.photo-item {
  flex-shrink: 0;
  border: 2px solid var(--action-text);
  box-shadow: -4px 4px 0px 0px var(--action-text);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.photo-item:hover {
  transform: scale(1.05) translateY(-4px) !important;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-item.size-xs { width: 90px; height: 70px; }
.photo-item.size-sm { width: 130px; height: 110px; }
.photo-item.size-md { width: 180px; height: 140px; }
.photo-item.size-lg { width: 230px; height: 170px; }
.photo-item.size-xl { width: 280px; height: 200px; }
.photo-item.offset-top { transform: translateY(-18px); }
.photo-item.offset-bottom { transform: translateY(18px); }
.photo-item.offset-center { transform: translateY(0px); }

/* --------------------------------------------------------------------------
   5. SINGLE POST & ARTICLE DETAILS (post*.html)
   -------------------------------------------------------------------------- */
.article-header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--action-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--orange-accent);
  text-decoration: underline;
}

.article-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--action-text);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.article-meta-bar {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--mid-gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.share-in-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.share-in-label {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #777777;
  font-weight: 400;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease, 
              margin-right 0.3s ease;
}

.share-in-container:hover .share-in-label {
  max-width: 100px;
  opacity: 1;
  margin-right: 0.8rem;
}

.share-in-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.share-icon-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.share-icon-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #ff6b6b;
  transition: stroke 0.25s ease;
}

.share-icon-link:hover svg {
  stroke: #38bdf8 !important;
}

.article-body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2b2b2b;
  max-width: 820px;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.read-next-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.read-next-title {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. SUBSCRIPTION CARDS & BOTTOM WIDGETS
   -------------------------------------------------------------------------- */
.subscribe-card {
  background: var(--signal-yellow);
  border: 2px solid var(--action-text);
  border-radius: var(--radius-sharp);
  height: 100%;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.floating-subscribe-btn {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1040;
  display: none;
  animation: popIn 0.2s ease-out;
}

.bottom-subscribe-container {
  background-color: #eee9e3;
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  padding: 3.5rem 0;
  margin-top: 3.5rem;
}

.sub-icon-illus {
  width: 70px;
  height: 80px;
  border: 2.5px solid var(--action-text);
  background: #ffffff;
  border-radius: var(--radius-sharp);
  box-shadow: -3px 3px 0px 0px var(--action-text);
  position: relative;
}

/* --------------------------------------------------------------------------
   7. ANIMATIONS & RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 991.98px) {
  .hero-workbench-section { padding-top: 2rem; }
  .hero-bottom-tape { margin-top: 2.5rem; }
  .featured-post-banner {
    border-right: none;
    border-bottom: 2px solid var(--action-text);
  }
  .carousel-nav-btn.prev-btn { left: 5px; }
  .carousel-nav-btn.next-btn { right: 5px; }
}

@media (max-width: 767.98px) {
  .hero-workbench-console { box-shadow: none !important; }
  .capability-img-box { height: 105px; }
}