/* Jurisay Skeleton UI */
:root{
  --bg:#0b0f1a;
  --pill:#f2f5ff;
  --pillText:#0c1b44;
  --accent:#2e5bff;
  --card:#ffffff;
  --muted:#6b7280;
  --shadow: 0 18px 40px rgba(0,0,0,.25);
  --radius: 14px;
  --radius2: 18px;
  --pageBg:#0a0d12;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: #f9fafb;
  color:#1a1a1a;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:24px;
  padding:20px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  overflow:visible;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
  will-change: transform; /* Performance için */
  pointer-events: auto; /* Tıklanabilir olduğundan emin ol */
}

/* Scroll durduğunda smooth transition için */
.topbar.scrolled {
  transition: transform 0.3s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header scroll durumları */
.topbar.scrolled {
  background: #5d6f8f; /* Mavi yoğunluklu ama yumuşak gümüş karışımlı mavi (göz yormayan) */
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* .topbar.hidden artık kullanılmıyor, JavaScript ile dinamik transform kullanılıyor */

/* Scroll yapıldığında yazılar beyaz */
.topbar.scrolled .nav-link {
  color: #ffffff;
}

.topbar.scrolled .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.topbar.scrolled .nav-link.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.topbar.scrolled .brand-logo-text {
  color: #ffffff;
}

.topbar.scrolled .brand-sub {
  color: rgba(255, 255, 255, 0.8);
}

.topbar.scrolled .logo-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.topbar.scrolled .logo-icon svg path,
.topbar.scrolled .logo-icon svg circle {
  stroke: #ffffff;
  fill: #ffffff;
}

.topbar.scrolled .nav-drop .caret {
  color: #ffffff;
}

/* Profile dropdown scroll durumunda */
.topbar.scrolled .profile-avatar {
  border-color: rgba(255, 255, 255, 0.3);
}

.topbar.scrolled .profile-initials {
  color: #1a237e;
  background: rgba(255, 255, 255, 0.9);
}

.topbar.scrolled .profile-icon:hover .profile-avatar {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

/* Giriş / Kayıt linki scroll durumunda */
.topbar.scrolled .nav-right .nav-link {
  color: #ffffff;
}

.topbar.scrolled .nav-right .nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.brand{
  display:flex;
  align-items:center;
  gap:0;
  min-width:220px;
  cursor:pointer;
  transition: all 0.3s ease;
}
.brand:hover{
  transform: translateY(-1px);
}
.brand-logo{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border-radius: 10px;
  padding: 8px;
}
.logo-icon svg{
  width:100%;
  height:100%;
  transition: all 0.3s ease;
}
.brand:hover .logo-icon{
  transform: scale(1.05) rotate(-2deg);
  background: linear-gradient(135deg, #c5cae9 0%, #9fa8da 100%);
  box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}
.brand:hover .logo-icon svg path,
.brand:hover .logo-icon svg circle{
  stroke: #1a237e;
  fill: #1a237e;
}
.brand-text-wrapper{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand-logo-text{
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: #1a237e;
  line-height: 1.1;
  margin:0;
  transition: color 0.3s ease;
}
.brand:hover .brand-logo-text{
  color: #283593;
}
.brand-sub{
  font-size:10px;
  color:#6b7280;
  font-weight:500;
  line-height:1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin:0;
  transition: color 0.3s ease;
}
.brand:hover .brand-sub{
  color:#9ca3af;
}
.brand-name{
  font-weight:700;
  font-size:16px;
  letter-spacing:0.3px;
  color:#1a1a1a;
  line-height:1.2;
}

.nav{
  display:flex;
  gap:32px;
  flex:1;
  align-items:center;
  min-width:0;
  overflow:hidden;
}
.nav-link{
  border:0;
  background: transparent;
  color: #6b7280;
  padding:8px 0;
  cursor:pointer;
  font-weight:500;
  font-size:15px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  position: relative;
  border-bottom: 2px solid transparent;
  pointer-events: auto; /* Tıklanabilir olduğundan emin ol */
}
.nav-link:hover{
  color: #1a1a1a;
}
.nav-link.active{
  color: #1a1a1a;
  font-weight: 600;
  border-bottom-color: #1a1a1a;
}
.nav-drop .caret{
  font-size:10px;
  opacity:0.6;
  margin-left:4px;
  transition: transform 0.2s ease;
}
.nav-drop:hover .caret,
.nav-drop.active .caret{
  opacity:1;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  margin-left:auto;
}
.user-pill{
  display:flex;
  align-items:center;
  gap:8px;
  background: var(--pill);
  color: var(--pillText);
  padding:10px 16px;
  border-radius: 12px;
  font-size:14px;
  font-weight:600;
  border:0;
  font-family: inherit;
}
.user-dot{
  width:8px;
  height:8px;
  border-radius:99px;
  background:#6ee7b7;
  flex-shrink:0;
}
.user-pill .plan{
  opacity:0.75;
  font-weight:500;
}

.profile-dropdown-wrapper{
  position: relative;
  flex-shrink: 0;
}
.profile-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.profile-icon:hover{
  transform: translateY(-2px);
}
.profile-avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e5bff, #9fb5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}
.profile-avatar[style*="background-image"] {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.profile-avatar[style*="background-image"] .profile-initials {
  display: none;
}
.profile-icon:hover .profile-avatar{
  box-shadow: 0 6px 16px rgba(46, 91, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}
.profile-initials{
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.profile-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border: 1px solid #e5e7eb;
}
.profile-dropdown[aria-hidden="false"]{
  display: flex;
}
.profile-dropdown-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}
.profile-dropdown-item:hover{
  background: #f3f4f6;
}
.profile-dropdown-item-danger{
  color: #ef4444;
}
.profile-dropdown-item-danger:hover{
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.profile-dropdown-icon{
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.profile-dropdown-divider{
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 4px 0;
}

.page{
  padding: 32px;
  background: #ffffff;
  min-height: calc(100vh - 80px);
}

.card{
  background: var(--card);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 16px;
  max-width: 520px;
}
label{display:block;margin:10px 0 6px;font-weight:700}
input, select{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius: 12px;
  padding:10px 12px;
  font-size:14px;
  font-family: inherit;
  background: #fff;
}
input[type="checkbox"]{
  width: auto;
  margin: 0;
  cursor: pointer;
}
input:focus, select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.1);
}
input.password-match{
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}
input.password-mismatch{
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
#password-strength{
  margin-top: 8px;
}
#password-strength-bar{
  transition: all 0.3s ease;
}
#password-rules{
  margin-top: 8px;
}
#password-rules > div{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
  transition: color 0.2s;
}
#password-rules > div:last-child{
  margin-bottom: 0;
}
.btn{
  margin-top:12px;
  border:0;
  border-radius: 12px;
  padding:10px 14px;
  background: var(--accent);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{filter:brightness(.97)}
.alert{
  background:#fee2e2;
  border:1px solid #fecaca;
  color:#991b1b;
  padding:10px 12px;
  border-radius: 12px;
  margin-bottom:12px;
}
.muted{margin-top:10px;color:var(--muted);font-size:13px}
.muted a{color:var(--accent);text-decoration:none}

.footer{
  padding: 18px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

/* Mega menu */
.mega{
  position: fixed; /* Fixed position kullan ki scroll'dan etkilenmesin */
  left: 50%;
  transform: translateX(-50%);
  top: 72px;
  width: min(1200px, calc(100vw - 40px));
  background:#ffffff;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 32px 40px;
  display:none;
  z-index:9999; /* Çok yüksek z-index */
  border-top: 1px solid #e5e7eb;
  pointer-events: auto; /* Tıklanabilir olduğundan emin ol */
  transition: background-color 0.3s ease, border-top-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll durumunda mega menu header ile aynı renkte */
.mega.scrolled {
  background: #5d6f8f; /* Header ile birebir aynı mavi yoğunluklu gümüş karışımlı mavi */
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.mega.open{display:block}

/* Scroll durumunda mega menu buton stilleri */
.topbar.scrolled .mega.open ~ .topbar .nav-drop[data-dropdown],
.topbar.scrolled .nav-drop.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Normal durumda mega menu buton stilleri */
.mega.open ~ .topbar .nav-drop[data-dropdown]{
  color: #1a1a1a;
  font-weight: 600;
  border-bottom-color: #1a1a1a;
}
.mega-inner{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.mega-col{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.mega-col-title{
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

/* Scroll durumunda mega menu başlıkları beyaz */
.mega.scrolled .mega-col-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.mega-item{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#6b7280;
  font-weight:500;
  font-size:14px;
  padding:8px 0;
  border-radius: 0;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer; /* Tıklanabilir olduğundan emin ol */
  pointer-events: auto; /* Tıklanabilir olduğundan emin ol */
}
.mega-item:hover{
  color:#1a1a1a;
}
.mega-item.active{
  color:#1a1a1a;
  font-weight:600;
}
.mega-item.active::before{
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

/* Scroll durumunda mega menu item'ları beyaz */
.mega.scrolled .mega-item {
  color: rgba(255, 255, 255, 0.9);
}
.mega.scrolled .mega-item:hover {
  color: #ffffff;
}
.mega.scrolled .mega-item.active {
  color: #ffffff;
  font-weight: 600;
}
.mega.scrolled .mega-item.active::before {
  background: #ffffff;
}
.mega-item .text{
  line-height:1.5;
}

@media (max-width: 900px){
  .brand{min-width:auto}
  .mega-inner{grid-template-columns: 1fr}
  .nav{flex-wrap:wrap}
}
