/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main container - Instagram-inspired layout */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header - Instagram-style top bar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 0 16px;
}

.header-logo {
  font-family: "ccsignlanguage", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}

/* Main content area */
.content {
  flex: 1;
  padding-top: 60px; /* Account for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
  min-height: calc(100vh - 60px);
}

/* Logo and brand section */
.brand-section {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-image {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.brand-title {
  font-family: "ccsignlanguage", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 3rem;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 6px rgba(255,255,255,0.3);
  color: #fff;
}

.brand-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.8;
  margin: 0 0 2.5rem 0;
  text-shadow: 0 1px 3px rgba(255,255,255,0.25);
  color: #fff;
}

/* Instagram-style card container */
.card-container {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

/* Install banner - Instagram-style bottom notification */
.install-banner {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 360px;
  width: calc(100% - 2rem);
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.install-banner.show {
  display: flex;
}

.install-text {
  flex-grow: 1;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  color: #fff;
}

.install-button {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: 80px;
}

.install-button:hover {
  background: #e0e0e0;
  transform: scale(1.02);
}

.install-button:active {
  transform: scale(0.98);
}

.install-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Version info */
.version-info {
  position: fixed;
  bottom: 0.5rem;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
  margin: 0;
  font-weight: 400;
  z-index: 1;
}

/* Responsive design - Desktop styles */
@media (min-width: 768px) {
  .header {
    height: 70px;
    padding: 0 2rem;
  }
  
  .header-logo {
    font-size: 1.75rem;
  }
  
  .content {
    padding-top: 70px;
    padding-left: 2rem;
    padding-right: 2rem;
    min-height: calc(100vh - 70px);
  }
  
  .brand-title {
    font-size: 4rem;
  }
  
  .brand-subtitle {
    font-size: 1.5rem;
  }
  
  .logo-image {
    width: 120px;
    height: 120px;
  }
  
  .card-container {
    max-width: 500px;
    padding: 2.5rem;
  }
  
  .install-banner {
    max-width: 420px;
    padding: 1.25rem 2rem;
  }
  
  .install-text {
    font-size: 1rem;
  }
  
  .install-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: 100px;
  }
}

@media (min-width: 1024px) {
  .main-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card-container {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .install-banner {
    border: 2px solid rgba(255, 255, 255, 0.4);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .logo-image:hover {
    transform: none;
  }
  
  .install-button:hover {
    transform: none;
  }
  
  .install-button:active {
    transform: none;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

/* Focus styles for accessibility */
.install-button:focus,
.install-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .install-banner,
  .version-info {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .content {
    padding-top: 0;
  }
}
