/* ==========================================================================
   OPAL GRILL - Digitalt NFC & QR Visitkort (Master Stylesheet)
   Exklusiv mobiloptimerad design & direktlänkar
   ========================================================================== */

:root {
  --bg-main: #06110B;
  --bg-card: rgba(16, 38, 26, 0.75);
  --bg-card-hover: rgba(22, 53, 36, 0.85);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(242, 169, 59, 0.35);

  --color-primary: #143826;
  --color-gold: #F2A93B;
  --color-gold-light: #FBD38D;
  --color-amber: #E58525;
  --color-terracotta: #C85227;
  --color-foodora: #D70F64;
  --color-foodora-light: #FF2E83;
  --color-google: #4285F4;
  --color-phone: #10B981;
  --color-maps: #3B82F6;
  --color-swish: #E03131;
  --color-insta: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  --color-tiktok: #010101;
  --color-facebook: #1877F2;

  --text-main: #FFFFFF;
  --text-muted: #B8C7BF;
  --text-subtle: #7E9488;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(20, 56, 38, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 100% 60%, rgba(200, 82, 39, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 90%, rgba(242, 169, 59, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.nfc-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   PROFILE HEADER
   ========================================================================== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1C4D35 0%, #0D2619 100%);
  padding: 5px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 0 2px var(--color-gold),
    0 0 20px rgba(242, 169, 59, 0.3);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0D2619;
}

.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--color-gold);
  border: 3px solid var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06110B;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.profile-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-top: 0.25rem;
}

