/* =========================================
   1. ROOT VARIABLES & RESET
========================================= */
:root { 
    --main-gold: #ffb800;
    --main-gold-dark: #cc9300;
    --main-red: #d90429;
    --main-cyan: #00f3ff;
    --border-color: rgba(197, 160, 89, 0.2);
    --card-bg: rgba(15, 15, 18, 0.85);
    --nav-bg: rgba(10, 10, 12, 0.85);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background: #000 url('https://mazi2.com/maziduyuru.webp') no-repeat center center fixed;
    background-size: cover;
    color: #eee; 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;
}

body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(5,5,8,0.75) 0%, rgba(2,2,4,0.98) 100%); 
    z-index: -1;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--main-gold), var(--main-gold-dark)); border-radius: 10px; }

a { text-decoration: none; color: inherit; display: inline-block; }
button { border: none; background: none; cursor: pointer; }
ul { list-style: none; }

/* =========================================
   2. NAVBAR (Ana Sayfa İle Senkronize)
========================================= */
.nav-wrapper {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}
nav { max-width: 1200px; margin-inline: auto; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; padding-block: 8px; }
.logo > img { width: 150px; height: auto; object-fit: contain; transition: all 0.3s ease; }
.logo:hover { filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 184, 0, 0.5)); }

.links { display: flex; gap: 20px; font-size: 15px; align-items: center; font-family: "Cinzel", serif; font-weight: bold; }
.links > a { padding: 10px 15px; transition: all 0.3s ease; border-radius: 4px; position: relative; }
.links a:hover, .active-link { color: var(--main-gold); text-shadow: 0 0 10px rgba(255,184,0,0.5); }

.downloadBtn {
  background: linear-gradient(135deg, #f0d278 0%, #c49a3c 45%, #7a5010 100%);
  color: #000 !important; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 14px;
  padding: 10px 20px; border-radius: 4px; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 0 15px rgba(196, 154, 60, 0.4); transition: 0.3s;
}
.downloadBtn:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(196, 154, 60, 0.6); }

/* =========================================
   3. HERO SLIDER & FLAŞ HABER
========================================= */
.container { max-width: 1200px; margin: 100px auto 30px; padding: 0 20px; }

.hero-slider {
    height: 380px; border-radius: 12px; overflow: hidden; position: relative; 
    border: 1px solid var(--border-color); margin-bottom: 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}
.slide-bg { width: 100%; height: 100%; background: url('https://mazi2.com/maziduyuru.webp') center/cover; filter: brightness(1.3) contrast(1.1); position: absolute; }
.slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }

