/*
Theme Name: TodayTop10
Theme URI: https://todaytop10.com/
Author: TodayTop10
Description: A fast, highly customizable news theme built for TodayTop10. Configure the homepage, colors, typography, headline layout, category filters, metadata, and footer from Appearance > Customize.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: todaytop10
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --tt10-accent: #e11d48;
  --tt10-accent-hover: #be123c;
  --tt10-bg: #f6f7f9;
  --tt10-surface: #ffffff;
  --tt10-text: #111827;
  --tt10-muted: #6b7280;
  --tt10-border: #e5e7eb;
  --tt10-header-bg: #ffffff;
  --tt10-header-text: #111827;
  --tt10-radius: 18px;
  --tt10-content-width: 1180px;
  --tt10-body-size: 17px;
  --tt10-logo-height: 82px;
  --tt10-logo-height-mobile: 58px;
  --tt10-heading-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tt10-body-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tt10-bg);
  color: var(--tt10-text);
  font-family: var(--tt10-body-font);
  font-size: var(--tt10-body-size);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tt10-accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.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 {
  width: auto; height: auto; clip: auto; background: #fff; color: #000; padding: 10px; z-index: 99999;
}

.tt10-container { width: min(calc(100% - 32px), var(--tt10-content-width)); margin-inline: auto; }
.tt10-site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--tt10-header-bg) 94%, transparent);
  color: var(--tt10-header-text);
  border-bottom: 1px solid var(--tt10-border);
  backdrop-filter: blur(14px);
}
.admin-bar .tt10-site-header { top: 32px; }
.tt10-header-inner { min-height: 104px; display: flex; align-items: center; gap: 30px; }
.tt10-brand { display: flex; align-items: center; gap: 14px; min-width: max-content; }
.tt10-brand-link { display: inline-flex; align-items: center; gap: 12px; }
.tt10-brand .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.tt10-brand .custom-logo { max-height: var(--tt10-logo-height); width: auto; max-width: 360px; object-fit: contain; }
.tt10-wordmark { display: inline-flex; align-items: center; gap: 7px; font: 900 clamp(1.55rem, 2.7vw, 2.2rem)/.9 var(--tt10-heading-font); letter-spacing: -0.065em; white-space: nowrap; }
.tt10-wordmark-main { color: var(--tt10-header-text); }
.tt10-wordmark-10 { display: inline-grid; place-items: center; min-width: 1.58em; height: 1.38em; padding: 0 .18em; border-radius: .34em; background: var(--tt10-accent); color: #fff; font-size: .78em; letter-spacing: -.06em; box-shadow: 0 7px 16px color-mix(in srgb, var(--tt10-accent) 24%, transparent); }
.tt10-brand-copy { display: grid; gap: 5px; }
.tt10-brand-tagline { color: var(--tt10-muted); font-size: .68rem; font-weight: 800; letter-spacing: .13em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.tt10-site-title { font: 900 1.65rem/1 var(--tt10-heading-font); letter-spacing: -0.055em; }
.tt10-site-title strong { color: var(--tt10-accent); }
.tt10-nav { margin-left: auto; }
.tt10-nav ul { display: flex; gap: 22px; align-items: center; list-style: none; padding: 0; margin: 0; }
.tt10-nav a { font-weight: 650; font-size: .96rem; }
.tt10-menu-toggle { display: none; border: 0; background: var(--tt10-surface); color: var(--tt10-text); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.tt10-header-actions { display: flex; align-items: center; gap: 10px; }
.tt10-search-link { border: 1px solid var(--tt10-border); border-radius: 999px; padding: 8px 12px; font-weight: 650; font-size: .9rem; }

.tt10-breaking { background: #111827; color: #fff; }
.tt10-breaking-inner { min-height: 38px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.tt10-breaking-label { background: var(--tt10-accent); padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; flex: 0 0 auto; }
.tt10-breaking-track { display: flex; gap: 34px; min-width: max-content; animation: tt10Ticker 35s linear infinite; font-size: .88rem; }
.tt10-breaking:hover .tt10-breaking-track { animation-play-state: paused; }
@keyframes tt10Ticker { to { transform: translateX(-50%); } }

.tt10-hero { padding: 68px 0 34px; }
.tt10-hero-box {
  position: relative;
  padding: clamp(28px, 6vw, 68px);
  border-radius: calc(var(--tt10-radius) + 8px);
  background:
    radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--tt10-accent) 28%, transparent), transparent 34%),
    linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(17,24,39,.12);
}
.tt10-hero-box::after {
  content: "10";
  position: absolute;
  right: clamp(18px, 5vw, 62px);
  bottom: clamp(-34px, -2vw, -12px);
  color: color-mix(in srgb, var(--tt10-accent) 38%, transparent);
  font: 950 clamp(7rem, 20vw, 15rem)/.75 var(--tt10-heading-font);
  letter-spacing: -.12em;
  pointer-events: none;
}
.tt10-hero-box > * { position: relative; z-index: 1; }
.tt10-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #fecdd3; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.tt10-hero h1 { max-width: 900px; margin: 12px 0 12px; font: 850 clamp(2.2rem, 6vw, 5rem)/.98 var(--tt10-heading-font); letter-spacing: -0.06em; }
.tt10-hero p { max-width: 760px; margin: 0; color: #d1d5db; font-size: clamp(1rem, 2vw, 1.2rem); }

.tt10-section { padding: 34px 0 72px; }
.tt10-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.tt10-section-title { margin: 0; font: 850 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--tt10-heading-font); letter-spacing: -0.04em; }
.tt10-section-subtitle { margin: 8px 0 0; color: var(--tt10-muted); }
.tt10-count-badge { flex: 0 0 auto; border: 1px solid var(--tt10-border); border-radius: 999px; padding: 8px 12px; background: var(--tt10-surface); color: var(--tt10-muted); font-size: .85rem; }

.tt10-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; align-items: start; }
.tt10-content-grid.no-sidebar { grid-template-columns: 1fr; }
.tt10-posts { display: grid; gap: 18px; }
.tt10-posts.layout-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tt10-card {
  position: relative; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px;
  background: var(--tt10-surface); border: 1px solid var(--tt10-border); border-radius: var(--tt10-radius); padding: 16px;
  box-shadow: 0 10px 34px rgba(17,24,39,.045); transition: transform .18s ease, box-shadow .18s ease;
}
.tt10-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(17,24,39,.08); }
.layout-grid .tt10-card { grid-template-columns: 1fr; }
.tt10-thumb { display: block; aspect-ratio: 16/10; border-radius: calc(var(--tt10-radius) - 6px); overflow: hidden; background: #e5e7eb; }
.tt10-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tt10-card.tt10-card-no-image { grid-template-columns: 1fr; }
.tt10-card-body { min-width: 0; align-self: center; }
.tt10-rank { position: absolute; top: 10px; left: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--tt10-accent); color: #fff; font-weight: 900; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.tt10-category { display: inline-block; margin-bottom: 8px; color: var(--tt10-accent); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tt10-card h2 { margin: 0; font: 800 clamp(1.15rem, 2.2vw, 1.55rem)/1.16 var(--tt10-heading-font); letter-spacing: -0.025em; }
.tt10-excerpt { margin: 10px 0 0; color: var(--tt10-muted); font-size: .94rem; }
.tt10-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; color: var(--tt10-muted); font-size: .79rem; }
.tt10-meta span + span::before { content: '•'; margin-right: 14px; }

.tt10-sidebar { position: sticky; top: 110px; }
.tt10-widget { background: var(--tt10-surface); border: 1px solid var(--tt10-border); border-radius: var(--tt10-radius); padding: 20px; margin-bottom: 18px; }
.tt10-widget-title { margin: 0 0 14px; font: 800 1.05rem/1.2 var(--tt10-heading-font); }
.tt10-widget ul { list-style: none; padding: 0; margin: 0; }
.tt10-widget li + li { border-top: 1px solid var(--tt10-border); margin-top: 10px; padding-top: 10px; }

.tt10-main { min-height: 65vh; }
.tt10-page-wrap { padding: 48px 0 80px; }
.tt10-article { max-width: 860px; margin: 0 auto; background: var(--tt10-surface); border: 1px solid var(--tt10-border); border-radius: var(--tt10-radius); padding: clamp(22px, 5vw, 54px); }
.tt10-article-title { margin: 0 0 14px; font: 850 clamp(2rem, 5vw, 4rem)/1.02 var(--tt10-heading-font); letter-spacing: -0.05em; }
.tt10-article .wp-post-image { border-radius: var(--tt10-radius); margin: 26px 0; width: 100%; }
.tt10-entry-content > * { max-width: 100%; }
.tt10-entry-content a { color: var(--tt10-accent); text-decoration: underline; text-underline-offset: 3px; }
.tt10-entry-content h2, .tt10-entry-content h3 { font-family: var(--tt10-heading-font); line-height: 1.15; }
.tt10-entry-content blockquote { margin: 28px 0; border-left: 4px solid var(--tt10-accent); padding: 10px 0 10px 20px; color: var(--tt10-muted); }

.tt10-pagination { margin-top: 26px; }
.tt10-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tt10-pagination a, .tt10-pagination span { min-width: 40px; padding: 8px 12px; text-align: center; border-radius: 9px; border: 1px solid var(--tt10-border); background: var(--tt10-surface); }
.tt10-pagination .current { background: var(--tt10-accent); color: #fff; border-color: var(--tt10-accent); }

.tt10-site-footer { background: #111827; color: #d1d5db; margin-top: 40px; border-top: 4px solid var(--tt10-accent); }
.tt10-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 50px 0; }
.tt10-footer-title { color: #fff; font: 800 1.2rem/1 var(--tt10-heading-font); margin: 0 0 13px; }
.tt10-footer-brand { margin-bottom: 14px; }
.tt10-footer-brand .custom-logo { max-height: 64px; width: auto; max-width: 280px; object-fit: contain; }
.tt10-footer-brand .tt10-wordmark-main { color: #fff; }
.tt10-footer-brand .tt10-brand-tagline { color: #9ca3af; }
.tt10-footer-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tt10-footer-bottom { border-top: 1px solid #374151; padding: 18px 0; font-size: .86rem; display: flex; justify-content: space-between; gap: 20px; }
.tt10-social { display: flex; gap: 12px; flex-wrap: wrap; }
.tt10-social a { color: #fff; opacity: .85; }

.search-form { display: flex; gap: 8px; }
.search-field { width: 100%; border: 1px solid var(--tt10-border); background: #fff; border-radius: 10px; padding: 10px 12px; }
.search-submit { border: 0; border-radius: 10px; padding: 10px 14px; background: var(--tt10-accent); color: #fff; font-weight: 750; cursor: pointer; }

@media (max-width: 980px) {
  .tt10-content-grid { grid-template-columns: 1fr; }
  .tt10-sidebar { position: static; }
  .tt10-posts.layout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-bar .tt10-site-header { top: 46px; }
  .tt10-header-inner { min-height: 78px; gap: 12px; }
  .tt10-brand .custom-logo { max-height: var(--tt10-logo-height-mobile); max-width: 230px; }
  .tt10-wordmark { font-size: 1.55rem; }
  .tt10-brand-tagline { display: none; }
  .tt10-menu-toggle { display: inline-flex; margin-left: auto; }
  .tt10-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 16px; background: var(--tt10-header-bg); border-bottom: 1px solid var(--tt10-border); }
  .tt10-nav.is-open { display: block; }
  .tt10-nav ul { display: grid; gap: 6px; }
  .tt10-nav a { display: block; padding: 10px; border-radius: 8px; }
  .tt10-header-actions { display: none; }
  .tt10-hero { padding-top: 34px; }
  .tt10-card { grid-template-columns: 112px minmax(0,1fr); gap: 14px; padding: 12px; }
  .tt10-excerpt { display: none; }
  .tt10-meta span:not(:first-child) { display: none; }
  .tt10-footer-grid { grid-template-columns: 1fr; }
  .tt10-footer-bottom { flex-direction: column; }
}
@media (max-width: 500px) {
  .tt10-brand .custom-logo { max-width: 190px; }
  .tt10-wordmark { font-size: 1.35rem; }
  .tt10-container { width: min(calc(100% - 22px), var(--tt10-content-width)); }
  .tt10-card { grid-template-columns: 1fr; }
  .tt10-card h2 { font-size: 1.2rem; }
}
