/* ==========================================================================
   Okka Game Tools Portal - Refined macOS Frosted Glass
   Domain: okka.my.id
   ========================================================================== */

:root {
  /* macOS Dark Glass Palette */
  --bg-macos: #090c13;
  --glass-bg: rgba(18, 24, 38, 0.48);
  --glass-bg-hover: rgba(23, 31, 48, 0.62);
  --glass-inner: rgba(255, 255, 255, 0.06);
  --glass-inner-hover: rgba(255, 255, 255, 0.12);

  /* Translucent Specular Highlights */
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-top: rgba(255, 255, 255, 0.18);
  --glass-border-hover: rgba(255, 255, 255, 0.22);

  /* Typography Colors */
  --text-title: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #8393a7;

  /* Theme Accents */
  --ninja-accent: #ea580c;
  --ninja-accent-hover: #f97316;
  --pirate-accent: #0284c7;
  --pirate-accent-hover: #0ea5e9;
  --discord-accent: #5865f2;

  /* macOS Traffic Light Colors */
  --mac-red: #ff5f56;
  --mac-yellow: #ffbd2e;
  --mac-green: #27c93f;

  /* Radii & Shadows */
  --radius-window: 20px;
  --radius-media: 14px;
  --radius-button: 10px;
  --radius-pill: 9999px;

  --shadow-window: 
    0 20px 45px -12px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-window-hover: 
    0 26px 55px -10px rgba(0, 0, 0, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Prevent native browser image drag & compositor freeze */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.deck-img,
.brand-icon {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* Mouse interaction passes cleanly without drag lock */
}

/* Background with subtle macOS Aurora Mesh (clean, relaxed & non-intrusive) */
body {
  background-color: var(--bg-macos);
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.13) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(234, 88, 12, 0.11) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(14, 165, 233, 0.09) 0px, transparent 60%),
    radial-gradient(at 80% 20%, rgba(168, 85, 247, 0.11) 0px, transparent 50%);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 18px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.deck-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   Header: macOS Frosted Glass Bar
   ========================================================================== */
.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-top);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Clean macOS Window Control Dots */
.macos-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
}

.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.mac-red {
  background-color: var(--mac-red);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.mac-yellow {
  background-color: var(--mac-yellow);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.mac-green {
  background-color: var(--mac-green);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Divider Line */
.header-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 0.74rem;
  font-family: monospace;
  color: var(--text-muted);
  font-weight: 600;
}

/* Frosted Discord Chip */
.discord-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(88, 101, 242, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-top: 1px solid rgba(165, 180, 252, 0.25);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.discord-chip:hover {
  background: var(--discord-accent);
  color: #fff;
  border-color: var(--discord-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.deck-hero {
  text-align: center;
  padding: 4px 10px 8px;
}

.hero-heading {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.hero-desc {
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Cards: Inset Framed macOS Glass Cards
   ========================================================================== */
.deck-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deck-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-top);
  border-radius: var(--radius-window);
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-window);
  transition: var(--transition);
}

.deck-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-window-hover);
}

/* Framed Thumbnail Media */
.deck-media {
  position: relative;
  width: 250px;
  height: 160px;
  border-radius: var(--radius-media);
  background: #080b11;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.deck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.deck-card:hover .deck-img {
  transform: scale(1.04);
}

.media-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ninja-badge {
  background: rgba(234, 88, 12, 0.88);
  color: #fff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.pirate-badge {
  background: rgba(2, 132, 199, 0.88);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Deck Body */
.deck-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.deck-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.2px;
}

.deck-subdomain {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--glass-inner);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-body);
  border: 1px solid var(--glass-border);
}

.deck-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Actions Row */
.deck-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.btn-deck-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ninja {
  background: var(--ninja-accent);
}

.btn-ninja:hover {
  background: var(--ninja-accent-hover);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transform: translateY(-1px);
}

.btn-pirate {
  background: var(--pirate-accent);
}

.btn-pirate:hover {
  background: var(--pirate-accent-hover);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-deck-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: var(--radius-button);
  background: var(--glass-inner);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-top);
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  min-height: 42px;
}

.btn-deck-copy:hover {
  background: var(--glass-inner-hover);
  border-color: var(--glass-border-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Footer: macOS Frosted Glass Bar (Full Width Matched)
   ========================================================================== */
.deck-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-top);
  border-radius: var(--radius-window);
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-window);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.footer-status code {
  color: var(--text-body);
  font-family: monospace;
}

.footer-copy strong {
  color: var(--text-title);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #f8fafc;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 20px 14px;
  }

  .deck-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .deck-media {
    width: 100%;
    height: 180px;
  }

  .deck-body {
    gap: 12px;
  }

  .deck-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 14px 10px;
  }

  .deck-container {
    gap: 14px;
  }

  .deck-header {
    padding: 9px 12px;
  }

  .macos-controls,
  .header-divider {
    display: none; /* Hide on very small screens to give full room to logo & title */
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .discord-chip span {
    display: none;
  }

  .discord-chip {
    padding: 7px 10px;
  }

  .deck-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-deck-primary,
  .btn-deck-copy {
    width: 100%;
    justify-content: center;
  }
}
