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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
}

/* Header matching Layout component */
.header {
  background: white;
  border-bottom: 1px solid #e5e5e7;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Auth buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-btn {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: #f5f5f7;
}

.register-btn {
  color: white;
  background: #007aff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.register-btn:hover {
  background: #0056b3;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-image {
  object-fit: contain;
  border-radius: 4px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #007aff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Download page content */
.download-page {
  padding: 60px 0 20px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.download-header {
  margin-bottom: 48px;
}

.download-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1d1d1f;
}

.download-description {
  font-size: 1.125rem;
  color: #6e6e73;
  line-height: 1.6;
}

.download-main {
  margin-bottom: 48px;
}

.download-card-container {
  margin-bottom: 32px;
}

/* Download card link wrapper */
.download-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  max-width: 600px;
  margin: 0 auto 16px auto;
}

/* Horizontal download card with blue gradient */
.download-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  color: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.25);
  transition: all 0.3s ease;
  height: 70px;
  cursor: pointer;
}

.download-card-link:hover .download-card {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4);
}

.download-card-left {
  margin-right: 16px;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-icon svg {
  color: rgba(255, 255, 255, 0.95);
}

.download-card-center {
  flex: 1;
  text-align: left;
}

.file-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: white;
  line-height: 1.2;
}

.file-subtitle {
  font-size: 13px;
  margin: 0;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}

.download-card-right {
  margin-left: 16px;
}

.download-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.download-card-link:hover .download-action-button {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Share section */
.share-section {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #6e6e73;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-button:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
  transform: translateY(-1px);
}

/* Download info */
.download-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e7;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #6e6e73;
}

.info-value {
  font-weight: 500;
  color: #1d1d1f;
}

/* Security notice */
.download-footer {
  margin-top: 32px;
}

.security-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f5f5f7;
  border-radius: 8px;
  color: #6e6e73;
  font-size: 14px;
}

.security-notice .shield-icon {
  width: 16px;
  height: 16px;
  color: #34c759;
}

/* Footer */
.footer {
  background: #f5f5f7;
  border-top: 1px solid #e5e5e7;
  padding: 48px 0 24px;
  margin-top: 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  margin-bottom: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

.footer-section p {
  color: #6e6e73;
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #6e6e73;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: #007aff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #e5e5e7;
  text-align: center;
}

.footer-bottom p {
  color: #6e6e73;
  font-size: 14px;
}

@media (max-width: 768px) {
  .download-card {
    /* Keep horizontal layout on mobile, just adjust padding */
    padding: 14px 16px;
    height: 65px;
  }
  
  .download-card-link {
    margin: 0 auto 16px auto;
  }
  
  .file-name {
    font-size: 16px;
  }
  
  .file-subtitle {
    font-size: 12px;
  }
  
  .download-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Mobile responsive auth buttons */
  .auth-buttons {
    gap: 8px;
  }

  .login-btn,
  .register-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
}