/* ==========================================================================
   OTELİM MİSAFİR MOBİL UYGULAMASI - DESIGN SYSTEM & MOBILE STYLES
   ========================================================================== */

:root {
  --bg-dark: #0a0f1d;
  --bg-card: #141c2e;
  --bg-card-glass: rgba(20, 28, 46, 0.75);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-emerald: rgba(16, 185, 129, 0.4);

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --primary: #10b981;
  --primary-hover: #059669;
  --gold: #fbbf24;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --red: #ef4444;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: #050811;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Desktop Preview Top Bar */
.desktop-topbar {
  width: 100%;
  max-width: 1200px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0f172a;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 10;
}

.frame-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.frame-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.frame-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.frame-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.code-shortcut-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shortcut-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: monospace;
  cursor: pointer;
}

.shortcut-pill:hover {
  background: var(--primary);
  color: #fff;
}

.minibar-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  color: inherit;
  padding: 0.4rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.minibar-chip:has(input:checked) {
  background: rgba(217, 70, 239, 0.35);
  border-color: #d946ef;
}

.minibar-chip input {
  accent-color: #d946ef;
  cursor: pointer;
}

.language-picker {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0 0.25rem;
  flex-wrap: wrap;
}

.lang-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Smartphone Mockup Frame */
.desktop-frame-mode .mobile-device-wrapper {
  margin: 2rem 0;
  perspective: 1000px;
}

.smartphone-frame {
  width: 390px;
  height: 800px;
  background-color: var(--bg-dark);
  border-radius: 48px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 12px #1e293b, 0 0 0 14px #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fullscreen Mode override */
body.fullscreen-mode {
  background-color: var(--bg-dark);
  padding: 0;
  justify-content: flex-start;
}

body.fullscreen-mode .desktop-topbar {
  display: none;
}

body.fullscreen-mode .smartphone-frame {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

/* Phone Header Notch & Status Bar */
.phone-header-notch {
  height: 48px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  z-index: 100;
  background: transparent;
  flex-shrink: 0;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background-color: #000000;
  border-radius: 20px;
}

.status-bar-icons {
  display: flex;
  gap: 0.4rem;
  font-size: 0.75rem;
}

/* Phone Screen Container */
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Screen Views */
.screen-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen-view.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* SCREEN 1: KOD GİRİŞİ */
#codeScreen {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at top, #1e293b 0%, #0a0f1d 70%);
}

.welcome-hero {
  text-align: center;
  margin-top: 2rem;
}

.hotel-logo-glow {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 20px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.welcome-hero h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
}

.welcome-hero h2 span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--primary);
  margin-top: 4px;
}

.welcome-hero p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.code-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.code-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: center;
}

.code-card-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.code-input-container {
  margin: 1.5rem 0 0.5rem;
}

.code-input-container input {
  width: 100%;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  outline: none;
  transition: var(--transition);
}

.code-input-container input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.code-hint {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.btn-emerald-full {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
}

.btn-emerald-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.demo-code-box {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.demo-code-box strong {
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}

/* SCREEN 2: DASHBOARD */
#dashboardScreen {
  background-color: var(--bg-dark);
  padding-bottom: 70px;
}

/* App Header */
.app-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(10, 15, 29, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.sub-greeting {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.guest-name-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background-color: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scroll Content */
.app-scroll-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Quick Status Cards Grid */
.quick-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.status-tile {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.bg-gradient-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 58, 138, 0.4));
}

.bg-gradient-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 78, 59, 0.4));
  cursor: pointer;
}

.tile-icon {
  font-size: 1.2rem;
  color: #ffffff;
}

.tile-info {
  display: flex;
  flex-direction: column;
}

.tile-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tile-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.copy-icon {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Digital Key Card */
.digital-key-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.key-card-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.key-card-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.key-pulse-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: keyPulse 2s infinite;
}

@keyframes keyPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.key-pulse-circle.listening {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: micListening 1s infinite;
}

@keyframes micListening {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.key-card-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.key-card-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.key-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-pill {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 800;
}

.active-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Services Grid */
.section-title-bar h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #047857); }

.service-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.service-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Info Banner */
.info-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.banner-icon {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 2px;
}

.banner-text h6 {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
}

.banner-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-tab i {
  font-size: 1.1rem;
}

.nav-tab.active {
  color: var(--primary);
}

/* Action Sheet Modals */
.modal-sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.sheet-content {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background-color: var(--text-subtle);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.sheet-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-top: 6px;
}

.sheet-title-wrap p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sheet-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sheet-body {
  padding: 1.25rem;
  overflow-y: auto;
}

/* Menu Items List */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.menu-img {
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-info {
  flex: 1;
}

.menu-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.menu-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 2px 0 4px;
}

.menu-price {
  font-size: 0.9rem;
  color: var(--gold);
}

.btn-emerald-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-emerald-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Key Modal NFC Pulse */
.key-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.nfc-pulse-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.nfc-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulseExpand 2s infinite ease-out;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes pulseExpand {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.qr-box {
  margin-top: 1.5rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-box small {
  color: #334155;
  font-size: 0.7rem;
  margin-top: 6px;
  font-weight: 600;
}

/* Toast Container */
.toast-container {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 300;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: toastDown 0.3s ease;
}

@keyframes toastDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hidden {
  display: none !important;
}
