/* ==========================================================================
   MOBILE APP CSS - PWA DO ASSOCIADO (STP MOBILE)
   Carteirinha Digital Holográfica, QR Code, Interface de App & Ações Rápidas
   ========================================================================== */

.mobile-app-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 40px;
  width: 100%;
}

.mobile-device-frame {
  width: 100%;
  max-width: 440px;
  min-height: 840px;
  background: var(--bg-surface);
  border-radius: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 10px #1e293b;
  border: 4px solid #334155;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* App Header */
.app-mobile-header {
  background: linear-gradient(135deg, var(--stp-navy), var(--stp-blue-primary));
  color: #ffffff;
  padding: 24px 20px 20px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.4);
}

.app-mobile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-mobile-user-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-mobile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--stp-gold);
  object-fit: cover;
}

.app-mobile-user-greeting h4 {
  font-size: 16px;
  color: #ffffff;
  margin: 0;
}
.app-mobile-user-greeting span {
  font-size: 12px;
  color: var(--stp-gold);
  font-weight: 600;
}

/* CARTEIRINHA DIGITAL HOLOGRÁFICA */
.digital-id-card {
  background: linear-gradient(135deg, #0b2545 0%, #134074 50%, #007f5f 100%);
  border-radius: 20px;
  padding: 22px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 16px 20px;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}
.digital-id-card:hover {
  transform: translateY(-14px) rotateX(2deg);
}

.digital-id-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: rotate(30deg);
  pointer-events: none;
}

.id-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.id-card-brand h3 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.id-card-brand p {
  font-size: 10px;
  color: var(--stp-gold);
  text-transform: uppercase;
  font-weight: 600;
}

.id-card-status-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.id-card-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.id-card-photo {
  width: 68px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.id-card-details {
  flex: 1;
}

.id-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.id-card-field {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}
.id-card-field strong {
  color: #ffffff;
}

.id-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.id-card-qr-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border-radius: 8px;
  color: #0b2545;
  cursor: pointer;
}

.id-card-qr-box img, .id-card-qr-box canvas {
  width: 38px;
  height: 38px;
}

.id-card-qr-box span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Mobile Quick Actions Grid */
.app-mobile-content {
  flex: 1;
  padding: 0 16px 80px;
  overflow-y: auto;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--stp-blue-accent);
  box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.quick-action-icon.pousada { background: #dbeafe; color: #1d4ed8; }
.quick-action-icon.juridico { background: #fee2e2; color: #b91c1c; }
.quick-action-icon.pix { background: #cffafe; color: #0891b2; }
.quick-action-icon.convenios { background: #fef3c7; color: #b45309; }
.quick-action-icon.cct { background: #dcfce7; color: #15803d; }
.quick-action-icon.denuncia { background: #f3e8ff; color: #7e22ce; }

.quick-action-card span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

/* Bottom App Navigation Bar */
.app-mobile-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 50;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.mobile-nav-item i {
  font-size: 18px;
}
.mobile-nav-item.active {
  color: var(--stp-blue-accent);
}
