/* Changelog Modal Styles */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10002;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

.modal-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.modal-content {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--card) 50%, transparent);
}

.modal-title {
  margin: 0 0 4px 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-version {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border-radius: 6px;
}

.modal-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.modal-close-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border-color: var(--line);
  color: var(--ink);
}

.modal-tabs {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 30%, transparent);
}

.modal-tab {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.modal-tab:hover {
  color: var(--ink);
}

.modal-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scroll-behavior: smooth;
}

.loading-state {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-style: italic;
}

.built-with-intro {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tech-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.tech-card:hover::before {
  opacity: 1;
}

/* Tech Card Colors */
.tech-card.html5 { border-bottom: 3px solid #e34c26; }
.tech-card.css3 { border-bottom: 3px solid #264de4; }
.tech-card.js { border-bottom: 3px solid #f7df1e; }
.tech-card.nodejs { border-bottom: 3px solid #68a063; }
.tech-card.hono { border-bottom: 3px solid #ff6b35; }
.tech-card.npm { border-bottom: 3px solid #cb3837; }
.tech-card.docker { border-bottom: 3px solid #2496ed; }
.tech-card.traefik { border-bottom: 3px solid #24a1c1; }
.tech-card.linux { border-bottom: 3px solid #0db7ed; }
.tech-card.rest { border-bottom: 3px solid #8b5cf6; }
.tech-card.git { border-bottom: 3px solid #f05032; }
.tech-card.nivram { border-bottom: 3px solid #00d4aa; }

.tech-icon {
  font-size: 26px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tech-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 2px;
}

.tech-desc {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.about-card {
  margin-top: 20px;
  padding: 16px;
  background: color-mix(in srgb, var(--card) 50%, transparent);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.about-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.full-changelog-link {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.full-changelog-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.close-btn {
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--card) 90%, black));
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--muted);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes techInfoSlideIn {
  from { opacity:0; transform:scale(0.95) translateY(10px); }
  to { opacity:1; transform:scale(1) translateY(0); }
}

/* Scrollbar within modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

