@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --bg-dark: #000000;
  --text-primary: #ffffff;
  --text-muted: #888888;
  --border-thick: 3px solid #ffffff;
  --border-thin: 2px solid #ffffff;
  --font-mono: 'Share Tech Mono', 'Courier New', Courier, monospace;
}

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

html, body {
  height: 100%;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.4;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
  
  /* Dark checkered dither background matching the app's texture style but toned down for legibility */
  background-image: repeating-conic-gradient(#161616 0% 25%, #000000 0% 50%);
  background-size: 8px 8px;
}

/* Standalone Retro Card Container */
.app-card {
  width: 100%;
  max-width: 860px;
  background: #000000;
  border: var(--border-thick);
  box-shadow: 10px 10px 0px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Calculator-style Title Bar */
.app-card-header {
  height: 52px;
  background: #000000;
  border-bottom: var(--border-thick);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.75rem;
}

.header-btn {
  width: 24px;
  height: 24px;
  border: var(--border-thick);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-btn.btn-min::after {
  content: "";
  display: block;
  width: 10px;
  height: 3px;
  background: #ffffff;
}

.header-title {
  flex-grow: 1;
  text-align: center;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Card Content Split-Pane */
.app-card-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

/* Left Column: Visual Preview (High-Contrast Dither background) */
.preview-pane {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  border-right: var(--border-thick);
}

.device-frame {
  width: 100%;
  border: var(--border-thick);
  background: #000000;
  padding: 4px;
  box-shadow: 8px 8px 0px #000000;
}

.device-content {
  line-height: 0;
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Right Column: Retro Terminal Pane */
.info-pane {
  padding: 2.5rem 2.25rem;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.badge {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: bold;
  color: #ffffff;
  border: var(--border-thin);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.05em;
}

.app-title {
  font-size: 2.75rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.tech-stack {
  font-size: 0.9rem;
  color: #ffffff;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-bottom: 1px dashed #ffffff;
  padding-bottom: 0.5rem;
}

.app-description {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
}

.action-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Retro Calculator Button Style */
.btn-download {
  background: #ffffff;
  color: #000000;
  border: var(--border-thick);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.15rem;
  padding: 0.8rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 4px 4px 0px #ffffff; /* Offset shadow matching retro button click depth */
  position: relative;
  text-transform: uppercase;
  transition: background 0.1s ease, color 0.1s ease;
}

.btn-download:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-download:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #ffffff;
}

.btn-download svg {
  stroke: currentColor;
}

.meta-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.meta-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-info svg {
  stroke: var(--text-muted);
}

/* Subtle Footer Note */
.footer-note {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  left: 0;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    padding: 2rem 1rem;
  }

  .app-card {
    max-width: 450px;
  }

  .app-card-header {
    height: 48px;
    padding: 0 1rem;
  }
  
  .header-title {
    font-size: 1.15rem;
  }

  .app-card-body {
    grid-template-columns: 1fr;
  }

  .preview-pane {
    border-right: none;
    border-bottom: var(--border-thick);
    padding: 2rem 1.5rem;
  }

  .info-pane {
    padding: 2rem 1.5rem;
  }

  .app-title {
    font-size: 2.25rem;
  }

  .footer-note {
    position: relative;
    bottom: 0;
    margin-top: 2rem;
  }
}
