/* ============================================
   Mobile App Announcement Bar
   ============================================ */

/* Hide by default on desktop */
.app-announcement-bar {
  display: none;
}

/* Mobile Only */
@media (max-width: 768px) {
  .app-announcement-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--imperial-purple) 0%, var(--deep-plum) 100%);
    color: var(--pearl-white);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
  }

  .app-announcement-bar.show {
    transform: translateY(0);
  }

  .app-announcement-bar.hide {
    transform: translateY(100%);
  }

  .app-announcement-bar__container {
    position: relative;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .app-announcement-bar__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--pearl-white);
    opacity: 0.6;
    transition: opacity 0.2s ease;
    z-index: 10;
  }

  .app-announcement-bar__close:active {
    opacity: 1;
  }

  .app-announcement-bar__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .app-announcement-bar__text {
    padding-right: 32px;
  }

  .app-announcement-bar__message {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pearl-white);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
  }

  .app-announcement-bar__submessage {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(253, 253, 249, 0.75);
    margin: 0;
  }

  .app-announcement-bar__badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .app-announcement-bar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.95;
  }

  .app-announcement-bar__badge:active {
    transform: scale(0.97);
    opacity: 1;
  }

  /* Google Play Badge */
  .app-announcement-bar__badge--google-play {
    width: 140px;
    height: 56px;
  }

  /* App Store Badge */
  .app-announcement-bar__badge--app-store {
    width: 122px;
    height: 41px;
  }

  .app-announcement-bar__badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
}
