/* Sponsorlar.css - full stylesheet with mobile tweaks
   Updated: header/logo responsive fixes
   - Logo is absolutely centered only on wider screens.
   - On tablet/phone the logo becomes part of the normal flow (no absolute) so it doesn't overlap nav or content.
   - Left nav is hidden on small screens and right-actions remain visible and responsive.
   - Buttons shrink slightly on mobile to prevent overflow.
*/

/* Global / Variables */
:root{
  --bg-main: #071533;
  --panel: #030423;
  --accent: #f6fd16;
  --muted: #c3c3c3;
  --cta-text: #000027;
  --glass: rgba(77,77,82,0.95);
  --card-border: rgba(246,253,22,0.15);
  --text: #e9eefb;
  --muted-text: #9aa0c9;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset and container */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: var(--bg-main);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Simple responsive container */
.container{
  width: calc(100% - 64px);
  max-width: 1280px;
  margin: 0 auto;
}

/* HEADER */
.site-header{
  background: var(--panel);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: sticky;
  top:0;
  z-index: 50;
}

/* header-inner is the flex container; relative so logo can be absolute on wide screens */
.header-inner{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px 0;
}

/* left and right are flexible columns */
.left-nav{
  display:flex;
  gap:22px;
  align-items:center;
  justify-content:flex-start;
  flex: 1 1 0;
  overflow: visible;
}
.nav-link{
  color:var(--muted-text);
  text-decoration:none;
  font-weight:600;
  padding:6px 8px;
  border-radius:6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link.active, .nav-link:hover{ color: #ffffff; }

/* Default (DESKTOP): Center the logo absolutely so it's visually centered in header */
.logo{
  /* We'll apply absolute centering on screens >=1001px via media query below */
  display:block;
  transition: transform .15s ease;
  z-index: 60;
}
.logo img{
  width:74px;
  height:66px;
  object-fit:cover;
  border-radius: 17px / 12px;
  display:block;
  margin:0;
  transition: border-radius .15s ease, width .15s ease, height .15s ease;
}

/* Right actions / buttons */
.right-actions{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
  flex: 0 0 auto;
}
.btn{
  font-weight:700;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  border: none;
  background:linear-gradient(180deg,#6b84ff,#4255ff);
  color:white;
  box-shadow: 0 6px 18px rgba(66,85,255,0.18);
  white-space: nowrap;
}
.btn-outline{
  background: linear-gradient(180deg,#3f58a8,#192663);
  padding:8px 14px;
  border-radius:10px;
}

/* HERO / CAROUSEL SECTION */
.hero{
  margin-top: 20px;
  padding: 8px 0 8px;
}
.carousel{
  position:relative;
  background: transparent;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:8px;
}
.carousel-track{
  display:flex;
  gap:0;
  width:100%;
  height:auto;
  align-items:center;
  transition: transform .6s cubic-bezier(.22,.9,.36,1);
  will-change: transform;
}
.carousel-slide{
  flex: 0 0 100%;
  width:100%;
  max-width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  height:auto;
  box-sizing:border-box;
  padding: 0;
  overflow: hidden;
}
.carousel-slide > a{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
  overflow:hidden;
}
.carousel-slide img{
  width:100%;
  height:auto;
  max-width:100%;
  max-height:320px;
  object-fit:contain;
  cursor:pointer;
  display:block;
  border-radius:0;
  transition: transform .18s ease;
}
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background: rgba(0,0,0,0.5);
  border:none;
  color:white;
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:40;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-weight:700;
  line-height:1;
  font-size:18px;
}
.carousel-btn.prev{ left:12px; }
.carousel-btn.next{ right:12px; }
.carousel-indicators{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:30;
  padding:0;
  align-items:center;
}
.carousel-indicators button{
  width:10px;
  height:10px;
  background:rgba(255,255,255,0.12);
  border:none;
  border-radius:50%;
  cursor:pointer;
  padding:0;
  transition: background .15s, transform .12s;
}
.carousel-indicators button:hover{ transform: scale(1.15); }
.carousel-indicators button.active{
  background: rgba(140,170,255,0.95);
  box-shadow: 0 0 6px rgba(140,170,255,0.25);
}

/* ARAMA ALANI */
.search-bar-container{ display:flex; justify-content:center; align-items:center; margin: 12px 0; position:relative; overflow: visible; }
.search-inner{ position:relative; width: 420px; max-width: calc(100% - 48px); display:block; }
.search-bar-input{ width:100%; padding:12px 52px 12px 18px; border-radius:28px; border:none; background: var(--glass); color:var(--muted-text); font-size:18px; outline:none; box-shadow: 0 4px 18px 0 rgba(80,120,255,0.06); display:block; }
.search-icon{ position:absolute; right:14px; top:50%; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; width:34px; height:34px; background:transparent; border:none; cursor:pointer; padding:0; z-index:3; color: #8caaff; pointer-events:auto; }
.search-icon svg{ display:block; pointer-events:none; width:20px; height:20px; }

/* CARDS GRID */
.cards-section{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 12px 0 80px;
  align-items:start;
  position:relative;
  background: transparent;
  justify-items: stretch;
  width: 100%;
}
.s-card{
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(2,4,30,0.6));
  border-radius: 14px;
  padding: 22px 18px;
  text-align:center;
  border: 2px solid rgba(246,253,22,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  transition: opacity .18s ease, transform .18s ease;
  width: 100%;
  box-sizing: border-box;
}
.s-card.hidden{ opacity:0; transform:scale(.995); pointer-events:none; height:0; padding:0; margin:0; border:none; overflow:hidden; min-height:0; }
.s-logo{ max-width:200px; max-height:70px; object-fit:contain; display:block; margin:4px auto; }
.s-amount{ font-size:20px; margin:4px 0 0; font-weight:900; color:var(--muted); line-height:1.1; }
.s-title{ font-weight:900; font-size:16px; color:#00f0d6; margin:2px 0 0; line-height:1.1; }
.s-desc{ font-size:13px; color:var(--muted-text); margin:6px 0; line-height:1.2; }
.cta{ margin-top:auto; display:inline-block; background:var(--muted); color:var(--cta-text); padding:10px 36px; border-radius:24px; font-weight:800; text-decoration:none; box-shadow: 2px 2px 8px rgba(128,128,128,0.25); }
.cta:hover{ box-shadow: 2px 6px 18px rgba(0,0,0,0.45) }

/* FOOTER - Düzenlendi: daha temiz, kolon bazlı ve mobil uyum */
.site-footer{
  position: relative;
  padding: 32px 0;
  box-sizing: border-box;
  background: transparent;
  margin: 0;
  overflow: visible;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.4;
}
.site-footer::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:100vw;
  transform:translateX(-50%);
  background:var(--panel);
  z-index:0;
  pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.site-footer .container{
  position: relative;
  z-index: 1;
  background: transparent;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing:border-box;
}
.footer-inner{
  display:flex;
  gap:24px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer-left{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width: 220px;
  max-width: 420px;
}
.footer-logo{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:10px;
  flex: 0 0 64px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.footer-left .brand{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.footer-left .brand .title{
  font-weight:800;
  color:var(--text);
  font-size:16px;
}
.footer-left .brand .tagline{
  color:var(--muted-text);
  font-size:13px;
}
.footer-columns{
  display:flex;
  gap:28px;
  align-items:flex-start;
  flex: 1 1 auto;
  flex-wrap:wrap;
}
.footer-col{
  min-width:140px;
  max-width:220px;
}
.footer-col h4{
  margin:0 0 8px 0;
  color:var(--text);
  font-size:14px;
  font-weight:700;
}
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.footer-links a{
  color:var(--muted-text);
  text-decoration:none;
  font-weight:600;
  transition: color .12s, transform .12s;
}
.footer-links a:hover{ color: #cfe0ff; transform: translateX(2px); }
.footer-right{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
  min-width:200px;
}
.footer-right .socials{ display:flex; gap:8px; align-items:center; }
.footer-right .socials a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:8px;
  background: rgba(255,255,255,0.02);
  color: var(--muted-text);
  text-decoration:none;
  transition: background .12s, transform .12s;
}
.footer-right .socials a:hover{ background: rgba(140,170,255,0.12); transform: translateY(-2px); color: var(--text); }
.footer-meta{
  color:var(--muted-text);
  font-size:13px;
  text-align:right;
}

/* small screen footer stacking */
@media (max-width:768px){
  .footer-inner{ gap:16px; align-items:center; }
  .footer-left{ min-width:unset; justify-content:center; text-align:center; }
  .footer-left .brand{ align-items:center; }
  .footer-columns{ justify-content:center; gap:18px; }
  .footer-right{ align-items:center; text-align:center; min-width:unset; }
  .footer-meta{ text-align:center; }
}

/* Responsive tweaks */
/* DESKTOP: absolute logo centering applied for wide screens */
@media (min-width:1001px){
  .logo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* <=1200 */
@media (max-width:1200px){
  .container{ max-width:940px; }
  .carousel-slide img{ max-height: 280px; width:100%; height:auto; object-fit:contain; }
  .cards-section{ grid-template-columns: repeat(3, 1fr); }
  .search-inner{ width: 380px; max-width: calc(100% - 48px); }
}

/* TABLET / SMALL DESKTOP <=1000:
   - hide left navigation and make logo part of flow (static) so it won't overlap
   - keep right actions visible; shrink spacing
*/
@media (max-width:1000px){
  .header-inner{ padding:10px 0; }
  .left-nav{ display:none !important; } /* force hide nav to avoid overflow on narrower widths */
  .right-actions{ gap:8px; }
  .carousel-track{ height:auto; }
  .carousel-slide img{ width:100%; height:auto; max-height:none; object-fit:contain; display:block; }
  .search-inner{ width: calc(100% - 48px); max-width: none; }
  .search-bar-input{ width:100%; padding-right:52px; }
  .cards-section{ gap:16px; }

  /* Make logo non-absolute so it doesn't cover other header elements (if previously absolute) */
  .logo{
    position: static !important;
    transform: none !important;
    margin: 0 auto;
    order: 0;
  }
}

/* <=992 */
@media (max-width:992px){
  .container{ max-width:720px; }
  .carousel-slide img{ max-height: 240px; width:100%; height:auto; border-radius:12px; }
  .cards-section{ grid-template-columns: repeat(2, 1fr); gap:18px; }
  .search-inner{ width: 320px; max-width: calc(100% - 40px); }
}

/* <=575 (mobile) - updated: stacked/compact header and buttons fit */
@media (max-width:575px){
  /* Container: full width and small padding */
  .container{
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* header: keep padding small and place logo inline */
  .header-inner{
    padding-left: 12px;
    padding-right: 12px;
    align-items: center;
    gap: 10px;
  }

  /* explicitly hide left nav to ensure no overlap */
  .left-nav{ display:none !important; }

  /* Ensure logo is in-flow and centered within header area (not absolute) */
  .logo{
    position: static !important;
    /* nudge right by 35px on mobile per request */
    transform: translateX(35px) !important;
    display: inline-block !important;
    margin: 0 auto 0 0; /* keep logo visually at left-of-center if you prefer; change to margin: 0 auto; to truly center */
    order: 0;
  }
  /* If you prefer logo fully centered and buttons in a row under/above, set margin:0 auto; above instead. */

  .logo img{
    width:56px;
    height:50px;
    display: block !important;
    transform: translateX(0) !important;
  }

  /* Buttons: reduce padding so they fit on one line on small screens */
  .btn{ padding:8px 10px; font-size:13px; }
  .btn-outline{ padding:6px 10px; font-size:13px; }

  /* Make right-actions shrink if necessary and not overflow */
  .right-actions{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:nowrap;
    overflow: visible;
  }

  /* CARDS: two columns, centered items, cards have max width and are centered */
  .cards-section{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 6px 60px;
    width: 100%;
    justify-items: center; /* centers the card inside its grid cell */
    align-items: start;
  }
  .s-card{
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(246,253,22,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    gap:6px;
    min-height: 140px;
    max-width: 340px; /* limit card width so they don't stretch too wide */
    width: 100%;
    margin: 0 auto; /* ensure card is centered in the cell */
  }
  .s-logo{ max-width: 140px; max-height: 56px; margin: 6px auto 4px; }
  .s-amount{ font-size:16px; margin:2px 0 0; font-weight:900; color:var(--muted); line-height:1.05; }
  .s-title{ font-weight:900; font-size:14px; color:#00f0d6; margin:2px 0 0; line-height:1.05; }
  .s-desc{ font-size:12px; color:var(--muted-text); margin:6px 0; line-height:1.1; max-height: 44px; overflow: hidden; }
  .cta{ padding:8px 20px; border-radius:20px; font-size:13px; }

  /* Carousel adjustments */
  .carousel-track{ height: auto !important; margin-bottom: 8px; }
  .carousel-slide img{ width:100% !important; height:auto !important; max-height: 160px !important; object-fit:contain !important; display:block; margin: 0 auto; border-radius:0 !important; }
  .carousel{ overflow:hidden !important; border-radius:14px !important; }
  .carousel-btn{ width:36px !important; height:36px !important; font-size:14px !important; box-shadow: 0 2px 6px rgba(0,0,0,0.45) !important; }
  .carousel-btn.prev{ left: 8px !important; }
  .carousel-btn.next{ right: 8px !important; }
  .carousel-btn.prev, .carousel-btn.next{ top: 50% !important; transform: translateY(-50%) !important; }
  .carousel-indicators{ bottom:10px; gap:6px; }
  .carousel-indicators button{ width:9px; height:9px; border-radius:50%; }

  /* FOOTER: stacked and centered */
  .site-footer{ padding: 18px 0; }
  .footer-inner{
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }
  .footer-left{
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:center;
    min-width: 0;
  }
  .footer-logo{
    width:48px;
    height:48px;
    flex:0 0 48px;
  }
  .footer-left .copyright{
    margin:0;
    font-size:13px;
    color:var(--muted-text);
    white-space:normal;
    text-align:center;
  }
  .footer-columns{ display:none; }
  .footer-right{
    align-items:center;
    justify-content:center;
    text-align:center;
  }
  .footer-right .provided{
    font-size:13px;
    color:var(--muted-text);
    white-space:normal;
    max-width: 100%;
    margin: 0;
    word-break: break-word;
  }
  .footer-meta{ font-size:12px; text-align:center; }
  .footer-right .socials a{ width:32px; height:32px; border-radius:6px; }
}

/* small visual polish */
.carousel-slide:hover img{ transform: scale(1.01); }

/* Optional safety: if you still get horizontal scroll on very small screens, uncomment below:
html,body{ overflow-x:hidden; } */