.slide-content { position: absolute; bottom: 40px; left: 40px; z-index: 5; right: 40px; }
.main-logo-img { max-width: 250px; margin-bottom: 10px; filter: drop-shadow(0 0 15px rgba(255, 184, 0, 0.4)); animation: float 4s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.slider-h2 { font-family: 'Cinzel', serif; font-size: 32px; color: #fff; margin: 0; text-transform: uppercase; transition: 0.5s; text-shadow: 2px 2px 15px #000; letter-spacing: 2px;}

.breaking-news {
    background: rgba(10, 10, 15, 0.8); border: 1px solid var(--border-color); backdrop-filter: blur(5px);
    display: flex; align-items: center; overflow: hidden; border-radius: 6px; margin-bottom: 30px; height: 48px; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.breaking-title { background: var(--main-red); color: #fff; padding: 0 25px; font-weight: 900; height: 100%; display: flex; align-items: center; z-index: 10; font-size: 14px; white-space: nowrap; font-family: 'Rajdhani', sans-serif; letter-spacing: 1px;}
.breaking-text-wrap { flex-grow: 1; position: relative; overflow: hidden; height: 100%; display: flex; align-items: center; }
.breaking-text { position: absolute; white-space: nowrap; font-weight: 600; animation: scrollText 25s linear infinite; padding-left: 100%; color: #f0d278; font-size: 14px;}
@keyframes scrollText { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }

/* =========================================
   4. FİLTRE PANELİ & SEKMELER
========================================= */
.filter-panel {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 15px;
    background: rgba(15, 15, 18, 0.6); backdrop-filter: blur(10px);
    padding: 15px 20px; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.tabs { display: flex; gap: 10px; overflow-x: auto; white-space: nowrap; padding-bottom: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: rgba(0,0,0,0.5); color: #aaa; border: 1px solid #333; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: 700; transition: all 0.3s ease; font-family: 'Rajdhani', sans-serif; font-size: 16px; letter-spacing: 1px; }
.tab-btn:hover { background: #222; color: #fff; }
.tab-btn.active { background: var(--main-gold); color: #000; border-color: var(--main-gold); box-shadow: 0 0 15px rgba(255,184,0,0.3); }
.date-filter-group { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.4); padding: 5px 10px; border-radius: 6px; border: 1px solid #333; }
.date-input { background: transparent; color: #fff; border: none; font-family: 'Inter', sans-serif; font-size: 13px; outline: none; padding: 5px;}
.date-input::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; opacity: 0.7; transition: 0.3s;}
.date-sep { color: var(--main-gold); font-weight: bold; }

/* =========================================
   5. HABER KARTLARI (Glassmorphism)
========================================= */
#news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card { 
    display: flex; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; backdrop-filter: blur(8px); opacity: 1;
}
.news-card.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; position: absolute; visibility: hidden; }
.news-card:hover { border-color: var(--main-gold); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 15px rgba(196, 154, 60, 0.15); }

.news-img { width: 320px; min-width: 320px; height: 200px; overflow: hidden; position: relative; }
.news-img div { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.news-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,15,18,0) 0%, rgba(15,15,18,1) 100%); }
.news-card:hover .news-img div { transform: scale(1.1) rotate(1deg); }

.news-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.news-info h3 { margin-bottom: 12px; font-family: 'Cinzel', serif; font-size: 22px; color: #fff; transition: 0.3s; }
.news-card:hover .news-info h3 { color: var(--main-gold); }
.news-info p { color: #aaa; font-size: 15px; margin-bottom: 20px; line-height: 1.6; }

.tag { padding: 5px 10px; font-size: 11px; font-weight: 800; border-radius: 4px; display: inline-block; border: 1px solid; margin-bottom: 12px; width: fit-content; text-transform: uppercase; letter-spacing: 1px;}
.tag-guncelleme { color: var(--main-cyan); border-color: rgba(0, 243, 255, 0.3); background: rgba(0, 243, 255, 0.05); }
.tag-haber { color: var(--main-gold); border-color: rgba(255, 184, 0, 0.3); background: rgba(255, 184, 0, 0.05); }
.tag-hh { color: var(--main-red); border-color: rgba(217, 4, 41, 0.3); background: rgba(217, 4, 41, 0.05); }

.date-label { font-size: 13px; color: #777; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.load-more-btn {
    display: block; margin: 40px auto; background: linear-gradient(135deg, #f0d278 0%, #c49a3c 100%); color: #000; border: none; padding: 14px 40px; 
    font-size: 16px; font-weight: 800; border-radius: 6px; cursor: pointer; transition: 0.3s; font-family: 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 2px; box-shadow: 0 5px 15px rgba(196, 154, 60, 0.3);
}
.load-more-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(196, 154, 60, 0.5); filter: brightness(1.1); }

/* =========================================
   6. HABER DETAY MODALI
========================================= */
#news-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:10000; align-items:center; justify-content:center; padding: 20px; backdrop-filter: blur(8px); }
.modal-content { background: #0f0f12; border: 1px solid var(--border-color); border-top: 4px solid var(--main-gold); width: 100%; max-width: 650px; padding: 40px; border-radius: 12px; position: relative; max-height: 85vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,0.8); }
.close-modal { position:absolute; top:20px; right:25px; color:#666; font-size:30px; cursor:pointer; transition: 0.3s; line-height: 1; }
.close-modal:hover { color: var(--main-red); transform: scale(1.1) rotate(90deg); }
.modal-h2 { font-family:'Cinzel', serif; color: var(--main-gold); margin: 15px 0; font-size: 26px; line-height: 1.3;}
.modal-divider { border: 0; border-top: 1px solid #222; margin: 20px 0; }
.modal-body-text { line-height: 1.7; color: #ccc; font-size: 15px; }
.modal-alert-box { background: rgba(0,195,255,0.05); padding: 15px; border-radius: 6px; border-left: 4px solid var(--main-cyan); margin-top: 25px; font-size: 14px;}

/* =========================================
   7. ORTAK FOOTER & SÖZLEŞME MODALLARI
========================================= */
footer {
  background: rgba(10, 10, 12, 0.95);
  border-top: 2px solid var(--border-color);
  padding: 60px 20px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  margin-top: 80px; position: relative;
}
footer::before { content:''; position: absolute; top:0; left:0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--main-gold), transparent); opacity: 0.5;}

.footerTop { display: flex; justify-content: center; gap: 80px; width: 100%; max-width: 1200px; flex-wrap: wrap; }
.footerLeft { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.logoWrapperFooter img { max-width: 200px; filter: drop-shadow(0 0 10px rgba(255,184,0,0.2)); }
.logoWrapperFooter span { font-size: 13px; color: #aaa; margin-top: 5px; display: block; text-align: center; font-family: 'Inter', sans-serif;}
.footerLeftFeatures { display: flex; gap: 10px; }
.footerLeftFeature { font-size: 13px; padding: 6px 12px; border: 1px solid rgba(196, 154, 60, 0.4); border-radius: 6px; color: #ccc;}

.menuLinks, .socialMedia { text-align: center; }
.menuLinks h4, .socialMedia h4 { font-family: "Cinzel", serif; color: var(--main-gold); margin-bottom: 15px; font-size: 20px; }
.footerMenuLinks li { margin-bottom: 10px; }
.footerMenuLinks a { color: #aaa; transition: 0.3s; font-size: 15px; }
.footerMenuLinks a:hover { color: var(--main-gold); }

.socialMediaLinks { display: flex; gap: 15px; justify-content: center; }
.socialMediaLinks a {
  font-size: 20px; color: #aaa; border: 1px solid #333; background: #111;
  border-radius: 8px; transition: 0.4s; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px;
}
.socialMediaLinks a:hover { background-color: var(--main-gold); color: #000; border-color: var(--main-gold); transform: translateY(-5px); }

.divider { width: 100%; max-width: 1200px; height: 1px; background-color: rgba(196, 154, 60, 0.2); margin: 10px 0; }
.footer-small-links { text-align: center; font-size: 13px; margin-bottom: 10px; }
.footer-small-links a { color: #888; margin: 0 5px; transition: 0.2s; }
.footer-small-links a:hover { color: var(--main-gold); }
.divider-text { color: #444; }
.copyright { text-align: center; font-size: 12px; color: #555; line-height: 1.8; }

/* Politika Modalları (KVKK, Sözleşme vs.) */
.policy-modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.policy-modal-content { background-color: #0f0f12; color: #ccc; padding: 30px; width: 90%; max-width: 700px; border-radius: 8px; border: 1px solid var(--border-color); border-top: 3px solid var(--main-gold); position: relative; max-height: 80vh; overflow-y: auto; box-shadow: 0 15px 30px rgba(0,0,0,0.8);}
.policy-modal-content h3 { color: var(--main-gold); font-family: "Cinzel", serif; border-bottom: 1px solid #222; padding-bottom: 10px; margin-bottom: 15px; font-size: 20px;}
.policy-modal-content p { margin-bottom: 15px; font-size: 14px; line-height: 1.6; }
.close-policy { position: absolute; right: 20px; top: 20px; font-size: 28px; cursor: pointer; color: #666; transition: 0.3s; line-height: 1;}
.close-policy:hover { color: var(--main-red); }

/* =========================================
   8. MOBİL NAVİGASYON (APP BAR)
========================================= */
.mazi-mobile-nav {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 65px;
  background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  display: none; grid-template-columns: repeat(3, 1fr); align-items: center; z-index: 99999;
}
.m-nav-item { display: flex; flex-direction: column; align-items: center; color: #666; gap: 5px; transition: 0.3s; }
.m-nav-item:active { transform: scale(0.9); color: var(--main-gold); }
.m-nav-item i { font-size: 18px; }
.m-nav-item span { font-size: 11px; font-weight: 700; }

.m-nav-icon-bg {
  background: linear-gradient(135deg, #b8860b 0%, #ffb800 100%);
  width: 55px; height: 55px; border-radius: 50%;
  margin-top: -30px; border: 4px solid #0a0a0a; box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
  color: #000 !important; justify-content: center; position: relative;
}
.m-nav-register { color: #fff !important; }
.m-nav-download { color: #000 !important; }

/* =========================================
   9. RESPONSIVE AYARLAR (MOBİL UYUM)
========================================= */
@media (max-width: 992px) {
  .links { display: none !important; }
  .nav-wrapper .downloadBtn { display: flex !important; padding: 8px 16px !important; font-size: 12px !important; }
  
  .mazi-mobile-nav { display: grid; } 
  footer { padding-bottom: 90px; } /* App Bar için boşluk */
  .footerTop { flex-direction: column; gap: 40px; text-align: center; align-items: center; }
  
  .filter-panel { flex-direction: column; align-items: stretch; }
  .tabs { padding-bottom: 10px; overflow-x: auto; justify-content: flex-start; }
  .tabs::-webkit-scrollbar { display: block; height: 4px; }
  .tabs::-webkit-scrollbar-track { background: #111; }
  .tabs::-webkit-scrollbar-thumb { background: var(--main-gold); border-radius: 10px; }
  .date-filter-group { width: 100%; justify-content: space-between; }
  .date-input-wrapper { width: 45%; }
  .date-input { width: 100%; }
}

@media (max-width: 768px) {
  .container { margin-top: 80px; }
  .hero-slider { height: 280px; }
  .slider-h2 { font-size: 22px; }
  .slide-content { left: 20px; bottom: 20px; right: 20px; }
  .main-logo-img { max-width: 180px; }
  
  .news-card { flex-direction: column; }
  .news-img { width: 100%; min-width: 100%; height: 200px; }
  .news-img::after { background: linear-gradient(to bottom, rgba(15,15,18,0) 0%, rgba(15,15,18,1) 100%); }
  
  .modal-content, .policy-modal-content { padding: 25px; width: 95%; }
  .modal-h2 { font-size: 20px; }
  .footer-small-links a { display: block; margin: 10px 0; }
  .divider-text { display: none; }
}

@media (max-width: 576px) {
  nav { padding-inline: 15px; }
  .logo > img { width: 130px; }
  .nav-wrapper .downloadBtn { padding: 6px 12px !important; font-size: 10px !important; letter-spacing: 0px !important; }
  
  .breaking-title { padding: 0 15px; font-size: 12px; }
  .breaking-text { font-size: 12px; }
}