/* style1.css - Sabit Header ve Modern Mobil Revizyon */

:root {
  --bg-color: #f0f2f5;
  --card-bg: #ffffff;
  --text-main: #050505;
  --text-muted: #65676b;
  --primary-color: #1877f2;
  --border-color: #ced0d4;
  --header-bg: rgba(255, 255, 255, 0.90);
}

/* =========================================================
   GENEL SIFIRLAMALAR VE TYPOGRAPHY
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

@font-face { font-family: uygaria; src: url('uygaria.otf'); }
@font-face { font-family: uygaria2; src: url('uygaria2.otf'); }

body {
  font-family: uygaria, sans-serif;
  min-height: 100vh; 
  /* Header sabit (fixed) olduğu için içeriği aşağı itiyoruz */
  padding-top: 75px; 
  padding-bottom: calc(60px + env(safe-area-inset-bottom)); 
  font-size: 16px;
  color: var(--text-main);
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
.clearfix { clear: both; }
hr { border: none; border-top: 1px solid var(--border-color); margin: 15px auto; width: 90%; }

/* =========================================================
   SİSTEM GENELİ MERKEZLEME (600px MOBİL APP GÖRÜNÜMÜ)
   ========================================================= */
.header-kapsayici,
.footeriskelet {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.iskeletkutu, 
.mesaj, 
.arkaplanli, 
.ortakutuuyari {
    width: calc(100% - 20px); 
    max-width: 600px;
    margin-left: auto; 
    margin-right: auto;
}

/* =========================================================
   HEADER (ÜST BAR) - TAM SABİT VE KOMPAKT
   ========================================================= */
.header-kapsayici {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-radius: 0 0 16px 16px;
    padding: 12px 15px;
}

.header-ust-sira {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-butonlar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-giris-alani {
    width: 100%;
}

.header-giris-alani .iskeletkutu {
    margin-top: 0px; /* Üstteki logoya yapışmasını sağlar */
    margin-bottom: 0px; /* Header'ın altında ekstra boşluk kalmasını engeller */
    box-shadow: none; /* Opsiyonel: Header içinde daha temiz görünmesi için gölgeyi kaldırır */
    border: none; /* Opsiyonel: Kutunun kendi kenarlığını gizler */
}

/* =========================================================
   DİKEY AÇILIR MENÜ (SAYFAYI BOZMADAN AŞAĞI DOĞRU)
   ========================================================= */
.acilirMenu { 
    display: none; 
    background: var(--card-bg); 
    border-radius: 12px; 
    padding: 6px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
    border: 1px solid var(--border-color); 
    animation: fadeIn 0.2s ease-out; 
    position: absolute; 
    top: calc(100% + 5px); 
    right: 15px; 
    min-width: 160px; 
    z-index: 1100; 
    flex-direction: column; 
    gap: 4px; 
}

.acilirMenu[style*="display: none"] { display: none !important; }
.acilirMenu[style*="display: flex"] { display: flex !important; }

.acilirMenu .abutton { 
    width: 100%; 
    text-align: left; 
    justify-content: flex-start; 
    border: none; 
    box-shadow: none;
    border-radius: 8px;
    padding: 10px 12px;
}

/* =========================================================
   FOOTER (ALT MENÜ BAR)
   ========================================================= */
.footeriskelet {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  position: fixed;
  bottom: 0; 
  left: 0; 
  right: 0;
  z-index: 120;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.footer-menu { display: flex; justify-content: space-around; align-items: center; height: 60px; }
.footer-menu-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 11px; font-weight: 500; gap: 4px; height: 100%; transition: color 0.2s; }
.footer-menu-item:hover, .footer-menu-item:active { color: var(--primary-color); }
.footer-menu-item i { font-size: 20px; margin-bottom: 2px; }

/* =========================================================
   KARTLAR VE BUTONLAR
   ========================================================= */
.iskeletkutu, .uygarkutu, .mesajkutusu {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 15px;
  margin-top: 12px; 
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

.abutton {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-family: uygaria, sans-serif;
  font-size: 14px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-weight: 500;
  transition: transform 0.1s, box-shadow 0.2s;
}
.abutton:hover { background-color: #f7f8fa; }

/* FORM ELEMANLARI */
input, select, textarea {
  border-radius: 10px;
  background-color: #f0f2f5;
  color: var(--text-main);
  font-family: uygaria, sans-serif;
  font-size: 15px;
  padding: 10px 14px;
  width: 100%;
  border: 1px solid transparent;
  margin-bottom: 8px;
  outline: none;
}
input:focus { border-color: var(--primary-color); background-color: #fff; }
input[type="submit"] { background-color: var(--text-main); color: #fff; font-weight: bold; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.yanipson { animation: yanip 1.5s infinite alternate; }
@keyframes yanip { from { background-color: var(--card-bg); } to { background-color: #ff3b30; color: white; } }