/*
Theme Name: Altcoin.news AI
Theme URI: https://altcoin.news/
Author: Altcoin.news
Author URI: https://altcoin.news/
Description: A dark, responsive WordPress theme for the Altcoin.news AI-powered crypto news chat plugin. Includes a branded homepage, dynamic news sections, and native support for the [altcoin_news_chat] shortcode.
Version: 1.0.9
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: altcoin-news-ai
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, dark, custom-logo, custom-menu, featured-images, responsive-layout, block-styles
*/

:root {
  --anc-bg: #020713;
  --anc-bg-soft: #071326;
  --anc-panel: rgba(8, 25, 47, 0.88);
  --anc-panel-strong: #08182d;
  --anc-border: rgba(74, 164, 255, 0.25);
  --anc-text: #f7fbff;
  --anc-muted: #a8b8cb;
  --anc-cyan: #13e4ff;
  --anc-blue: #1688ff;
  --anc-indigo: #5557ff;
  --anc-green: #24df91;
  --anc-danger: #ff6174;
  --anc-radius: 20px;
  --anc-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--anc-text);
  background:
    radial-gradient(circle at 70% -10%, rgba(19, 119, 255, 0.2), transparent 38rem),
    radial-gradient(circle at 8% 40%, rgba(0, 226, 255, 0.08), transparent 32rem),
    var(--anc-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--anc-cyan); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.anc-container { width: min(1460px, calc(100% - 40px)); margin-inline: auto; }
.anc-main { min-height: 70vh; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 12px; left: 12px; z-index: 99999;
  width: auto; height: auto; margin: 0; padding: 12px 16px;
  clip: auto; background: #fff; color: #000; border-radius: 8px;
}

.alignwide { width: min(1320px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.wp-caption, .gallery-caption { color: var(--anc-muted); }
.sticky { outline: 1px solid var(--anc-border); }
.bypostauthor { display: block; }


/* v1.0.9: streamlined hero without the eyebrow label. */
.anc-hero-focused {
  display: block;
  padding-top: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(28px, 4vw, 58px);
}

.anc-hero-focused .anc-hero-center {
  width: 100%;
  min-height: clamp(430px, 52vw, 650px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(36px, 5vw, 78px);
  border: 1px solid var(--anc-border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(9, 28, 54, .96), rgba(4, 15, 32, .92)),
    radial-gradient(circle at 82% 48%, rgba(19, 228, 255, .12), transparent 36%);
  box-shadow: var(--anc-shadow);
  overflow: hidden;
}

.anc-hero-focused .anc-hero-copy {
  max-width: 720px;
}

.anc-hero-focused .anc-hero-copy h1 {
  max-width: 9.5ch;
  font-size: clamp(58px, 7.2vw, 112px);
  line-height: .9;
}

.anc-hero-focused .anc-hero-copy p {
  max-width: 650px;
  font-size: clamp(17px, 1.5vw, 22px);
}

.anc-hero-focused .anc-hero-art {
  min-height: 360px;
  width: 100%;
  justify-self: stretch;
}

.anc-hero-focused .anc-hero-art img {
  width: min(100%, 560px);
  margin-inline: auto;
}

.anc-app-section {
  margin-top: clamp(20px, 3vw, 42px);
}

@media (max-width: 980px) {
  .anc-hero-focused .anc-hero-center {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .anc-hero-focused .anc-hero-copy,
  .anc-hero-focused .anc-hero-copy p {
    margin-inline: auto;
  }

  .anc-hero-focused .anc-hero-copy h1 {
    max-width: 11ch;
    margin-inline: auto;
  }

  .anc-hero-focused .anc-hero-actions,
  .anc-hero-focused .anc-feature-row {
    justify-content: center;
  }

  .anc-hero-focused .anc-hero-art {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .anc-hero-focused .anc-hero-center {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .anc-hero-focused .anc-hero-copy h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .anc-hero-focused .anc-hero-art {
    min-height: 220px;
  }
}
