/* ======================================
   ROOT VARIABLES
====================================== */

:root{
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:40px;

  --radius-lg:22px;
  --radius-md:16px;

  --primary:#1f6fd1;
  --dark:#0e3b6f;
  --bg:#f4f7fb;
}

/* ======================================
   BASE
====================================== */

*{box-sizing:border-box;}

body{
  background:var(--bg);
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ======================================
   CONTAINER
====================================== */

.page-wrapper{
  width:100%;
  padding-bottom:120px;
}

@media(min-width:1024px){
  body{
    display:flex;
    justify-content:center;
  }
  .page-wrapper{
    max-width:1180px;
    width:100%;
    padding-bottom:0;
  }
}

/* ======================================
   HEADER
====================================== */

.top-header{
  position:sticky;
  top:0;
  background:linear-gradient(135deg,#1f6fd1,#0e4fa8);
  color:#fff;
  padding:var(--space-md);
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
  z-index:500;
}

.header-title{font-size:18px;font-weight:800;}
.header-sub{font-size:13px;opacity:.85;}

/* ======================================
   SIDE MENU (PRO DRAWER)
====================================== */

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
  opacity:0;
  visibility:hidden;
  transition:.35s ease;
  z-index:900;
}

.overlay.active{
  opacity:1;
  visibility:visible;
}

.side-menu{
  position:fixed;
  top:0;
  left:-320px;
  width:300px;
  height:100%;
  background:linear-gradient(180deg,#ffffff,#f4f7fb);
  padding:24px;
  transition:.35s cubic-bezier(.4,0,.2,1);
  z-index:1000;
  box-shadow:8px 0 30px rgba(0,0,0,.15);
  display:flex;
  flex-direction:column;
}

.side-menu.active{
  left:0;
}

/* HEADER */

.side-menu-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}

.side-menu-header h2{
  font-size:18px;
  font-weight:800;
  color:var(--dark);
}

#closeMenu{
  font-size:20px;
  cursor:pointer;
  color:#444;
  transition:.2s ease;
}

#closeMenu:hover{
  transform:rotate(90deg);
  color:var(--primary);
}

/* MENU LINKS */

.side-menu ul{
  list-style:none;
  padding:0;
  margin:0;
}

.side-menu li{
  margin-bottom:12px;
}

.side-menu a{
  display:flex;
  align-items:center;
  padding:14px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  color:#1b2b45;
  background:#fff;
  box-shadow:0 5px 15px rgba(0,0,0,.05);
  transition:.25s ease;
}

.side-menu a:hover{
  background:linear-gradient(135deg,#1f6fd1,#0e4fa8);
  color:#fff;
  transform:translateX(4px);
}

/* Optional subtle divider */

.side-menu::after{
  content:"";
  margin-top:auto;
  height:1px;
  background:rgba(0,0,0,.05);
}

/* ======================================
   HERO SLIDER
====================================== */

.hero-slider{
  position:relative;
  margin:var(--space-md);
  border-radius:var(--radius-lg);
  overflow:hidden;
  height:240px; /* KRİTİK EKLENDİ */
}

@media(min-width:768px){
  .hero-slider{
    height:320px;
  }
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .8s ease;
}

.hero-slide.active{
  opacity:1;
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-overlay{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:20px;
  background:linear-gradient(to top,rgba(0,0,0,.8),transparent);
  color:#fff;
}

/* ======================================
   NEWS SLIDER
====================================== */

.news{margin:var(--space-md);}

.news-bar{
  background:var(--dark);
  color:#fff;
  padding:12px 16px;
  border-radius:var(--radius-md);
  font-weight:800;
  margin-bottom:var(--space-sm);
}

.news-slider{
  overflow:hidden;
}

.news-track{
  display:flex;
  gap:16px;
  transition:transform .4s ease;
}

/* Mobil: Manuel Swipe */

@media(max-width:1023px){

  .news-slider{
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }

  .news-track{
    flex-wrap:nowrap;
  }

  .news-card{
    min-width:85%;
    scroll-snap-align:start;
    flex:0 0 auto;
  }
}

/* Desktop: Otomatik */

@media(min-width:1024px){
  .news-card{
    min-width:320px;
    flex:0 0 auto;
  }
}

.news-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}

.news-card img{
  width:100%;
  height:150px;
  object-fit:cover;
  display:block;
}

.news-card .content{
  padding:12px;
  font-weight:700;
}

/* ======================================
   EVENT
====================================== */

.event-countdown{
  margin:var(--space-md);
  background:linear-gradient(135deg,#00b4db,#0066ff);
  padding:var(--space-md);
  border-radius:var(--radius-lg);
  color:#fff;
}

.event-header{font-weight:800;margin-bottom:var(--space-sm);}

.event-timer{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:var(--space-sm);
}

.time-box{
  background:rgba(255,255,255,.2);
  padding:10px;
  border-radius:var(--radius-md);
  text-align:center;
  font-size:13px;
}

.time-box span{
  display:block;
  font-weight:800;
  font-size:16px;
}

.weather-currency{
  background:rgba(255,255,255,.2);
  padding:12px;
  border-radius:var(--radius-md);
}

.weather-row,
.currency-row{
  display:flex;
  justify-content:space-between;
  font-weight:700;
  font-size:14px;
}

/* ======================================
   QUICK GRID
====================================== */

.quick-grid{
  margin:var(--space-md);
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-sm);
}

.quick-card{
  background:#fff;
  border-radius:var(--radius-md);
  padding:var(--space-md);
  text-align:center;
  font-weight:800;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  transition:.2s ease;
}

.quick-card:hover{transform:translateY(-3px);}
.quick-card i{
  display:block;
  font-size:22px;
  margin-bottom:8px;
  color:var(--primary);
}

/* ======================================
   MODERN FOOTER NAV
====================================== */

.app-footer-nav{
  position:fixed;
  bottom:15px;
  left:50%;
  transform:translateX(-50%);
  width:95%;
  max-width:520px;
  height:85px;
  background:linear-gradient(145deg,#1a2f4f,#0f1f38);
  border-radius:42px;
  display:grid;
  grid-template-columns:1fr 1fr 1.4fr 1fr 1fr;
  align-items:center;
  padding:0 10px;
  box-shadow:0 25px 60px rgba(0,0,0,.45);
  z-index:2000;
}

.nav-item-modern{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  font-weight:700;
  color:rgba(255,255,255,0.7);
  text-decoration:none;
}

.icon-wrap{
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.08);
}

.nav-item-modern.active{color:#fff;}

.nav-item-modern.active .icon-wrap{
  background:rgba(0,210,255,0.2);
  box-shadow:0 0 18px rgba(0,210,255,.45);
}

.nav-center-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  top:-22px;
  text-decoration:none;
  color:#fff;
}

.nav-center{
  width:76px;
  height:76px;
  border-radius:50%;
  background:linear-gradient(135deg,#00c2ff,#0066ff);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 25px 60px rgba(0,0,0,.55);
}

.nav-center-label{
  margin-top:6px;
  font-size:.78rem;
  font-weight:700;
  color:#fff;
}

@media(min-width:1024px){
  .app-footer-nav{display:none;}
}