/* Antigravity IDE Monochrome Gray Theme - Strictly Shades of Gray and White */
:root {
  --bg-app: #121212;
  --bg-surface: #181818;
  --bg-panel: #1f1f1f;
  --bg-element: #262626;
  --bg-hover: #303030;
  --bg-active: #3a3a3a;
  
  --border-subtle: #242424;
  --border-light: #333333;
  --border-strong: #454545;
  --border-focus: #707070;

  --text-white: #ffffff;
  --text-primary: #e0e0e0;
  --text-secondary: #aaaaaa;
  --text-muted: #737373;
  --text-dim: #555555;

  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --radius-sm: 3px;
  --radius-md: 5px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* Top IDE Window Header */
.ide-window-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  user-select: none;
}

.window-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-strong);
}

.ide-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background-color: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* 3 Main Top Navigation Buttons */
.top-navigation {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 0 16px;
}

.nav-buttons-container {
  display: flex;
  gap: 4px;
  max-width: 900px;
  margin: 0 auto;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-btn:hover {
  background-color: var(--bg-element);
  color: var(--text-white);
}

.nav-btn.active {
  background-color: var(--bg-app);
  color: var(--text-white);
  border-top: 2px solid var(--text-white);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 2px solid var(--bg-app);
  margin-bottom: -1px;
}

.nav-btn-icon {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-btn.active .nav-btn-icon {
  color: var(--text-white);
}

/* Main Container Layout */
.main-layout {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px 64px 16px;
}

/* Hero & Header Section */
.profile-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  overflow: hidden;
}

.panel-header {
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  padding: 24px;
}

.profile-intro h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.profile-intro .tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Key Value Spec Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.spec-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 13px;
  color: var(--text-white);
  font-weight: 500;
}

/* Content Sections */
.section-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  overflow: hidden;
}

/* Projects & Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px;
}

.project-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.project-card:hover {
  background-color: var(--bg-element);
  border-color: var(--border-strong);
}

.card-top {
  margin-bottom: 14px;
}

.card-filename {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 12px;
}

.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Notice / Alert Banners */
.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
}

.alert-success {
  background-color: var(--bg-element);
  border: 1px solid var(--border-strong);
  color: var(--text-white);
}

.alert-warning {
  background-color: var(--bg-element);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.alert-error {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-focus);
  color: var(--text-white);
}

/* Comment Section Styles */
.comment-section-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comment-form-container {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.form-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  background-color: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  background-color: var(--bg-panel);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.form-policy-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-submit {
  background-color: var(--bg-element);
  border: 1px solid var(--border-strong);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-submit:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-focus);
}

.btn-submit:active {
  background-color: var(--bg-active);
}

/* Comments Feed */
.comments-list-container {
  padding: 24px;
  background-color: var(--bg-surface);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.comments-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}

.comment-author {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-author-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.comment-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.comment-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.no-comments-msg {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
}

/* IDE Bottom Status Bar */
.ide-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  user-select: none;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Showcase & Gallery Styles */
.showcase-content {
  padding: 24px;
}

.showcase-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.showcase-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.showcase-header p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.gallery-section {
  margin-top: 24px;
  margin-bottom: 24px;
}

.gallery-title,
.features-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

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

.gallery-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gallery-card:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-element);
}

.gallery-card img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  display: block;
  background-color: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-caption {
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.features-block {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 20px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.features-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  position: relative;
  padding-left: 16px;
}

.features-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 10px;
}

.features-list li strong {
  color: var(--text-white);
}

/* Progress Timeline Styles (Compact side-by-side) */
.timeline-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border-light);
  margin-top: 14px;
  margin-left: 6px;
}

.timeline-item {
  position: relative;
}

.timeline-node {
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bg-app);
  border: 2px solid var(--border-strong);
}

.timeline-item.active .timeline-node {
  border-color: var(--text-white);
  background-color: var(--text-white);
}

.timeline-card-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: border-color 0.15s ease;
}

.timeline-card-content:hover {
  border-color: var(--border-strong);
}

.timeline-image-card {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background-color: #0c0c0c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.timeline-image-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.timeline-text-col {
  flex: 1;
  min-width: 0;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
/* Image Lightbox Modal */
.timeline-image-card img {
  cursor: pointer;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.timeline-image-card:hover img {
  opacity: 0.88;
  filter: brightness(1.08);
}

.image-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 14, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
  cursor: zoom-out;
}

.image-modal.open {
  display: flex;
}

.modal-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.modal-dialog img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  display: block;
}

.modal-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-white);
  text-align: center;
  max-width: 800px;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: -34px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-mono);
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-white);
}

/* Responsive */
@media (max-width: 600px) {
  .timeline-card-content {
    flex-direction: column;
  }
  .timeline-image-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
  .timeline-image-card img {
    height: 120px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .gallery-card img {
    height: 80px;
  }
  .gallery-card img,
  .gallery-card.featured-image img {
    height: 190px;
  }
  .nav-buttons-container {
    overflow-x: auto;
  }
  .nav-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .profile-intro h1 {
    font-size: 20px;
  }
  .panel-body,
  .comment-form-container,
  .comments-list-container,
  .showcase-content {
    padding: 16px;
  }
}

