/* ==========================================================================
   PixelTimer — Google Play Store Asset Studio Stylesheet
   Modern Retro-Cyberpunk Glassmorphism | Dark Mode First
   ========================================================================== */

@font-face {
  font-family: 'Pixelify Sans';
  src: url('assets/fonts/pixelify_sans.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'VT323';
  src: url('assets/fonts/vt323_regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg-deep: #03070c;
  --bg-navy: #050c14;
  --bg-panel: #07111a;
  --bg-panel-elevated: #0d1d29;
  --bg-card: rgba(10, 21, 29, 0.85);
  --bg-card-hover: rgba(16, 33, 44, 0.95);
  
  --border-subtle: #13202a;
  --border-pixel: #1e3a2f;
  --border-active: #8cd674;
  --border-glow: rgba(140, 214, 116, 0.4);

  --accent-mint: #8cd674;
  --accent-mint-light: #abf195;
  --accent-green: #537359;
  --accent-gold: #f4c062;
  --accent-purple: #7d65ab;
  --accent-coral: #e06c75;
  --accent-cyan: #56b6c2;

  --text-cream: #f4ece1;
  --text-muted: #aaa8a2;
  --text-dim: #707d76;
  --text-dark: #050c14;

  --font-pixel: 'Pixelify Sans', system-ui, sans-serif;
  --font-digit: 'VT323', monospace;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-pixel: 0 4px 0 #0d1e16;
  --shadow-glow: 0 0 25px rgba(140, 214, 116, 0.3);
  --shadow-glow-gold: 0 0 25px rgba(244, 192, 98, 0.3);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-cream);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(140, 214, 116, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(125, 101, 171, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(19, 32, 42, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 42, 0.3) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* --------------------------------------------------------------------------
   Header Bar
   -------------------------------------------------------------------------- */
.studio-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 12, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 28px;
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1a3b2e 0%, #0d1e16 100%);
  border: 2px solid var(--accent-mint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 15px rgba(140, 214, 116, 0.25);
}

.brand-text h1 {
  font-family: var(--font-pixel);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text-cream);
  line-height: 1.1;
}

.brand-text h1 span {
  color: var(--accent-mint);
}

.brand-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(244, 192, 98, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(140, 214, 116, 0.1);
  border: 1px solid rgba(140, 214, 116, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-mint);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   Buttons & Micro-interactions
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #8cd674 0%, #6cb456 100%);
  color: #050c14;
  box-shadow: 0 4px 14px rgba(140, 214, 116, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 214, 116, 0.5);
  background: linear-gradient(135deg, #9fe688 0%, #7ec668 100%);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-zip {
  background: linear-gradient(135deg, #f4c062 0%, #d49f43 100%);
  color: #050c14;
  font-size: 14px;
  padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(244, 192, 98, 0.35);
  font-weight: 700;
}

.btn-zip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 192, 98, 0.55);
  background: linear-gradient(135deg, #ffd37f 0%, #e6af4f 100%);
}

.btn-secondary {
  background: var(--bg-panel-elevated);
  color: var(--text-cream);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-cream);
  border-color: var(--text-dim);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Tabs Navigation
   -------------------------------------------------------------------------- */
.studio-tabs-bar {
  background: rgba(7, 17, 26, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
}

.tabs-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-item:hover {
  color: var(--text-cream);
}

.tab-item.active {
  color: var(--accent-mint);
  border-bottom-color: var(--accent-mint);
  font-weight: 600;
}

.tab-badge {
  font-size: 10px;
  background: rgba(140, 214, 116, 0.15);
  color: var(--accent-mint);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Main Workspace Container
   -------------------------------------------------------------------------- */
.studio-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Overview Hero / Quick Download Banner
   -------------------------------------------------------------------------- */
.download-hero-card {
  background: linear-gradient(135deg, rgba(13, 29, 41, 0.9) 0%, rgba(7, 17, 26, 0.9) 100%);
  border: 1px solid var(--border-pixel);
  border-radius: 16px;
  padding: 28px 36px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.download-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-mint), var(--accent-gold), transparent);
}

.hero-text-content h2 {
  font-family: var(--font-pixel);
  font-size: 26px;
  color: var(--text-cream);
  margin-bottom: 6px;
}

.hero-text-content h2 span {
  color: var(--accent-mint);
}

.hero-text-content p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 680px;
  line-height: 1.5;
}

.hero-badges-list {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.asset-spec-pill {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-cream);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.asset-spec-pill span {
  color: var(--accent-mint);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span.count {
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Asset Cards Grid
   -------------------------------------------------------------------------- */
.assets-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.grid-icon-feature {
  grid-template-columns: 380px 1fr;
}

.grid-screenshots {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (max-width: 1024px) {
  .grid-icon-feature {
    grid-template-columns: 1fr;
  }
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.asset-card:hover {
  border-color: rgba(140, 214, 116, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.asset-card-header {
  padding: 14px 18px;
  background: rgba(7, 17, 26, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asset-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-dimensions {
  font-size: 11px;
  font-family: var(--font-digit);
  letter-spacing: 1px;
  color: var(--accent-gold);
  background: rgba(244, 192, 98, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.asset-canvas-wrapper {
  background: #020508;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.asset-canvas-wrapper.screenshot-wrapper {
  min-height: 480px;
  padding: 24px;
}

.asset-canvas-wrapper canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: block;
}

.asset-canvas-wrapper.icon-wrapper canvas {
  width: 200px;
  height: 200px;
  border-radius: 44px;
}

.asset-canvas-wrapper.feature-wrapper canvas {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.asset-canvas-wrapper.screenshot-wrapper canvas {
  width: auto;
  max-height: 440px;
  border-radius: 12px;
}

.asset-card-footer {
  padding: 14px 18px;
  background: rgba(7, 17, 26, 0.6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-notes {
  font-size: 12px;
  color: var(--text-dim);
}

.asset-card-actions {
  display: flex;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Google Play Store Simulator
   -------------------------------------------------------------------------- */
.playstore-sim-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #1f1f1f;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid #333;
}

.sim-top-nav {
  background: #1f1f1f;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a2a2a;
}

.sim-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #e3e3e3;
  font-size: 18px;
}

.sim-nav-right {
  display: flex;
  gap: 18px;
  color: #e3e3e3;
  font-size: 18px;
}

.sim-content {
  padding: 24px;
}

.sim-app-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.sim-app-icon-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  background: #000;
}

.sim-app-meta h2 {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.sim-developer {
  font-size: 14px;
  color: #01875f;
  font-weight: 500;
  margin-bottom: 4px;
}

.sim-tags {
  font-size: 12px;
  color: #9aa0a6;
}

.sim-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid #2d2d2d;
  border-bottom: 1px solid #2d2d2d;
  margin-bottom: 24px;
  text-align: center;
}

.sim-stat-item {
  flex: 1;
}

.sim-stat-item:not(:last-child) {
  border-right: 1px solid #2d2d2d;
}

.sim-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sim-stat-sub {
  font-size: 11px;
  color: #9aa0a6;
  margin-top: 2px;
}

.sim-install-btn {
  width: 100%;
  background: #01875f;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.2s;
}

.sim-install-btn:hover {
  background: #017250;
}

.sim-feature-graphic-preview {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.sim-feature-graphic-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.sim-screenshots-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.sim-screenshot-thumb {
  height: 380px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.sim-section-heading {
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-description-text {
  font-size: 14px;
  color: #bdc1c6;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Listing Copy Helper
   -------------------------------------------------------------------------- */
.copy-grid {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.copy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.copy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.copy-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.char-counter {
  font-size: 12px;
  color: var(--text-muted);
}

.char-counter.valid {
  color: var(--accent-mint);
}

.copy-input {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-cream);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.copy-input:focus {
  border-color: var(--accent-mint);
}

.copy-textarea {
  min-height: 240px;
  line-height: 1.6;
  resize: vertical;
  font-family: monospace;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Toast Notifications & Modal
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0d1d29;
  border: 1px solid var(--accent-mint);
  color: var(--text-cream);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Progress Overlay for ZIP Generation */
.progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.progress-overlay.active {
  display: flex;
}

.progress-box {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-pixel);
  border-radius: 16px;
  padding: 36px 48px;
  text-align: center;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.progress-box h3 {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.progress-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold));
  transition: width 0.2s ease;
}

.progress-status-txt {
  font-size: 12px;
  color: var(--accent-mint);
  font-weight: 500;
}

/* Fullscreen Preview Modal */
.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 8, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.preview-modal.active {
  display: flex;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-img-container {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-img-title {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-cream);
  font-weight: 500;
}
