﻿/* ============================================
   Arikip â€“ CSS giriÅŸ noktasÄ±
   TÃ¼m global, component ve sayfa CSS importlarÄ±
   ============================================ */

/* ---------- Tema & renk tokenlarÄ± ---------- */
@import url("theme/tokens.css");
@import url("theme/light.css");
@import url("theme/dark.css");

/* ---------- Ã‡ekirdek & animasyon ---------- */
@import url("core/core.css");
@import url("animations/animations.css");

/* ---------- BileÅŸenler ---------------------- */
@import url("components/button.css");
@import url("components/card.css");
@import url("components/chip.css");
@import url("components/forms.css");
@import url("components/modal.css");
@import url("components/switch.css");
@import url("components/table.css");
@import url("components/theme-toggle.css");

/* ---------- Mobil yardÄ±mcÄ±lar --------------- */
@import url("mobile/card-table.css");
/* NOT: mobile/header.css eski header iÃ§in kullanÄ±lÄ±yordu,
   yeni sistemde _app_header_mobile.css var, o yÃ¼zden import etmiyoruz. */

/* ---------- Sayfa bazlÄ± CSS ----------------- */
/* App iÃ§inde ortak header parÃ§alarÄ± */
@import url("pages/_app_header.css");
@import url("pages/_app_header_mobile.css");

/* Panel (app_home.html) */
@import url("pages/app_home.css");

/* ArÄ±za kayÄ±tlarÄ± (incidents.html) */

@import url("pages/incidents.css");


/* Public landing (landing.html) */
@import url("pages/landing.css");

/* Login (login.html) */
@import url("pages/login.css");

/* BakÄ±m planlarÄ± (maintenance.html) */
@import url("pages/maintenance.css");

/* Ayarlar (settings.html) */
@import url("pages/settings.css");

/* Checklist (checklist.html) */
@import url("pages/checklist.css");


/* Raporlar (reports.html) */
@import url("pages/reports.css");


/* Eski home sayfasÄ± (kullanmÄ±yorsan import etme) */
/* @import url("pages/home.css"); */

/* ---------- Genel yardÄ±mcÄ±lar -------------- */
@import url("utils/helpers.css");


/* ========== LANDING NAVBAR + BRAND ANÄ°MASYON + BUTONLAR ========== */

/* Sabit Ã¼st navbar â€“ koyu + toz yeÅŸil efekt */
.arkip-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(12px);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--arkip-primary-rgb), 0.15) 0%, transparent 25%),
    radial-gradient(circle at 110% 0%, rgba(15, 23, 42, 0.45) 0%, transparent 45%),
    var(--arkip-surface-strong);
  border-bottom: 1px solid rgba(34, 197, 94, 0.38);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.arkip-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  column-gap: 32px;
  justify-content: flex-start;      /* space-between DEÄÄ°L */
}
/* Light mode'da navbar */
:root.theme-light .arkip-nav {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.08), transparent 45%),
    #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

:root.theme-light .arkip-nav .arkip-brand,
:root.theme-light .arkip-nav .hero-nav a {
  color: #0f172a;
}

:root.theme-light .arkip-nav .hero-nav a {
  opacity: 0.85;
}

:root.theme-light .arkip-nav .hero-nav a:hover {
  opacity: 1;
}
/* Landing â€“ iletiÅŸim formu input'larÄ± (light mode) */
:root.theme-light .section-contact {
  background: #f9fafb;
}

:root.theme-light .contact-form {
  background: #ffffff;
  border-color: #e5e7eb;
}

:root.theme-light .contact-form .form-field label {
  color: #374151;
}

:root.theme-light .contact-form .form-field input,
:root.theme-light .contact-form .form-field textarea,
:root.theme-light .contact-form .form-field select {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}
/* Marka + animasyon */
.arkip-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 24px;
  color: #f9fafb;
  user-select: none;
}

.arkip-text,
#arkipText {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition:
    letter-spacing .5s ease,
    transform .4s ease,
    opacity .35s ease;
}

/* ArÄ±za Ä°ÅŸletme Takip â†’ Arikip merge efekti */
.arkip-brand.phase-merge .arkip-text,
.arkip-brand.phase-merge #arkipText {
  letter-spacing: -1px;
}

.arkip-brand.brand-final .arkip-text,
.arkip-brand.brand-final #arkipText {
  letter-spacing: -0.4px;
  font-weight: 700;
}

/* Logo ikonunun neon yeÅŸil glow efekti */
.arkip-nav .arkip-icon {
  width: 0;
  height: 0;
  opacity: 0;
  flex-shrink: 0;

  border-radius: 999px;
  padding: 0;

  background: transparent;   /* ortayÄ± tamamen ÅŸeffaf yap */
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.9),
    0 0 18px rgba(34, 197, 94, 0.95);


  transition: all 0.45s cubic-bezier(.17, .67, .46, 1.27);
}

.arkip-nav .arkip-brand.brand-final .arkip-icon {
  width: 22px;
  height: 22px;
  opacity: 1;
  padding: 3px;

  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.9),
    0 0 18px rgba(34, 197, 94, 0.95);

  animation: arkipIconPulse 2.4s ease-in-out infinite;
}


@keyframes arkipIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.0);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
  }
}

/* Navbar menÃ¼ linkleri */
.hero-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;   /* Ã¶nemli: menÃ¼ sabit saÄŸda dursun */
}