.profile-tagline {
  font-size: 0.95rem;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.meta-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Real-time status */
.meta-pill.live-open {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  font-weight: 700;
}

.meta-pill.live-closed {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ==========================================================================
   PRIMARY ACTION: SAVE CONTACT BUTTON
   ========================================================================== */
.btn-save-contact {
  width: 100%;
  background: linear-gradient(135deg, #F2A93B 0%, #E58525 50%, #C85227 100%);
  color: #06110B;
  border: none;
  border-radius: var(--radius-md);
  padding: 1.05rem 1.25rem;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 
    0 10px 25px -5px rgba(242, 169, 59, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
}

.btn-save-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(242, 169, 59, 0.6);
}

.btn-save-contact:active {
  transform: scale(0.98);
}

/* ==========================================================================
   INTERACTIVE 3D NFC CARD BANNER
   ========================================================================== */
.smart-card-box {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  background: 
    radial-gradient(circle at 90% 10%, rgba(242, 169, 59, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #1C4D35 0%, #0D2619 70%, #06110B 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.smart-card-box:hover {
  transform: translateY(-2px);
}

.smart-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: 0.8s;
}

.smart-card-box:hover::before {
  left: 120%;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emv-gold-chip {
  width: 42px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E6C280 0%, #C99E52 50%, #F5DEB3 100%);
  border: 1px solid rgba(138, 97, 30, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nfc-signal-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-gold);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(242, 169, 59, 0.25);
}

.card-center-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-brand-text h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.2px;
}

.card-brand-text p {
  font-size: 0.76rem;
  color: var(--color-gold-light);
  font-weight: 600;
}

.card-qr-thumbnail {
  width: 54px;
  height: 54px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.card-qr-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.card-view-qr-prompt {
  color: var(--color-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   FEATURED HIGH-VALUE LINK TILES (BENTO STYLE)
   ========================================================================== */
.section-heading {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 0.25rem;
  margin-bottom: -0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.link-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background var(--transition);
}

.link-tile:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.link-tile:active {
  transform: scale(0.98);
}

/* Specialized Tile Accents */
.link-tile.tile-foodora {
  border-color: rgba(215, 15, 100, 0.35);
  background: linear-gradient(135deg, rgba(215, 15, 100, 0.12) 0%, rgba(16, 38, 26, 0.8) 100%);
}
.link-tile.tile-foodora::before { background: var(--color-foodora); }
.link-tile.tile-foodora:hover { border-color: var(--color-foodora); }

.link-tile.tile-menu {
  border-color: rgba(242, 169, 59, 0.35);
  background: linear-gradient(135deg, rgba(242, 169, 59, 0.12) 0%, rgba(16, 38, 26, 0.8) 100%);
}
.link-tile.tile-menu::before { background: var(--color-gold); }
.link-tile.tile-menu:hover { border-color: var(--color-gold); }

.link-tile.tile-google {
  border-color: rgba(66, 133, 244, 0.35);
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.12) 0%, rgba(16, 38, 26, 0.8) 100%);
}
.link-tile.tile-google::before { background: var(--color-google); }
.link-tile.tile-website {
  border-color: rgba(242, 169, 59, 0.3);
  background: linear-gradient(135deg, rgba(28, 77, 53, 0.3) 0%, rgba(16, 38, 26, 0.85) 100%);
}
.link-tile.tile-website::before { background: var(--color-gold); }
.link-tile.tile-website:hover { border-color: var(--color-gold); }

.link-tile.tile-phone::before { background: var(--color-phone); }
.link-tile.tile-maps::before { background: var(--color-maps); }
.link-tile.tile-swish::before { background: var(--color-swish); }

/* Left Content */
.tile-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.tile-icon-frame {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  overflow: hidden;
}

.tile-icon-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.tile-icon-frame.icon-foodora-clean {
  background: #D70F64;
  padding: 5px;
}
.tile-icon-frame.icon-foodora-clean img {
  object-fit: contain;
}

.tile-icon-frame.icon-google-clean {
  background: #FFFFFF;
  padding: 9px;
}
.tile-icon-frame.icon-google-clean img {
  object-fit: contain;
}

.tile-icon-frame.icon-swish-clean {
  background: #FFFFFF;
  padding: 6px;
}
.tile-icon-frame.icon-swish-clean img {
  object-fit: contain;
}

.icon-foodora { background: var(--color-foodora); }
.icon-menu { background: linear-gradient(135deg, #F2A93B, #C85227); }
.icon-website { background: linear-gradient(135deg, #1C4D35, #0D2619); color: var(--color-gold); border: 1px solid rgba(242, 169, 59, 0.4); }
.icon-google { background: #FFFFFF; color: #4285F4; }
.icon-phone { background: linear-gradient(135deg, #10B981, #059669); }
.icon-maps { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.icon-swish { background: linear-gradient(135deg, #E03131, #A91D1D); }
.icon-instagram { background: var(--color-insta); }
.icon-tiktok { background: #000; border: 1px solid rgba(255,255,255,0.2); }
.icon-facebook { background: #1877F2; }

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

.tile-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.tile-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}

.badge-hot {
  background: rgba(215, 15, 100, 0.2);
  color: #FF669D;
  border: 1px solid rgba(215, 15, 100, 0.4);
}

.badge-stars {
  background: rgba(242, 169, 59, 0.2);
  color: var(--color-gold);
  border: 1px solid rgba(242, 169, 59, 0.4);
}

/* Arrow indicator */
.tile-arrow {
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.link-tile:hover .tile-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================================================
   SOCIAL MEDIA 3-COLUMN GRID
   ========================================================================== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.social-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-card-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
}

.social-card-handle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   OPENING HOURS & CONTACT BOX
   ========================================================================== */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

.info-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.hours-row.is-today {
  color: #FFFFFF;
  font-weight: 800;
  background: rgba(242, 169, 59, 0.12);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border-left: 3px solid var(--color-gold);
}

/* ==========================================================================
   QR CODE & SHARE ROW
   ========================================================================== */
.share-action-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.btn-utility {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-utility:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==========================================================================
   QR FULLSCREEN MODAL
   ========================================================================== */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.qr-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal-box {
  background: #0D2619;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal-overlay.active .qr-modal-box {
  transform: scale(1);
}

.qr-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qr-code-display {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.qr-code-display img {
  width: 200px;
  height: 200px;
  display: block;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.nfc-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20, 56, 38, 0.95);
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

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

/* Footer */
.nfc-footer {
  text-align: center;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.nfc-footer a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 700;
}

.nfc-footer a:hover {
  text-decoration: underline;
}
