* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f6f8fa;
  color: #24292e;
  line-height: 1.6;
}

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

/* Navigation */
.navbar {
  background-color: #24292e;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Main Content */
.main-content {
  padding: 2rem 20px;
  min-height: calc(100vh - 80px);
}

.page {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #e1e4e8;
  padding-bottom: 1rem;
}

.page-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #586069;
}

/* Search Box */
.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
  border-color: #0366d6;
  box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.search-box button {
  padding: 0.75rem 2rem;
  background-color: #0366d6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-box button:hover {
  background-color: #0256c7;
}

/* Library Cards */
.library-card {
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}

.library-card:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.library-title {
  flex: 1;
}

.library-title h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.library-title h3 a {
  color: #0366d6;
  text-decoration: none;
}

.library-title h3 a:hover {
  text-decoration: underline;
}

.library-meta {
  display: flex;
  gap: 1rem;
  color: #586069;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.library-description {
  color: #586069;
  margin-bottom: 1rem;
}

.library-actions {
  display: flex;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #0366d6;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  width: 100%;
}

.btn-primary:hover {
  background-color: #0256c7;
}

.btn-subscribe {
  background-color: #28a745;
  color: white;
}

.btn-subscribe:hover {
  background-color: #218838;
}

.btn-unsubscribe {
  background-color: #dc3545;
  color: white;
}

.btn-unsubscribe:hover {
  background-color: #c82333;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Auth Forms */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #0366d6;
  box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  color: #586069;
}

.auth-switch a {
  color: #0366d6;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

.toast.info {
  background-color: #0366d6;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem;
  color: #586069;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #586069;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

/* Release Info */
.release-info {
  background-color: #f6f8fa;
  border-left: 4px solid #0366d6;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}

.release-info h4 {
  margin-bottom: 0.5rem;
}

.release-info .release-meta {
  color: #586069;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.release-notes {
  margin-top: 0.5rem;
  font-family: monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .library-header {
    flex-direction: column;
  }
  
  .library-meta {
    flex-wrap: wrap;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box button {
    width: 100%;
  }
}
