/* Trial Banner Styles */
.trial-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001; /* Higher than header to appear above it */
  padding: 12px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.trial-banner-urgent {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border-bottom: 3px solid #e74c3c;
}

.trial-banner-info {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border-bottom: 3px solid #16a085;
}

.trial-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.trial-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-right: 8px;
}

.trial-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trial-banner-text strong {
  font-weight: 600;
  font-size: 15px;
}

.trial-banner-text span {
  opacity: 0.9;
  font-size: 13px;
}

.trial-banner-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.trial-banner-link:hover {
  opacity: 0.8;
}

.trial-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.trial-banner-button {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.trial-banner-button-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.trial-banner-button-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.trial-banner-button-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.trial-banner-button-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.trial-banner-dismiss {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
  opacity: 0.7;
}

.trial-banner-dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Adjust header and main content when banner is present */
body:has(.trial-banner) .app-header {
  top: 60px; /* Push header down by banner height */
}

body:has(.trial-banner) .main-content {
  margin-top: 120px; /* Banner height + header height */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .trial-banner {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .trial-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .trial-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .trial-banner-button {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }
  
  .trial-banner-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  
  body:has(.trial-banner) .app-header {
    top: 80px; /* Push header down by mobile banner height */
  }
  
  body:has(.trial-banner) .main-content {
    margin-top: 140px; /* Mobile banner height + header height */
  }
}

@media (max-width: 480px) {
  .trial-banner {
    padding: 8px 12px;
  }
  
  .trial-banner-text {
    font-size: 12px;
  }
  
  .trial-banner-text strong {
    font-size: 14px;
  }
  
  .trial-banner-button {
    font-size: 12px;
    padding: 8px 10px;
  }
}
