@import "tailwindcss";
@source "../../*.php";
@source "../../includes/*.php";

@theme {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --color-apple-blue: #007AFF;
  --color-apple-green: #34C759;
  --color-apple-red: #FF3B30;
  --color-apple-yellow: #FFCC00;
  --color-apple-gray: #8E8E93;
  --color-apple-dark: #1C1C1E;
  --color-apple-light: #F2F2F7;
}

@layer base {
  html, body, * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
  }
  .ios-container, .ios-container *,
  .ios-content, .ios-content *,
  .ios-surface, .ios-surface *,
  .ios-card, .ios-card *,
  .ios-header, .ios-header * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }
  .site-light-shell [class*="text-white"]:not([class*="bg-slate"]):not([class*="bg-blue"]):not([class*="bg-cyan"]):not([class*="bg-sky"]):not([class*="bg-emerald"]):not([class*="bg-purple"]):not([class*="bg-amber"]):not([class*="bg-teal"]):not([class*="bg-indigo"]):not([class*="bg-gradient"]):not([class*="bg-black"]) {
    color: #000000 !important;
  }
  .site-light-shell .text-red-500 {
    color: #1e293b !important;
  }
}

:root {
  --bg-desktop: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

@layer base {
  html, body {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #fff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0;
  }
}

/* ── Mobil: Sadece font ailesini tektipleştir (boyutları bozmadan) ── */
#mobile-view,
#mobile-view * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

@layer utilities {
  .glass-tahoe {
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    background-color: rgba(255, 255, 255, 0.78);
    border: 0.5px solid rgba(14, 165, 233, 0.16);
    box-shadow: 0 24px 80px rgba(14, 165, 233, 0.12);
  }

  .glass-dock {
    backdrop-filter: blur(60px) saturate(250%);
    -webkit-backdrop-filter: blur(60px) saturate(250%);
    background-color: rgba(224, 242, 254, 0.85); /* Premium sky blue translucent background */
    border: 0.5px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255,255,255,0.85);
    width: max-content !important; /* Force Dock to fit content tightly without stretching */
  }

  .ios-surface {
    background-color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 20px;
  }
}

/* --- BOOT SCREEN --- */
.mac-boot {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #ecfeff 50%, #dbeafe 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease-out, visibility 0.25s;
}
.mac-boot.hidden {
  opacity: 0;
  visibility: hidden;
}
.boot-logo {
  color: #1d4ed8;
  margin-bottom: 40px;
}
.boot-progress-track {
  width: 240px;
  height: 4px;
  background-color: rgba(15, 23, 42, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.boot-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #2563eb;
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* --- DESKTOP LAYOUT --- */
.mac-desktop-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--bg-desktop);
  background-size: cover;
  background-position: center;
}

/* --- MAC STATUS BAR --- */
.mac-status-bar {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(14, 165, 233, 0.12);
}
.status-left, .status-right {
  display: flex;
  align-items: center;
  height: 100%;
}
.status-item {
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 4px;
  margin: 0 2px;
}
.status-item:hover {
  background: rgba(14, 165, 233, 0.12);
}
.status-icon {
  margin-left: 10px;
  opacity: 0.9;
  cursor: pointer;
}

/* --- DESKTOP SHORTCUTS --- */
.desktop-shortcuts {
  position: absolute;
  top: 50px; left: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.desktop-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.desktop-shortcut:hover {
  background: rgba(14, 165, 233, 0.12);
}
.desktop-shortcut-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(14,165,233,0.22);
  border-radius: 12px;
  margin-bottom: 6px;
  box-shadow: 0 12px 30px rgba(14,165,233,0.14);
}
.desktop-shortcut-label {
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
  text-shadow: none;
  text-align: center;
  line-height: 1.2;
}

/* --- MAIN CONTENT AREA (Fits remaining right space) --- */
.desktop-main-content {
  position: absolute;
  top: 48px; /* Height of the status bar */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  animation: window-open 0.22s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.08s;
}

@keyframes window-open {
  0% { transform: scale(0.98); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

::-webkit-scrollbar { width: 0px; height: 0px; background: transparent; }

.site-light-shell {
  background: #fff;
}

.site-light-shell [class*="text-white"]:not([class*="bg-slate"]):not([class*="bg-blue"]):not([class*="bg-cyan"]):not([class*="bg-sky"]):not([class*="bg-emerald"]):not([class*="bg-purple"]):not([class*="bg-amber"]):not([class*="bg-teal"]):not([class*="bg-indigo"]):not([class*="bg-gradient"]):not([class*="bg-black"]) {
  color: #000000 !important;
}

.site-light-shell .border-white\/10,
.site-light-shell .border-white\/5 {
  border-color: rgba(14, 165, 233, 0.14) !important;
}

.site-light-shell .bg-black,
.site-light-shell .bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.82) !important;
}

.site-light-shell [class*="bg-[#1C1C1E]/80"],
.site-light-shell [class*="bg-white/[0.02]"],
.site-light-shell [class*="bg-white/[0.025]"],
.site-light-shell [class*="bg-white/[0.03]"],
.site-light-shell [class*="bg-white/[0.04]"] {
  background-color: rgba(255, 255, 255, 0.82) !important;
}

