/* 100Ethereums Crypto Engine — front-end styles */
.e100-ticker-wrap { overflow: hidden; background: #0b1e3d; border-radius: 8px; padding: 10px 0; direction: ltr; }
.e100-ticker { overflow: hidden; }
.e100-ticker-track { display: flex; width: max-content; animation: e100-scroll 40s linear infinite; }
.e100-ticker-track:hover { animation-play-state: paused; }
.e100-ticker-item { display: inline-flex; align-items: center; gap: 6px; color: #f4f4f4; font-family: inherit; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
.e100-ticker-item strong { color: #d4af37; }
@keyframes e100-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.e100-up { color: #1fa855; font-weight: 600; }
.e100-down { color: #d9463f; font-weight: 600; }
.e100-flat { color: #999; }

.e100-coin-price { display: inline-flex; align-items: center; gap: 8px; }
.e100-coin-logo { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; }
.e100-coin-logo-lg { width: 56px; height: 56px; border-radius: 50%; }

.e100-table-wrap { overflow-x: auto; }
.e100-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.e100-table th, .e100-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid #e5e5e5; }
.e100-table th { background: #0b1e3d; color: #d4af37; font-weight: 600; }
.e100-table tr:hover { background: #f7f8fa; }
.e100-name-cell { display: flex; align-items: center; gap: 8px; }
.e100-symbol { color: #888; font-size: 12px; }

.e100-empty { padding: 16px; color: #888; text-align: center; }

.e100-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
.e100-pagination button { background: #0b1e3d; color: #d4af37; border: none; border-radius: 6px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.e100-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.e100-pagination button:not(:disabled):hover { background: #142c54; }
.e100-page-status { font-size: 13px; color: #555; }
.e100-page-numbers { display: flex; gap: 6px; }
.e100-page-number { background: #f0f1f3 !important; color: #0b1e3d !important; min-width: 34px; padding: 8px 10px !important; }
.e100-page-number.is-active { background: #d4af37 !important; color: #0b1e3d !important; font-weight: 700; }

.e100-chart-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.e100-chart-tab { background: #f0f1f3; color: #0b1e3d; border: none; border-radius: 6px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.e100-chart-tab:hover { background: #e2e4e8; }
.e100-chart-tab.is-active { background: #0b1e3d; color: #d4af37; font-weight: 600; }

.e100-chart-wrap { max-width: 100%; margin: 16px 0; }
.e100-chart-canvas { width: 100% !important; }

.e100-coin-page { max-width: 900px; margin: 0 auto; padding: 24px 16px; }

.e100-coins-archive { max-width: 1600px; margin: 0 auto; padding: 24px 16px; }
.e100-coin-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.e100-coin-price-lg { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.e100-coin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.e100-coin-stats-grid > div { background: #f7f8fa; border-radius: 8px; padding: 12px; }
.e100-coin-stats-grid span { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.e100-coin-stats-grid strong { font-size: 16px; color: #0b1e3d; }
.e100-coin-article { margin-top: 24px; line-height: 1.8; }

.e100-category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.e100-pill { background: #f0f1f3; color: #0b1e3d; border-radius: 20px; padding: 6px 16px; font-size: 13px; text-decoration: none; }
.e100-pill:hover { background: #e2e4e8; }
.e100-pill.is-active { background: #0b1e3d; color: #d4af37; font-weight: 600; }

.e100-coin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
@media (min-width: 600px)  { .e100-coin-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .e100-coin-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .e100-coin-grid { grid-template-columns: repeat(6, 1fr); } }
.e100-coin-card { display: block; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.e100-coin-card:hover { box-shadow: 0 4px 16px rgba(11,30,61,0.12); transform: translateY(-2px); }
.e100-coin-card-logo { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 10px; }
.e100-coin-card-name { font-weight: 700; font-size: 15px; color: #0b1e3d; margin-bottom: 6px; }
.e100-coin-card-name span { display: block; font-weight: 400; font-size: 12px; color: #888; }
.e100-coin-card-price { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.e100-coin-card-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.e100-coin-card-tags span { background: #f7f8fa; color: #666; font-size: 11px; padding: 3px 8px; border-radius: 10px; }

.e100-pagination-links { margin-top: 28px; display: flex; justify-content: center; gap: 8px; }
.e100-pagination-links .page-numbers { background: #f0f1f3; color: #0b1e3d; border-radius: 6px; padding: 8px 14px; text-decoration: none; font-size: 13px; }
.e100-pagination-links .page-numbers.current { background: #0b1e3d; color: #d4af37; font-weight: 700; }

/* Article cards (latest_articles shortcode) */
.e100-article-grid { display: grid; grid-template-columns: repeat(var(--e100-article-cols, 3), 1fr); gap: 20px; }
@media (max-width: 900px) { .e100-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .e100-article-grid { grid-template-columns: 1fr; } }
.e100-article-card { display: block; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.e100-article-card:hover { box-shadow: 0 4px 16px rgba(11,30,61,0.12); transform: translateY(-2px); }
.e100-article-card-img { aspect-ratio: 16/9; overflow: hidden; }
.e100-article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e100-article-card-body { padding: 14px 16px; }
.e100-article-card-cat { display: inline-block; background: #f0f1f3; color: #0b1e3d; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 10px; margin-bottom: 8px; }
.e100-article-card-title { font-weight: 700; font-size: 15px; color: #0b1e3d; line-height: 1.4; margin-bottom: 6px; }
.e100-article-card-date { font-size: 12px; color: #888; }

/* Homepage sections (used by templates/page-home-preview.php) */
.e100-home-hero { text-align: center; padding: 40px 16px 24px; }
.e100-home-hero h1 { font-size: 32px; margin-bottom: 8px; color: #0b1e3d; }
.e100-home-hero p { color: #666; font-size: 15px; }
.e100-home-section { max-width: 1600px; margin: 0 auto; padding: 32px 16px; }
.e100-home-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.e100-home-section-header h2 { font-size: 22px; color: #0b1e3d; margin: 0; }
.e100-btn { display: inline-block; background: #0b1e3d; color: #d4af37 !important; text-decoration: none; padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.e100-btn:hover { background: #142c54; }

/* Enhanced footer (opt-in) */
.e100-enhanced-footer { background: #0b1e3d; color: #e4e4e4; padding: 40px 20px; }
.e100-footer-grid { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .e100-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .e100-footer-grid { grid-template-columns: 1fr; } }
.e100-footer-col h4 { color: #d4af37; font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.e100-footer-col p { font-size: 13px; line-height: 1.7; color: #c3c9d6; margin: 0; }
.e100-footer-col ul { list-style: none; margin: 0; padding: 0; }
.e100-footer-col li { margin-bottom: 10px; }
.e100-footer-col a { color: #e4e4e4; text-decoration: none; font-size: 13px; }
.e100-footer-col a:hover { color: #d4af37; }
.e100-footer-col .e100-footer-date { display: block; color: #8892a6; font-size: 11px; margin-top: 2px; }
.e100-footer-coin-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.e100-footer-coin-row:last-child { border-bottom: none; }
.e100-footer-copyright { max-width: 1600px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12px; color: #8892a6; }
.e100-footer-copyright a { color: #d4af37; text-decoration: none; }
.e100-footer-copyright a:hover { text-decoration: underline; }

/* Subscribe modal */
.e100-modal-overlay { position: fixed; inset: 0; background: rgba(11,30,61,0.7); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 16px; }
.e100-modal-overlay[hidden] { display: none; }
.e100-modal-box { background: #fff; border-radius: 12px; padding: 32px; max-width: 400px; width: 100%; position: relative; text-align: center; font-family: inherit; }
.e100-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; line-height: 1; color: #888; cursor: pointer; }
.e100-modal-close:hover { color: #0b1e3d; }
.e100-modal-box h3 { margin: 0 0 8px; color: #0b1e3d; font-size: 20px; }
.e100-modal-box p { color: #666; font-size: 14px; margin: 0 0 20px; }
#e100-subscribe-form { display: flex; flex-direction: column; gap: 10px; }
#e100-subscribe-form input[type="email"] { padding: 11px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
#e100-subscribe-form button[type="submit"] { background: #0b1e3d; color: #d4af37; border: none; border-radius: 6px; padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer; }
#e100-subscribe-form button[type="submit"]:hover { background: #142c54; }
#e100-subscribe-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
.e100-hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.e100-subscribe-message { margin-top: 12px; font-size: 13px; min-height: 18px; }
