/**
 * TCC PWA - Banner & Offline Styles
 */

/* ========== INSTALL BANNER ========== */
.tcc-install-banner {
  position: fixed;
  bottom: -100px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, #C8102E 0%, #6A0DAD 100%);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 16px;
  z-index: 9998;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tcc-install-banner.show {
  bottom: 24px;
}

.tcc-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tcc-install-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.tcc-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tcc-install-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #FFB800;
}

.tcc-install-text span {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.4;
}

.tcc-install-btn {
  background: #FFB800;
  color: #0D0D1A;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tcc-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

.tcc-install-close {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tcc-install-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* iOS Variante */
.tcc-install-ios .tcc-share-icon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ========== UPDATE BANNER ========== */
.tcc-update-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #2E7D32;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.4s ease-out;
  font-size: 14px;
}

.tcc-update-banner button {
  background: #fff;
  color: #2E7D32;
  border: none;
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

@keyframes slideDown {
  from { transform: translate(-50%, -100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ========== OFFLINE INDICATOR ========== */
#tcc-offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #C8102E;
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  z-index: 9997;
  animation: slideDown 0.3s ease-out;
}

/* ========== PWA STANDALONE MODE ========== */
.pwa-standalone .site-header,
.pwa-standalone .top-bar {
  padding-top: env(safe-area-inset-top);
}

.pwa-standalone .site-footer {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Hide browser-only elements when in app mode */
.pwa-standalone .browser-only {
  display: none !important;
}

/* ========== PUSH ENABLE BUTTON ========== */
.tcc-push-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C8102E;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tcc-push-toggle:hover {
  background: #A00D26;
  transform: translateY(-1px);
}

.tcc-push-toggle.active {
  background: #2E7D32;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .tcc-install-banner {
    left: 8px;
    right: 8px;
    padding: 12px;
  }
  .tcc-install-icon { font-size: 24px; }
  .tcc-install-text strong { font-size: 14px; }
  .tcc-install-text span { font-size: 11px; }
  .tcc-install-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}