.site-light-shell [class*="bg-green-500/"],
.site-light-shell [class*="bg-purple-500/"],
.site-light-shell [class*="bg-yellow-500/"],
.site-light-shell [class*="bg-indigo-500/"],
.site-light-shell [class*="bg-emerald-500/"],
.site-light-shell [class*="bg-gray-500/"] {
  background-color: rgba(34, 211, 238, 0.12) !important;
}

.site-light-shell [class*="to-black"],
.site-light-shell [class*="from-red-900"],
.site-light-shell [class*="from-blue-900"],
.site-light-shell [class*="from-purple-900"] {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.96), rgba(219, 234, 254, 0.92)) !important;
}

.site-light-shell [class*="bg-black/50"] {
  background-color: rgba(8, 145, 178, 0.12) !important;
  color: #0e7490 !important;
}

.site-light-shell .glass-heavy,
.site-light-shell .glass-light,
.site-light-shell .glass {
  background-color: rgba(255, 255, 255, 0.84) !important;
  border-color: rgba(14, 165, 233, 0.14) !important;
  box-shadow: 0 18px 60px rgba(14, 165, 233, 0.12);
}

.site-light-shell .bg-slate-950.text-white,
.site-light-shell .bg-slate-800.text-white,
.site-light-shell .bg-blue-600.text-white,
.site-light-shell .bg-emerald-600.text-white,
.site-light-shell .bg-purple-600.text-white,
.site-light-shell .bg-cyan-500.text-white,
.site-light-shell .bg-cyan-600.text-white,
.site-light-shell .bg-sky-500.text-white,
.site-light-shell .bg-amber-500.text-white,
.site-light-shell .bg-teal-600.text-white,
.site-light-shell .bg-indigo-600.text-white,
.site-light-shell .bg-gradient-to-br.text-white,
.site-light-shell .bg-gradient-to-tr.text-white {
  color: #fff !important;
}

.site-light-shell .text-red-500 {
  color: #1e293b !important;
}

.site-light-shell .bg-red-500\/15,
.site-light-shell .bg-red-600\/20,
.site-light-shell .bg-red-600\/25 {
  background-color: rgba(34, 211, 238, 0.14) !important;
}

.site-light-shell .fill-white {
  fill: currentColor;
}

.site-light-shell p,
.site-light-shell li {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.site-light-shell .uppercase {
  text-transform: none !important;
}

.site-light-shell h1,
.site-light-shell h2,
.site-light-shell h3,
.site-light-shell h4 {
  letter-spacing: 0 !important;
}

/* --- Active Timeline Dot Exploding Light Animation --- */
@keyframes timeline-pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor, 0 0 6px 2px currentColor;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 0 18px 8px currentColor;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 6px 2px currentColor;
  }
}

.active-dot-glow {
  box-shadow: 0 0 10px 3px currentColor;
  animation: timeline-pulse 2.2s infinite ease-in-out;
}

/* --- Click Explosion (Burst) Animation --- */
@keyframes timeline-burst {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(6);
    box-shadow: 0 0 20px 10px currentColor;
    opacity: 0;
  }
}

.click-burst-effect {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  animation: timeline-burst 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Global Font Weight Override */
*, *::before, *::after {
  font-weight: 700 !important;
}

/* Reset Subpage paddings when wrapped inside the premium desktop card frame */
.page-wrapper-card .page-transition-content {
  padding: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
.page-wrapper-card .page-transition-content > .w-full {
  padding: 0 !important;
}

/* Header Status Bar LED Line Animation */
@keyframes led-slide {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}

.mac-status-bar::after,
.ios-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, 
    rgba(6, 182, 212, 0.04) 0%, 
    rgba(6, 182, 212, 0.2) 20%, 
    rgba(6, 182, 212, 0.65) 40%, 
    #0ea5e9 50%, 
    rgba(37, 99, 235, 0.65) 60%, 
    rgba(37, 99, 235, 0.2) 80%, 
    rgba(37, 99, 235, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: led-slide 2.6s linear infinite;
  z-index: 10;
}

/* Site Brand Title & High-priority Bold weight overrides */
.site-brand-title {
  font-weight: 900 !important;
  color: #000000 !important;
}

.font-black, .font-black * {
  font-weight: 900 !important;
}

.font-extrabold, .font-extrabold * {
  font-weight: 800 !important;
}

/* Bell shake animation to attract attention */
@keyframes bell-shake {
  0%, 100% { transform: rotate(0); }
  15%, 45%, 75% { transform: rotate(12deg); }
  30%, 60%, 90% { transform: rotate(-12deg); }
}

.shake-bell i,
.shake-bell svg {
  animation: bell-shake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Toast container positioning overrides for mobile */
@media (max-width: 1024px) {
  #toast-container {
    top: 70px !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
  }
}

/* Custom High-Contrast Medium Gray Theme Toast Notification */
.dortg-toast {
  background: #525a66 !important; /* Medium gray background matching Mac environment */
  border-left: 4.5px solid #06b6d4 !important; /* Glowing cyan left border */
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  transition: all 0.5s ease;
}

.dortg-toast:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35) !important;
}

.dortg-toast * {
  color: #ffffff !important;
}

.dortg-toast .text-cyan-400 {
  color: #22d3ee !important;
}
