/* GelecekFiyat V3 – extension, existing styles.css untouched. */
html[data-gf-view="home"] .gf-forecast-sidebar{display:none!important}
.gf-header-two{grid-template-columns:auto minmax(0,1fr) auto;gap:20px}
.gf-centre-nav{justify-content:flex-end;gap:9px}
.gf-centre-nav a{min-height:43px;font-size:13px;padding:10px 18px}
.gf-centre-nav a[aria-current="page"],html[data-gf-view="forecast"] .gf-centre-nav a[data-gf-centre="forecast"]{background:var(--text);color:var(--bg);border-color:var(--text)}
/* Home page stays full width with all original sections. */
.gf-forecast-layout{display:block}
.gf-forecast-content{min-width:0}
html[data-gf-view="forecast"] .gf-forecast-layout{width:min(1280px,calc(100% - 48px));display:grid;grid-template-columns:228px minmax(0,1fr);gap:22px;margin:24px auto 0;align-items:start}
html[data-gf-view="forecast"] .gf-forecast-content{min-width:0}
html[data-gf-view="forecast"] .gf-forecast-content .shell{width:100%;max-width:100%}
html[data-gf-view="forecast"] .gf-forecast-content .hero{grid-template-columns:1fr;gap:16px;padding:10px 0 24px}
html[data-gf-view="forecast"] .gf-forecast-content .hero__copy h1{font-size:clamp(32px,4vw,48px)}
html[data-gf-view="forecast"] .gf-forecast-content .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-gf-view="forecast"] .gf-forecast-content .category-stage{padding-top:0}
.gf-sidepanel{position:sticky;top:82px;max-height:calc(100vh - 100px);overflow-y:auto;background:#0e0e0e;border:1px solid #2a2a2a;border-radius:12px;padding:18px 12px 16px;scrollbar-width:thin;scrollbar-color:#555 #111}
.gf-sidepanel__title{padding:0 9px 14px;margin-bottom:12px;border-bottom:1px solid #282828;display:flex;flex-direction:column;gap:8px}
.gf-sidepanel__title strong{color:#f5f5f5;font-size:19px;font-weight:600;letter-spacing:-.01em}
.gf-sidepanel__nav{display:flex;flex-direction:column;gap:3px}
.gf-sidepanel__nav a{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#b4b4b4;text-decoration:none;font-size:12.5px;font-weight:500;line-height:1.4;min-height:37px;padding:9px 11px;border:1px solid transparent;border-radius:7px;transition:background .16s,border-color .16s,color .16s}
.gf-sidepanel__nav a:hover{background:#1c1c1c;color:#f5f5f5;border-color:#2f2f2f}
.gf-sidepanel__nav a[aria-current="page"]{background:#242424;color:#fff;border-color:#4a4a4a;font-weight:600}
.gf-sidepanel__nav .gf-sidepanel__parent{color:#eaeaea;font-weight:600;margin-top:7px}
.gf-sidepanel__nav .gf-sidepanel__child{padding-left:22px}
.gf-sidepanel__nav .gf-sidepanel__all{margin-bottom:10px;color:#fff;background:#191919}
.gf-sidepanel__group{padding-bottom:9px;border-bottom:1px solid #242424}
.gf-sidepanel__group-label{display:block;color:#eaeaea;font-weight:600;font-size:12.5px;padding:16px 11px 8px}
.gf-sidepanel__mobile{display:none}
/* Campaign centre uses the same sidebar and original visual tokens. */
.gf-campaign-layout{display:block;padding:24px 0 38px}
.gf-campaign-layout .gf-sidepanel{
  position:static;
  top:auto;
  max-height:none;
  overflow:visible;
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  margin:0 0 22px;
}
.gf-campaign-layout .gf-sidepanel__title{display:none}
.gf-campaign-layout .gf-sidepanel__mobile{display:none}
.gf-campaign-layout .gf-sidepanel__nav.gf-sidepanel__desktop{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  width:100%;
}
.gf-campaign-layout .gf-sidepanel__nav.gf-sidepanel__desktop a{
  display:inline-flex;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:36px;
  padding:8px 13px;
  margin:0;
  border:1px solid #303030;
  border-radius:7px;
  background:#151515;
  color:#ddd;
  font-size:12px;
  font-weight:600;
}
.gf-campaign-layout .gf-sidepanel__nav.gf-sidepanel__desktop a[aria-current="page"]{
  background:#f5f5f5;
  border-color:#f5f5f5;
  color:#111;
}
@media(max-width:640px){
  .gf-campaign-layout .gf-sidepanel__nav.gf-sidepanel__desktop{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .gf-campaign-layout .gf-sidepanel__nav.gf-sidepanel__desktop a{
    width:100%;
    min-width:0;
    padding:9px 10px;
    font-size:11px;
  }
}
.gf-campaign-layout .campaign-main{min-width:0;min-height:65vh;padding:7px 0 30px}
.gf-campaign-layout .campaign-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gf-campaign-layout .campaign-store-card{border-radius:var(--radius)}
.gf-store-pending .campaign-store-claim{font-size:17px;color:var(--text-soft)}
.gf-store-pending .campaign-store-foot{color:var(--muted)}
@media(max-width:1100px){
  html[data-gf-view="forecast"] .gf-forecast-content .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gf-centre-nav a{padding:9px 12px}
}
@media(max-width:850px){
  html[data-gf-view="forecast"] .gf-forecast-layout,.gf-campaign-layout{display:block;width:min(100% - 48px,1280px)}
  html[data-gf-view="forecast"] .gf-forecast-content .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gf-sidepanel{position:static;max-height:none;overflow:visible;padding:12px 14px;margin-bottom:18px}
  .gf-sidepanel__title{display:none}
  .gf-sidepanel__nav.gf-forecast-categories,.gf-sidepanel__nav.gf-sidepanel__desktop{display:none}
  .gf-sidepanel__mobile{display:block}
  .gf-sidepanel__mobile summary{list-style:none;cursor:pointer;color:#f5f5f5;font-size:13px;font-weight:600;padding:6px 0}
  .gf-sidepanel__mobile summary::-webkit-details-marker{display:none}
  .gf-sidepanel__mobile .gf-sidepanel__nav{padding-top:10px;border-top:1px solid var(--line);margin-top:10px}
  .gf-campaign-layout .campaign-main{padding-top:0}
}
@media(max-width:640px){
  html[data-gf-view="forecast"] .gf-forecast-layout,.gf-campaign-layout{width:min(1280px,calc(100% - 32px))!important}
  .header__row{grid-template-columns:1fr!important;gap:6px;padding:9px 0}
  .header__row .brand{justify-self:center}
  .gf-centre-nav{width:100%;justify-content:stretch;gap:7px}
  .gf-centre-nav a{flex:1;min-height:40px;flex-direction:row;font-size:11px;white-space:normal;justify-content:center;padding:8px 7px}
  .header__row .status{display:none}
  html[data-gf-view="forecast"] .gf-forecast-content .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gf-campaign-layout .campaign-store-grid{grid-template-columns:1fr}
  .gf-campaign-layout .campaign-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){.gf-campaign-layout .campaign-product-grid{grid-template-columns:1fr}}
/* Author display:grid rules must not override the hidden attribute. */
.gf-campaign-layout [hidden],.gf-forecast-content [hidden]{display:none!important}

/* GF_MOBILE_HEADER_GRID_FIX_20261008 */
/* The original stylesheet places .brand at grid-column:2 on mobile.
   V3 changes the header to one column, so reset the explicit positions. */
@media (max-width: 640px) {
  .header__row.gf-header-two {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 12px;
  }
  .header__row.gf-header-two > .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    justify-self: center !important;
    min-width: 0;
    max-width: 100%;
  }
  .header__row.gf-header-two > .brand img {
    display: block;
    width: 150px;
    max-width: 75vw;
    height: auto;
  }
  .header__row.gf-header-two > .gf-centre-nav {
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }
  .header__row.gf-header-two > .gf-centre-nav > a {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 8px 4px;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(10px, 3.05vw, 12px);
    line-height: 1.2;
  }
}


/* GF_MOBILE_STORE_BACK_SPACING_20261012 */
@media (max-width: 740px) {

    #campaignDetail .gf100-detail > .gf100-back {
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        z-index: 2 !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin: 0 0 22px !important;
        padding: 4px 0 !important;
        line-height: 1.5 !important;
        font-family: Poppins, sans-serif !important;
    }

    #campaignDetail .gf100-detail > .gf100-hero {
        margin-top: 0 !important;
        clear: both !important;
    }
}


/* GF_FORECAST_MOBILE_2COL_V1 */
@media (max-width:640px) {
  html[data-gf-view="forecast"] .gf-forecast-content #grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }

  .gf-forecast-content #grid > .card .card__visual {
    min-height: 65px;
    padding: 8px;
  }

  .gf-forecast-content #grid > .card
  .product-thumb.category-icon--large {
    width: 52px;
    height: 52px;
  }

  .gf-forecast-content #grid > .card
  .product-thumb--wide.category-icon--large {
    width: 68px;
    height: 52px;
  }

  .gf-forecast-content #grid > .card .card__content {
    padding: 9px;
  }

  .gf-forecast-content #grid > .card .card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }

  .gf-forecast-content #grid > .card .card__top small {
    font-size: 9px;
  }

  .gf-forecast-content #grid > .card h3 {
    font-size: 12px;
    line-height: 1.35;
    min-height: 0;
    margin: 7px 0;
    overflow-wrap: anywhere;
  }

  .gf-forecast-content #grid > .card .card__badges {
    margin-bottom: 7px;
  }

  .gf-forecast-content #grid > .card .pill {
    font-size: 9px;
    padding: 5px 6px;
    white-space: normal;
  }

  .gf-forecast-content #grid > .card .card__signal {
    padding: 7px;
    margin: 4px 0 8px;
  }

  .gf-forecast-content #grid > .card .card__signal strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .gf-forecast-content #grid > .card .card__signal span {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .gf-forecast-content #grid > .card .price-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .gf-forecast-content #grid > .card .price-row b {
    font-size: 14px;
  }

  .gf-forecast-content #grid > .card .spark {
    width: 100%;
    height: 50px;
  }
}

/* Cok dar ekranlarda okunabilirligi koru */
@media (max-width:359px) {
  html[data-gf-view="forecast"] .gf-forecast-content #grid {
    grid-template-columns: 1fr;
  }
}


/* GF_FORECAST_NO_SIDEBAR_V1 */

/* Yalnizca Tahmin Merkezi */
html[data-gf-view="forecast"] .gf-forecast-layout {
  display: block !important;
  width: min(1280px, calc(100% - 48px)) !important;
  max-width: 100% !important;
  margin: 24px auto 0 !important;
}

/* Sol kategori panelini tamamen gizle */
html[data-gf-view="forecast"] .gf-forecast-layout > .gf-sidepanel,
html[data-gf-view="forecast"] .gf-forecast-sidebar {
  display: none !important;
}

/* Urun katalogunu kalan alana yay */
html[data-gf-view="forecast"] .gf-forecast-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Ic kutularin tasmasini engelle */
html[data-gf-view="forecast"] .gf-forecast-content .shell {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* Mobilde mevcut sayfa bosluklarini koru */
@media (max-width: 850px) {
  html[data-gf-view="forecast"] .gf-forecast-layout {
    width: min(1280px, calc(100% - 48px)) !important;
  }
}
