/*
Theme Name: NftFeal
Theme URI: https://nftfeal.com
Author: NftFeal
Author URI: https://nftfeal.com
Description: Dark, high-contrast WordPress theme for NftFeal.com — NFT, crypto and trading news. Includes blog layouts, pages, comments, market widgets and SEO-ready markup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nftfeal
Tags: blog, news, dark, custom-menu, featured-images, threaded-comments, translation-ready, two-columns
*/

:root {
  --bg: #0B0E11;
  --card: #161B22;
  --card-hover: #1C2330;
  --border: #21262D;
  --text-heading: #F0F6FC;
  --text-body: #C9D1D9;
  --text-muted: #8B949E;
  --accent: #00D4AA;
  --gold: #F0B90B;
  --up: #26A69A;
  --down: #F6465D;
  --navy: #0D1117;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { color: var(--text-heading); letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* Ticker */
.ticker {
  background: #080A0D;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
}
.ticker-track {
  display: inline-flex;
  gap: 32px;
  padding: 8px 0;
  animation: nf-slide 32s linear infinite;
}
.tick { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.tick b { color: var(--text-heading); font-weight: 600; }
.up { color: var(--up); }
.down { color: var(--down); }
@keyframes nf-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,14,17,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text-heading) !important;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--text-heading) !important; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0A8F75);
  display: grid; place-items: center; color: #04110E; font-weight: 800; font-size: 13px;
}
.logo span { color: var(--gold); }
.menu-primary { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu-primary a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
}
.menu-primary a:hover,
.menu-primary .current-menu-item > a,
.menu-primary .current_page_item > a { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.search-form input[type="search"] {
  background: var(--card); border: 1px solid var(--border); color: var(--text-body);
  border-radius: 8px; padding: 8px 12px; width: 220px; font-size: 13px; outline: none;
}
.search-form input:focus { border-color: var(--accent); }
.btn, .wp-block-button__link, input[type="submit"], .comment-form input[type="submit"] {
  background: var(--gold); color: #111 !important; font-weight: 700; font-size: 13px;
  border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-block;
}
.btn:hover, input[type="submit"]:hover { filter: brightness(1.05); color: #111 !important; }
.menu-toggle { display: none; background: var(--card); color: var(--text-heading); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; padding: 28px 0 8px; }
.hero-main {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 420px;
  background: #111; border: 1px solid var(--border);
}
.hero-main .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-main .bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,17,0.1) 20%, rgba(11,14,17,0.92) 100%),
    radial-gradient(800px 320px at 70% 10%, rgba(0,212,170,0.18), transparent 50%);
}
.hero-copy { position: relative; z-index: 1; padding: 28px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
.chip {
  display: inline-flex; width: fit-content;
  background: rgba(0,212,170,0.12); color: var(--accent); border: 1px solid rgba(0,212,170,0.28);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; margin-bottom: 12px;
}
.hero-copy h1 { font-size: 34px; max-width: 640px; }
.hero-copy h1 a { color: var(--text-heading); }
.hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 13px; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.mini {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: grid; grid-template-columns: 92px 1fr; gap: 14px; min-height: 132px;
}
.mini .thumb { border-radius: 10px; background: linear-gradient(160deg, #243044, #12161c); overflow: hidden; }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 100px; }
.mini h3 { font-size: 15px; }
.mini h3 a { color: var(--text-heading); }
.mini p { color: var(--text-muted); font-size: 12px; margin: 8px 0 0; }

/* Markets */
.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 20px 0 8px; }
.m-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.m-card .pair { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.m-card .price { color: var(--text-heading); font-size: 18px; font-weight: 700; margin: 6px 0 4px; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 24px 0 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; margin: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.article-card:hover { border-color: #30363D; transform: translateY(-2px); }
.article-card .cover { height: 148px; background: linear-gradient(135deg, #1d2a3a, #11161d 60%); }
.article-card .cover img { width: 100%; height: 148px; object-fit: cover; }
.article-card .body { padding: 16px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.article-card h3 { font-size: 16px; margin: 8px 0; }
.article-card h3 a { color: var(--text-heading); }
.article-card p { color: var(--text-muted); font-size: 13px; line-height: 1.55; margin: 0; }
.article-card .meta { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* Sidebar */
.widget {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.widget h3, .widget-title { color: var(--text-heading); font-size: 14px; margin: 0 0 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text-body); }
.widget a:hover { color: var(--accent); }
.row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.row:last-child { border-bottom: 0; }
.row .name { color: var(--text-heading); font-weight: 600; }
.fear { text-align: center; padding: 8px 0 4px; }
.gauge {
  width: 100%; height: 8px; border-radius: 99px; margin: 10px 0;
  background: linear-gradient(90deg, var(--down), var(--gold), var(--up));
  position: relative;
}
.needle { position: absolute; top: -4px; left: 62%; width: 3px; height: 16px; background: var(--text-heading); border-radius: 2px; }
.fear b { color: var(--gold); font-size: 22px; display: block; }

/* Single / page */
.entry { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; }
.entry-hero-img { border-radius: 16px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); }
.entry-hero-img img { width: 100%; max-height: 420px; object-fit: cover; }
.entry .entry-title { font-size: 34px; margin-bottom: 12px; }
.entry-content { font-size: 17px; line-height: 1.75; color: var(--text-body); }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 3px solid var(--gold); margin: 1.4em 0; padding: 8px 0 8px 16px; color: var(--text-heading);
}
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.page-header { padding: 28px 0 8px; }
.page-header h1 { font-size: 32px; }
.crumbs { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }

/* Comments */
.comments-area { margin-top: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; }
.comments-title { font-size: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { margin: 0 0 18px; }
.comment-body {
  background: var(--navy); border: 1px solid var(--border); border-radius: 12px; padding: 16px;
}
.comment-author { color: var(--text-heading); font-weight: 600; }
.comment-meta { color: var(--text-muted); font-size: 12px; margin: 4px 0 10px; }
.comment-meta a { color: var(--text-muted); }
.reply a { color: var(--accent); font-size: 13px; font-weight: 600; }
.children { list-style: none; margin: 12px 0 0 24px; padding: 0; }
.comment-form label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: var(--navy); border: 1px solid var(--border); color: var(--text-heading);
  border-radius: 10px; padding: 10px 12px; font-family: inherit; margin-bottom: 12px;
}
.comment-form textarea { min-height: 140px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.no-comments { color: var(--text-muted); }

/* Pagination */
.nav-links, .pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.nav-links a, .nav-links span, .page-numbers {
  background: var(--card); border: 1px solid var(--border); color: var(--text-body);
  border-radius: 8px; padding: 8px 12px; font-size: 13px;
}
.nav-links .current, .page-numbers.current { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 36px 0 28px; color: var(--text-muted); font-size: 13px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.site-footer h4 { color: var(--text-heading); font-size: 14px; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 16px; }

/* 404 / search */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h1 { font-size: 40px; }

@media (max-width: 980px) {
  .hero, .layout, .markets, .grid, .foot-grid { grid-template-columns: 1fr; }
  .menu-primary, .search-form { display: none; }
  .menu-primary.is-open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 20px;
  }
  .menu-toggle { display: inline-block; }
  .hero-main, .hero-copy { min-height: 320px; }
  .hero-copy h1, .entry .entry-title { font-size: 26px; }
  .entry { padding: 20px; }
}
