/* AnlıkDöviz v28 — final presentation layer. Data/cron/embed logic untouched. */
:root{
  --ad28-page:#0f1115;--ad28-panel:#171a20;--ad28-panel2:#1d2128;--ad28-line:rgba(255,255,255,.075);
  --ad28-text:#f5f7fb;--ad28-muted:#9da7b5;--ad28-accent:#f28a24;--ad28-accent2:#d9690b;
  --ad28-green:#31d17c;--ad28-red:#f06464;--ad28-radius:18px;--ad28-shadow:0 14px 40px rgba(0,0,0,.22)
}
html:not([data-theme="light"]),html:not([data-theme="light"]) body{background:var(--ad28-page)!important;color:var(--ad28-text)}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;text-rendering:optimizeLegibility}
a{transition:color .16s ease,border-color .16s ease,background .16s ease,transform .16s ease}
.container,.header-wrapper,.haber-container{width:min(1460px,calc(100% - 36px))!important;max-width:1460px!important;margin-left:auto!important;margin-right:auto!important}

/* HEADER */
.site-header-shell{background:rgba(17,19,23,.96)!important;border-bottom:1px solid var(--ad28-line)!important;box-shadow:0 8px 28px rgba(0,0,0,.18)!important}
.header-wrapper{background:transparent!important}
.header-top{min-height:92px!important;padding:16px 0!important;gap:22px!important}
.brand-title{font-size:30px!important;letter-spacing:-.035em!important;background:none!important;color:#f2f5f9!important;-webkit-text-fill-color:initial!important}
.brand-sub{color:#7f8997!important;letter-spacing:.18em!important;font-size:10px!important}
.price-bar-top{gap:8px!important}
.mini-asset{min-height:56px!important;padding:8px 11px!important;background:#191d23!important;border:1px solid var(--ad28-line)!important;border-radius:14px!important;box-shadow:none!important}
.mini-asset:hover{background:#20252d!important;border-color:rgba(242,138,36,.26)!important;transform:translateY(-1px)}
.asset-icon{border-radius:10px!important;box-shadow:none!important}
.asset-name{font-size:10px!important;color:#98a3b1!important}.asset-value{font-size:15px!important;letter-spacing:-.01em!important}
.market-bar{border-top:1px solid var(--ad28-line)!important;background:#13161b!important;min-height:52px!important}
.main-menu{justify-content:flex-start!important;gap:2px!important;overflow:auto!important;scrollbar-width:none}
.main-menu::-webkit-scrollbar{display:none}.menu-link{padding:16px 13px!important;border-radius:0!important;font-size:13px!important;color:#b4bdc9!important;white-space:nowrap}
.menu-link:hover,.menu-link.active{color:#fff!important;background:rgba(255,255,255,.035)!important}.menu-link.active{box-shadow:inset 0 -2px var(--ad28-accent)!important}

/* HOMEPAGE — noticeably new hierarchy */
.main{background:var(--ad28-page)!important}.main-inner{padding-top:24px!important}
.hero-header{margin:0 0 16px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.hero-content{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:22px!important;padding:20px 2px!important;text-align:left!important}
.hero-content h1{margin:0!important;font-size:clamp(28px,3vw,44px)!important;line-height:1.04!important;letter-spacing:-.045em!important;color:#f7f8fb!important;background:none!important;-webkit-text-fill-color:initial!important}
.hero-content p{margin:9px 0 0!important;max-width:780px!important;color:var(--ad28-muted)!important;font-size:14px!important;line-height:1.65!important}
.hero-content:after{content:"CANLI PİYASA";align-self:center;padding:9px 12px;border:1px solid rgba(49,209,124,.22);border-radius:999px;background:rgba(49,209,124,.07);color:#63e69a;font-size:11px;font-weight:900;letter-spacing:.09em}
.dashboard-grid{gap:16px!important;align-items:start!important;margin-bottom:16px!important}.dashboard-grid--currencies{grid-template-columns:minmax(0,1.75fr) minmax(300px,.75fr)!important}
.rates-container,.sidebar-widget,.home-performance,.home-finance-hub,.home-popular-calcs,.market-discovery{background:var(--ad28-panel)!important;border:1px solid var(--ad28-line)!important;border-radius:var(--ad28-radius)!important;box-shadow:var(--ad28-shadow)!important;overflow:hidden}
.rates-header{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:17px 20px!important;background:transparent!important;border-bottom:1px solid var(--ad28-line)!important}
.rates-header h2{font-size:16px!important;letter-spacing:-.015em!important;color:#f5f7fa!important;text-shadow:none!important}.rates-header h2:before{content:"PİYASA";display:block;margin-bottom:3px;color:var(--ad28-accent)!important;font-size:9px!important;letter-spacing:.14em!important;font-weight:900!important}
.rates-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:0!important}.rate-box{min-height:235px!important;padding:20px!important;border:0!important;border-right:1px solid var(--ad28-line)!important;border-bottom:1px solid var(--ad28-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.rate-box:nth-child(3){border-right:0!important}.rate-box:hover{background:#1c2027!important;transform:none!important}.currency-name{font-size:15px!important;color:#dfe4ea!important}.change-indicator{border-radius:999px!important;padding:6px 9px!important;font-size:11px!important}
.main-rate{padding:28px 0 22px!important}.rate-value{font-size:clamp(28px,2.5vw,39px)!important;font-weight:800!important;letter-spacing:.025em!important}.rate-label{font-size:9px!important;letter-spacing:.14em!important;color:#778391!important}
.rate-details{gap:8px!important}.detail-item{padding:10px 11px!important;border-radius:11px!important;background:#14171c!important;border:1px solid var(--ad28-line)!important}.detail-label{font-size:9px!important}.detail-value{font-size:14px!important}
.home-inline-market-summary{grid-column:1/-1!important;margin:0!important;padding:20px!important;border:0!important;border-top:1px solid var(--ad28-line)!important;border-radius:0!important;background:linear-gradient(90deg,rgba(242,138,36,.075),transparent 52%)!important;box-shadow:none!important}.home-inline-market-summary h2{font-size:20px!important}.daily-summary-text{font-size:14px!important;color:#aeb7c3!important}
.sidebar-widget{box-shadow:none!important}.widget-header{padding:15px 16px!important;background:transparent!important;border-bottom:1px solid var(--ad28-line)!important}.widget-header h3{font-size:14px!important;color:#f1f3f6!important}.widget-content{padding:8px!important}.news-item{gap:10px!important;padding:10px!important;border-radius:12px!important;border:1px solid transparent!important}.news-item:hover{background:#1f242c!important;border-color:var(--ad28-line)!important}.news-thumb{width:72px!important;height:50px!important;border-radius:9px!important;overflow:hidden}.news-content h4{font-size:12px!important;line-height:1.35!important}.news-datetime{font-size:10px!important;color:#778391!important}
.commodity-grid{gap:0!important;padding:0!important}.commodity-card,.commodity-box{border-radius:0!important;box-shadow:none!important}

/* PERFORMANCE: denser and cleaner */
.home-performance{padding:24px!important}.home-section-head{margin-bottom:18px!important}.home-section-head h2{font-size:clamp(24px,2.5vw,34px)!important;letter-spacing:-.035em!important}.home-section-head-copy p{color:#929dab!important;font-size:13px!important}.performance-toolbar{gap:12px!important}.performance-tab{border-radius:10px!important;padding:10px 14px!important}.performance-tab[aria-selected="true"]{background:rgba(242,138,36,.09)!important;border-color:rgba(242,138,36,.52)!important;color:#ff9a3d!important}.performance-table{border-radius:14px!important;overflow:hidden!important}.performance-row{min-height:112px!important;background:#15191f!important}.performance-row:hover{background:#1a1f26!important}.performance-table-head{background:#111419!important}.performance-result-card{box-shadow:none!important;background:#1a1e24!important}

/* ASSET DETAIL (/dolar, /euro, etc.) */
.main-wrapper{background:var(--ad28-page)!important}.main-wrapper>.container,.main-wrapper .container{padding-top:24px!important;padding-bottom:36px!important}
.topic,.parite-card,.detail-card,.widget,.chart-widget,.comments-widget{border-radius:16px!important;border:1px solid var(--ad28-line)!important;box-shadow:none!important;background:var(--ad28-panel)!important}
.breadcrumb-bar,.breadcrumb-nav{font-size:12px!important;color:#7d8794!important}.breadcrumb-bar a,.breadcrumb-nav a{color:#aab3bf!important}

/* CALCULATOR / amount pages */
.kactl-page .calc-page{gap:16px!important}.kactl-page .widget{border-radius:18px!important;background:var(--ad28-panel)!important;border-color:var(--ad28-line)!important;box-shadow:var(--ad28-shadow)!important}.kactl-page .widget-header{background:transparent!important;padding:16px 18px!important}.kactl-page .calc-box{padding:18px!important}.kactl-page .calc-input,.kactl-page input{border-radius:12px!important;background:#111419!important}.kactl-page .calc-result{border-radius:14px!important;background:linear-gradient(135deg,rgba(242,138,36,.12),rgba(242,138,36,.025))!important;border:1px solid rgba(242,138,36,.18)!important}.kactl-page .calc-result-value{font-size:clamp(30px,4vw,46px)!important;letter-spacing:-.035em!important}

/* ARTICLE / NEWS reading pages */
.haber-detail-page{background:var(--ad28-page)!important;padding:24px 0 44px!important}.haber-detail-page .haber-container{display:grid!important;grid-template-columns:minmax(0,1fr) 320px!important;gap:20px!important;align-items:start!important}.haber-detail-page .main-content{min-width:0!important}.post-content-card{background:var(--ad28-panel)!important;border:1px solid var(--ad28-line)!important;border-radius:20px!important;box-shadow:var(--ad28-shadow)!important;overflow:hidden!important}.post-content-card .post-header,.post-content-card>header{padding:26px 30px 18px!important}.post-content-card h1{font-size:clamp(29px,3.5vw,46px)!important;line-height:1.08!important;letter-spacing:-.04em!important;color:#f6f7fa!important}.post-content-card .content,#article-content{font-size:17px!important;line-height:1.82!important;color:#d2d7de!important}.post-content-card .content{padding-left:30px!important;padding-right:30px!important}.post-content-card article{padding:0 30px 30px!important}.post-content-card article p{margin:0 0 1.2em!important}.post-content-card article h2{margin:1.8em 0 .65em!important;font-size:27px!important;letter-spacing:-.025em!important}.post-content-card article h3{margin:1.5em 0 .55em!important;font-size:21px!important}.post-content-card article img{border-radius:14px!important}.haber-detail-page .sidebar{position:sticky!important;top:18px!important}.haber-detail-page .sidebar-widget{border-radius:16px!important;background:var(--ad28-panel)!important;border:1px solid var(--ad28-line)!important}

/* LIST / archive / category pages: shared cards */
.news-card,.blog-card,.article-card,.market-card,.list-card{border-radius:16px!important;border:1px solid var(--ad28-line)!important;background:var(--ad28-panel)!important;box-shadow:none!important}.news-card:hover,.blog-card:hover,.article-card:hover,.market-card:hover{transform:translateY(-2px)!important;border-color:rgba(242,138,36,.24)!important}

/* Browser work reduction below fold without stale data */
.home-performance,.home-finance-hub,.home-popular-calcs,.market-discovery,.sidebar-archive-widget,.haber-detail-page .comments-widget{content-visibility:auto;contain-intrinsic-size:1px 700px}

/* LIGHT — preserve functionality, cleaner warm white */
html[data-theme="light"] body{background:#f4f1eb!important;color:#20252c!important}html[data-theme="light"] .main,html[data-theme="light"] .main-wrapper,html[data-theme="light"] .haber-detail-page{background:#f4f1eb!important}
html[data-theme="light"] .rates-container,html[data-theme="light"] .sidebar-widget,html[data-theme="light"] .home-performance,html[data-theme="light"] .home-finance-hub,html[data-theme="light"] .home-popular-calcs,html[data-theme="light"] .post-content-card,html[data-theme="light"] .kactl-page .widget{background:#fffdf9!important;border-color:rgba(85,65,42,.12)!important;box-shadow:0 12px 34px rgba(61,47,31,.07)!important}
html[data-theme="light"] .hero-content h1,html[data-theme="light"] .rates-header h2,html[data-theme="light"] .post-content-card h1{color:#1f2630!important}html[data-theme="light"] .hero-content p{color:#68717d!important}
html[data-theme="light"] .rate-box:hover{background:#fff8ef!important}html[data-theme="light"] .detail-item{background:#f8f3eb!important;border-color:rgba(85,65,42,.12)!important}

@media(max-width:1050px){.dashboard-grid--currencies,.haber-detail-page .haber-container{grid-template-columns:1fr!important}.haber-detail-page .sidebar{position:static!important}.hero-content{grid-template-columns:1fr!important}.hero-content:after{justify-self:start}.rates-grid{grid-template-columns:repeat(3,minmax(190px,1fr))!important;overflow-x:auto!important}.rate-box{min-width:190px!important}.price-bar-top .mini-asset:nth-child(n+4){display:none!important}}
@media(max-width:760px){.container,.header-wrapper,.haber-container{width:min(100% - 20px,1460px)!important}.header-top{min-height:68px!important;padding:10px 0!important}.brand-title{font-size:23px!important}.price-bar-top{display:none!important}.market-bar{min-height:44px!important}.menu-link{padding:13px 10px!important;font-size:12px!important}.main-inner{padding-top:12px!important}.hero-content{padding:12px 0!important}.hero-content h1{font-size:30px!important}.hero-content p{font-size:13px!important}.hero-content:after{font-size:9px;padding:7px 9px}.rates-grid{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory}.rate-box{flex:0 0 82%!important;scroll-snap-align:start;border-right:1px solid var(--ad28-line)!important;min-height:205px!important}.main-rate{padding:20px 0!important}.home-performance{padding:17px!important}.performance-table-head{display:none!important}.performance-row{min-width:760px!important}.performance-table{overflow-x:auto!important}.post-content-card .post-header,.post-content-card>header,.post-content-card .content,.post-content-card article{padding-left:18px!important;padding-right:18px!important}.post-content-card article{padding-bottom:22px!important}.post-content-card .content,#article-content{font-size:16px!important;line-height:1.75!important}.post-content-card h1{font-size:31px!important}}

/* ============================================================
   AnlıkDöviz v29 visual correction — warm cards + mobile-first
   ============================================================ */
:root{
  --ad29-card:#202327;
  --ad29-card-soft:#25282d;
  --ad29-line:rgba(255,255,255,.09);
  --ad29-gold:#f29a18;
  --ad29-blue:#4f91ee;
}

/* Brand: keep recognizable blue identity in both themes */
.brand-title{
  color:var(--ad29-blue)!important;
  background:linear-gradient(135deg,#69a7ff 0%,#3f7fe0 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
}
.brand-sub{color:#9aa4b2!important;opacity:1!important}

/* Homepage hero: no long green pseudo bar; compact, useful intro */
.hero-header{
  margin:0 0 18px!important;
  padding:0!important;
}
.hero-content{
  display:block!important;
  padding:18px 4px 14px!important;
  text-align:left!important;
}
.hero-content:before{
  content:"CANLI PİYASALAR";
  display:block;
  margin:0 0 8px;
  color:var(--ad29-gold);
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}
.hero-content:after{display:none!important;content:none!important}
.hero-content h1{max-width:820px!important;font-size:clamp(30px,3.25vw,46px)!important}
.hero-content p{max-width:900px!important;margin-top:9px!important}

/* Restore warmer individual cards instead of flat table-like blocks */
.rates-container{padding:0!important;overflow:hidden!important}
.rates-header{
  padding:16px 20px!important;
  background:linear-gradient(180deg,rgba(242,154,24,.09),rgba(242,154,24,.025))!important;
}
.rates-header h2:before{content:none!important}
.rates-header h2{font-size:19px!important;color:#f5f7fa!important}
.rates-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  padding:18px!important;
  overflow:visible!important;
}
.rate-box{
  min-width:0!important;
  min-height:218px!important;
  padding:18px!important;
  border:1px solid var(--ad29-line)!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,var(--ad29-card-soft),var(--ad29-card))!important;
  box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
}
.rate-box:nth-child(3){border-right:1px solid var(--ad29-line)!important}
.rate-box:hover{
  background:linear-gradient(145deg,#292d33,#22262b)!important;
  border-color:rgba(242,154,24,.30)!important;
  transform:translateY(-2px)!important;
}
.card-top{gap:10px!important}.currency-name{font-size:16px!important;color:#f0f2f5!important}
.main-rate{padding:24px 0 18px!important}.rate-value{font-size:clamp(27px,2.25vw,36px)!important}
.rate-details{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.detail-item{
  min-width:0!important;
  padding:11px!important;
  border-radius:11px!important;
  background:#191c20!important;
}
.detail-item.low{border-color:rgba(240,100,100,.28)!important}
.detail-item.high{border-color:rgba(49,209,124,.27)!important}
.home-inline-market-summary{
  grid-column:1/-1!important;
  margin:2px 0 0!important;
  padding:18px 20px!important;
  border:1px solid rgba(242,154,24,.16)!important;
  border-radius:14px!important;
  background:linear-gradient(90deg,rgba(242,154,24,.08),rgba(242,154,24,.018))!important;
}

/* Detail pages: remove the large dead zone under global header */
.main-wrapper{margin-top:8px!important}
.main-wrapper .main-inner{padding-top:0!important}
.main-wrapper>.container,.main-wrapper .container{padding-top:0!important}
.breadcrumb-bar{padding:10px 0 12px!important;margin:0!important}

/* Dark detail cards a touch warmer / less flat */
.topic,.parite-card,.detail-card,.widget,.chart-widget,.comments-widget{
  background:linear-gradient(145deg,#191d23,#16191e)!important;
  border-color:rgba(255,255,255,.085)!important;
}

/* LIGHT THEME — explicit contrast; do not inherit dark text choices */
html[data-theme="light"] .site-header-shell{background:#eee4d5!important;border-color:rgba(70,55,35,.14)!important}
html[data-theme="light"] .header-wrapper{background:transparent!important}
html[data-theme="light"] .brand-title{
  color:#2f75c9!important;
  background:linear-gradient(135deg,#397fcc,#205da8)!important;
  -webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;
}
html[data-theme="light"] .brand-sub{color:#5f6670!important}
html[data-theme="light"] .mini-asset{background:#f8f1e7!important;border-color:rgba(70,55,35,.13)!important;color:#1f2937!important}
html[data-theme="light"] .asset-name{color:#495464!important}
html[data-theme="light"] .asset-value{color:#182230!important}
html[data-theme="light"] .market-bar{background:#e8ddcd!important;border-color:rgba(70,55,35,.12)!important}
html[data-theme="light"] .menu-link{color:#4d5968!important}
html[data-theme="light"] .menu-link:hover,html[data-theme="light"] .menu-link.active{color:#17202c!important;background:rgba(255,255,255,.42)!important}
html[data-theme="light"] .hero-content h1{color:#9a4d0a!important}
html[data-theme="light"] .hero-content p{color:#485361!important}
html[data-theme="light"] .hero-content:before{color:#b85c0c!important}
html[data-theme="light"] .rates-header{background:linear-gradient(180deg,rgba(195,104,20,.08),rgba(195,104,20,.02))!important}
html[data-theme="light"] .rates-header h2{color:#272f39!important}
html[data-theme="light"] .rate-box{
  background:linear-gradient(145deg,#fffdf9,#f8f0e5)!important;
  border-color:rgba(90,67,39,.14)!important;
  box-shadow:0 8px 22px rgba(74,55,33,.07)!important;
}
html[data-theme="light"] .rate-box:hover{background:#fff8ed!important;border-color:rgba(183,94,13,.24)!important}
html[data-theme="light"] .currency-name,html[data-theme="light"] .rate-value{color:#202936!important}
html[data-theme="light"] .detail-item{background:#f1e8db!important;border-color:rgba(90,67,39,.12)!important}
html[data-theme="light"] .detail-label{color:#68717b!important}
html[data-theme="light"] .detail-value{color:#26313e!important}
html[data-theme="light"] .home-inline-market-summary{background:#fbf2e6!important;border-color:rgba(183,94,13,.15)!important}
html[data-theme="light"] .topic,html[data-theme="light"] .parite-card,html[data-theme="light"] .detail-card,html[data-theme="light"] .widget,html[data-theme="light"] .chart-widget,html[data-theme="light"] .comments-widget{background:#fffdf9!important;border-color:rgba(85,65,42,.13)!important}
html[data-theme="light"] .breadcrumb-bar,html[data-theme="light"] .breadcrumb-nav{color:#65707d!important}
html[data-theme="light"] .breadcrumb-bar a,html[data-theme="light"] .breadcrumb-nav a{color:#42566e!important}

/* Tablet */
@media (max-width:1050px){
  .rates-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}
  .rate-box{min-width:0!important}
}

/* Mobile — actual grid, no horizontal overflow */
@media (max-width:760px){
  .container,.header-wrapper,.haber-container{width:calc(100% - 16px)!important}
  .hero-content{padding:12px 2px 10px!important}
  .hero-content h1{font-size:28px!important;line-height:1.08!important}
  .hero-content p{font-size:13px!important;line-height:1.55!important}
  .rates-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    padding:12px!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  .rate-box{
    flex:auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:180px!important;
    padding:13px!important;
    scroll-snap-align:none!important;
    border:1px solid var(--ad29-line)!important;
  }
  .currency-name{font-size:14px!important}
  .change-indicator{padding:5px 7px!important;font-size:10px!important}
  .main-rate{padding:18px 0 14px!important}
  .rate-value{font-size:25px!important;letter-spacing:0!important}
  .rate-label{font-size:8px!important}
  .rate-details{gap:6px!important}
  .detail-item{padding:8px 6px!important;text-align:center!important}
  .detail-label{font-size:8px!important}.detail-value{font-size:12px!important}
  .home-inline-market-summary{padding:14px!important}
  .main-wrapper{margin-top:4px!important}
  .breadcrumb-bar{padding:8px 0 10px!important}
}

@media (max-width:420px){
  .rates-grid{grid-template-columns:1fr!important}
  .rate-box{min-height:172px!important}
  .rate-value{font-size:28px!important}
}