.hero-nav a {
  font-size: 14px;
  text-decoration: none;
  color: #e5e7eb;
  opacity: 0.85;
  transition: color .2s ease, opacity .2s ease;
}

.hero-nav a:hover {
  opacity: 1;
  color: #ffffff;
}

/* Oturum aÃ§ butonu (navbar saÄŸ) */
.btn-login {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn-login:hover {
  background: #22c55e;
  color: #022c22;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}
/* Light mode'da Oturum aÃ§ butonu */
:root.theme-light .btn-login {
  background: #f9fafb;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

:root.theme-light .btn-login:hover {
  background: #22c55e;
  color: #022c22;
  border-color: #22c55e;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.45);
}


/* Hero iÃ§indeki buton grubu */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
/* Login formu â€“ light mode'da beyaz kutular */
:root.theme-light .login-wrapper {
  background: radial-gradient(circle at top, #e5e7eb, #f9fafb 55%, #f9fafb 100%);
}

:root.theme-light .login-card {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.18);
}

:root.theme-light .login-card .form-field label {
  color: #374151;
}

:root.theme-light .login-card .form-field input {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

:root.theme-light .login-card .form-field input::placeholder {
  color: #9ca3af;
}
/* ============================================
   MOBÄ°L HEADER (sadece Ã¼st bar)
   ============================================ */
/* ========== MOBÄ°L HEADER (yalnÄ±zca landing Ã¼st bar) ========== */
@media (max-width: 768px) {

  /* Header: 1. satÄ±r brand, 2. satÄ±r menÃ¼ */
  .arkip-nav-inner {
    position: relative;
    display: flex;
    flex-direction: column;   /* brand + nav alt alta */
    align-items: flex-start;
    row-gap: 6px;
    padding: 8px 10px 12px;
  }

  /* Logo + animasyonlu yazÄ± (solda) */
  .arkip-brand {
    font-size: 18px;
    gap: 6px;
  }

  /* ÃœST SATIR: saÄŸ kÃ¶ÅŸede tema + login */
  .arkip-nav-inner .theme-toggle {
    position: absolute;
    top: 8px;
    right: 10px;              /* en saÄŸda tema */
  }

  .hero-nav .btn-login {
    position: absolute;
    top: 8px;
    right: 60px;              /* temadan sola; 56â€“72px arasÄ± oynatabilirsin */
    font-size: 12px;
    padding: 4px 12px;
    min-width: 80px;
    text-align: center;
  }

  /* ALT SATIR: menÃ¼ler ortalanmÄ±ÅŸ */
  .hero-nav {
    width: 100%;
    margin-left: 0;           /* desktopâ€™taki autoâ€™yu sÄ±fÄ±rla */
    margin-top: 24px;         /* Ã¼st satÄ±rdan boÅŸluk */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  /* MenÃ¼ linkleri (login hariÃ§) */
  .hero-nav a:not(.btn-login) {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .arkip-brand {
    font-size: 16px;
  }

  .hero-nav {
    gap: 8px 12px;
  }

  .hero-nav .btn-login {
    padding: 3px 10px;
    min-width: 72px;
  }
}
/* UI preference: Hide hint/welcome sections everywhere */
body.ui-hide-hints .app-section.app-welcome{
  display: none !important;
}
/* ===== Page Loading Overlay: kesin viewport ===== */
#pageLoadingOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;

  /* Ortala (ama görünürlük kontrolü opacity ile) */
  display: grid;
  place-items: center;

  /* Şeffaf flu: renk yok */
  background: transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  /* Kapalı state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

/* Açık state: 2sn sonra görünür */
#pageLoadingOverlay.is-on {
  visibility: visible;
  pointer-events: auto;

  /* opacity 2sn gecikmeli */
  opacity: 1;
  transition-delay: 2000ms, 0s;   /* opacity delay=2sn, visibility delay=0 */
  transition-property: opacity, visibility;
  transition-duration: 160ms, 0s;
}

/* Kutu (istersen tamamen şeffaf da yapabilirsin) */
#pageLoadingOverlay .page-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  padding: 14px 16px;
  border-radius: 16px;

  /* ✅ kutu da renksiz olsun dersen: */
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);

  /* blur kutu içinde de “cam” hissi istersen: */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

#pageLoadingOverlay .page-loading-text {
  color: var(--arkip-text-soft);
  font-size: 13px;
  letter-spacing: 0.2px;
}

#pageLoadingOverlay .page-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--arkip-border-soft) 75%, transparent);
  border-top-color: var(--arkip-primary);
  filter: drop-shadow(0 0 10px rgba(var(--arkip-primary-rgb), 0.18));
  animation: pageLoadingSpin 0.8s linear infinite;
}

@keyframes pageLoadingSpin { to { transform: rotate(360deg); } }

body.is-page-loading {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

/* (opsiyonel) overlay aÃ§Ä±kken tÄ±klamayÄ± kes */
body.is-page-loading .page-loading-overlay {
  pointer-events: auto;
}
@media (max-width: 768px) {
  * { scroll-behavior: auto !important; }
  .app-section, .card, .modal { transition: none !important; animation: none !important; }
}

@font-face {
  font-display: swap;
}
html.ui-hide-hints .app-welcome,
body.ui-hide-hints .app-welcome,
html.ui-hide-hints .app-section.app-welcome,
body.ui-hide-hints .app-section.app-welcome {
  display: none !important;
}
.rp-panel[hidden] { 
  display: none !important; 
}