/* ==========================================================================
   CABINE DE CONTEÚDO - DESIGN SYSTEM & MOBILE STYLES (4 OPTIONS)
   ========================================================================== */

/* Color Palette matching the vibrant creator aesthetic */
:root {
  --primary-purple: #7A32ED;
  --primary-pink: #EC4899;
  --primary-cyan: #06B6D4;
  --primary-yellow: #F59E0B;
  --primary-green: #10B981;
  --primary-red: #EF4444;

  /* Light Theme Default */
  --bg-gradient-start: #FAF5FF;
  --bg-gradient-end: #F3E8FF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.8);
  --card-shadow: 0 12px 35px -5px rgba(122, 50, 237, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --topbar-bg: rgba(255, 255, 255, 0.75);
  --modal-bg: #FFFFFF;
  --modal-overlay-bg: rgba(15, 23, 42, 0.65);
  --input-bg: #F8FAFC;
  --input-border: #E2E8F0;
  --chip-bg: #F1F5F9;
  --chip-text: #475569;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-gradient-start: #0F0A1C;
  --bg-gradient-end: #07040F;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --card-bg: rgba(30, 23, 48, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.5);
  --topbar-bg: rgba(15, 10, 28, 0.8);
  --modal-bg: #1A142A;
  --modal-overlay-bg: rgba(0, 0, 0, 0.85);
  --input-bg: #0F0A1C;
  --input-border: #2D2342;
  --chip-bg: #2D2342;
  --chip-text: #CBD5E1;
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-main);
  background: var(--bg-gradient-start);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient Moving Background Blobs */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: floatBlob 18s ease-in-out infinite alternate;
}

[data-theme="dark"] .blob {
  opacity: 0.4;
  filter: blur(100px);
}

.blob-purple {
  top: -10%;
  left: -10%;
  width: 65vw;
  height: 65vw;
  background: var(--primary-purple);
}

.blob-cyan {
  top: 30%;
  right: -20%;
  width: 55vw;
  height: 55vw;
  background: var(--primary-cyan);
}

.blob-yellow {
  bottom: -15%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background: var(--primary-yellow);
}

.blob-pink {
  bottom: 20%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--primary-pink);
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* App Main Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px 40px 16px;
  display: flex;
  flex-direction: column;
}

/* Top Action Header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
}

.booth-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-purple);
  background: rgba(122, 50, 237, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
}

[data-theme="dark"] .booth-badge {
  color: #C084FC;
  background: rgba(192, 132, 252, 0.15);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
}

/* Profile / Header Card */
.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Hero Banner Image */
.hero-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.profile-card:hover .hero-banner-img {
  transform: scale(1.02);
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.2;
}

.event-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

[data-theme="dark"] .event-subtitle {
  color: var(--primary-pink);
}

.event-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 0 6px;
}

/* Pinwheel Pop-Art Stripe Accent Bar */
.pinwheel-stripe {
  display: flex;
  height: 6px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}

.stripe-color {
  flex: 1;
  height: 100%;
}

.c-purple { background-color: var(--primary-purple); }
.c-pink { background-color: var(--primary-pink); }
.c-cyan { background-color: var(--primary-cyan); }
.c-yellow { background-color: var(--primary-yellow); }
.c-green { background-color: var(--primary-green); }

/* Links Group */
.links-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

/* Base Link Card */
.link-card {
  width: 100%;
  min-height: 68px;
  padding: 14px 18px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #FFFFFF;
  cursor: pointer;
  outline: none;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px -4px rgba(122, 50, 237, 0.3);
}

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

/* Card Icons */
.card-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transition: transform 0.3s ease;
}

.link-card:hover .card-icon {
  transform: scale(1.12) rotate(-5deg);
}

/* Card Text */
.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
  line-height: 1.3;
}

.card-arrow {
  color: #FFFFFF;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.link-card:hover .card-arrow {
  transform: translateX(4px);
}

/* Featured Gradients for the 4 Options */
.gradient-purple {
  background: linear-gradient(135deg, #7A32ED, #9333EA);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.gradient-pink {
  background: linear-gradient(135deg, #EC4899, #F43F5E);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.gradient-cyan {
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.gradient-red {
  background: linear-gradient(135deg, #EF4444, #F97316);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

/* Footer Info */
.footer-info {
  margin-top: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-copy-link {
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-copy-link:active {
  transform: scale(0.95);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  background: var(--modal-bg);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

@media (min-width: 540px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal-content {
    border-radius: 24px;
    max-height: 85vh;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--input-border);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #FFFFFF;
}

.bg-purple { background: var(--primary-purple); }

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.close-modal-btn {
  background: var(--input-bg);
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal-btn:hover {
  background: var(--input-border);
  color: var(--text-main);
}

/* Search Box inside Modal */
.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary-purple);
}

/* Materials List Grid */
.materials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.material-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
}

.material-disabled {
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .material-disabled {
  background: rgba(255, 255, 255, 0.03);
}

.red-pdf {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.grey-pdf {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.material-info {
  flex: 1;
}

.material-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-soon {
  color: var(--primary-yellow);
}

.material-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0;
}

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

.btn-download {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--primary-purple);
  color: #FFFFFF;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download:active {
  transform: scale(0.95);
}

.btn-disabled {
  background: var(--chip-bg);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--input-border);
}

/* QR Code Modal */
.qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.qr-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qr-code-box {
  padding: 16px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

.qr-url {
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--text-muted);
  word-break: break-all;
}

.btn-primary-full {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--primary-purple);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

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

.toast i {
  color: var(--primary-green);
  font-size: 1.1rem;
}
