*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f6f8;color:#17202a}

header{
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
  color:#fff;
  padding:38px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}

header small{
  display:inline-block;
  background:rgba(255,255,255,.14);
  padding:7px 10px;
  border-radius:999px;
  margin-bottom:12px
}

header h1{margin:0;font-size:38px;line-height:1.12}
header p{margin:10px 0 0;color:#dbeafe}

header > span{
  background:rgba(255,255,255,.14);
  padding:10px 14px;
  border-radius:999px;
  white-space:nowrap
}

header > div::before{display:none}

nav{
  position:sticky;
  top:0;
  z-index:30;
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
  padding:14px 8%;
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  align-items:center;
  overflow:visible;
  box-shadow:0 8px 22px rgba(15,23,42,.1)
}
nav::before{
  content:"";
  display:flex;
  align-items:center;
  flex:0 0 38px;
  width:38px;
  min-height:38px;
  margin-right:auto;
  padding-left:0;
  color:#fff;
  font-weight:900;
  background:#fff url("https://mustafabarak.com.tr/images/logo.png?v=20260524") center/30px 30px no-repeat;
  border-radius:10px;
  white-space:nowrap
}

nav a{
  text-decoration:none;
  color:#0f172a;
  background:#eef2ff;
  border:1px solid #dbeafe;
  padding:8px 11px;
  border-radius:999px;
  white-space:nowrap;
  font-weight:700;
  font-size:14px;
  line-height:1.1
}

nav a:hover{background:#dbeafe;color:#0f172a}

.nav-more{position:relative}
.nav-more summary{
  list-style:none;
  text-decoration:none;
  color:#0f172a;
  background:#eef2ff;
  border:1px solid #dbeafe;
  padding:8px 11px;
  border-radius:999px;
  white-space:nowrap;
  font-weight:700;
  font-size:14px;
  line-height:1.1;
  cursor:pointer
}
.nav-more summary::-webkit-details-marker{display:none}
.nav-more summary::after{content:"";display:inline-block;margin-left:8px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;vertical-align:middle}
.nav-more-menu{display:none;position:absolute;top:calc(100% + 24px);right:0;min-width:220px;padding:8px;border:1px solid #dbeafe;border-radius:14px;background:#fff;box-shadow:0 18px 36px rgba(15,23,42,.16);z-index:80}
.nav-more[open] .nav-more-menu{display:grid;gap:8px}
.nav-more-menu a{display:flex;justify-content:flex-start}

.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:36px;
  padding:7px 11px;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eef2ff;
  color:#0f172a;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}

.menu-toggle span:first-child{font-size:20px;line-height:1}

main{padding:30px 8%}

.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:12px 0 18px
}

.section-title h2{margin:0;font-size:30px}
.section-title p{margin:0;color:#64748b;text-align:right}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px
}

.card{
  background:#fff;
  border-radius:18px;
  padding:22px;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  border:1px solid #e5e7eb
}

.card h3{margin:0;font-size:26px;line-height:1.15}
.card p{color:#64748b;min-height:44px}
.card small{display:block;margin-top:12px;color:#94a3b8}

.metal{
  border-color:#f8d56b;
  background:linear-gradient(180deg,#fff,#fffaf0)
}

.rate{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid #e5e7eb;
  padding-top:12px;
  margin-top:12px
}

.rate span{color:#64748b}
.rate strong{font-size:18px;text-align:right}

.loading,.warning{
  background:#fff4d6;
  border:1px solid #facc15;
  padding:16px;
  border-radius:14px;
  grid-column:1/-1
}

.info-box{
  margin-top:16px;
  background:#eef6ff;
  border:1px solid #bfdbfe;
  padding:14px 16px;
  border-radius:14px;
  color:#334155
}

.news{margin-top:42px}

.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px
}

article{
  background:#fff;
  border-radius:16px;
  padding:20px;
  box-shadow:0 12px 30px rgba(15,23,42,.07);
  border:1px solid #e5e7eb
}

article span{
  display:inline-block;
  background:#e0ecff;
  color:#1d4ed8;
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
  font-weight:700
}

article h3{font-size:18px;line-height:1.35}

article a{
  text-decoration:none;
  color:#0f172a
}

article a:hover{text-decoration:underline}
article p{color:#64748b}

.sources{
  margin-top:42px;
  background:#fff;
  border-radius:18px;
  padding:24px;
  border:1px solid #e5e7eb
}

.source-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px
}

.source-list a{
  background:#f1f5f9;
  color:#0f172a;
  text-decoration:none;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid #e2e8f0
}

footer{
  text-align:center;
  padding:26px;
  color:#64748b
}

@media(max-width:700px){
  header{
    position:sticky;
    top:0;
    z-index:40;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:10px 12px;
    padding:5px 14px;
  }
  header > div{
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-width:0;
  }
  header > div::before{
    content:"";
    display:block;
    grid-row:1 / 3;
    width:38px;
    height:38px;
    border-radius:8px;
    background:#fff url("https://mustafabarak.com.tr/images/logo.png?v=20260524") center/30px 30px no-repeat;
    box-shadow:0 8px 18px rgba(15,23,42,.14);
  }
  header small{padding:0;background:transparent;font-size:11px;color:#dbeafe;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  header h1{font-size:16px;line-height:1.15;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  header small,header h1{grid-column:2;min-width:0}
  header p{display:none}
  header > span{display:none}
  .menu-toggle{display:flex;grid-column:2;grid-row:1;justify-self:end}
  nav{display:none;position:fixed;top:65px;left:14px;right:14px;z-index:39;padding:8px;gap:8px;overflow:visible}
  nav::before{display:none}
  nav.is-open{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border:1px solid #dbeafe;
    border-radius:14px;
    background:#fff;
    box-shadow:0 18px 36px rgba(15,23,42,.16)
  }
  nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    font-size:12px;
    padding:7px 9px;
    text-align:center
  }
  nav.is-open .nav-more{grid-column:1 / -1;width:100%}
  nav.is-open .nav-more summary{display:flex;align-items:center;justify-content:center;min-height:38px;font-size:12px;padding:7px 9px}
  nav.is-open .nav-more-menu{position:static;min-width:0;box-shadow:none;border:0;background:transparent;padding:8px 0 0}
  nav.is-open .nav-more[open] .nav-more-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}

  .section-title{display:block}
  .section-title p{text-align:left;margin-top:6px}

  main{padding:24px 6%}
}
