/* Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: 
    radial-gradient(circle at 20% 80%, #2a2a2a 0%, #1a1a1a 50%, #000000 100%),
    repeating-linear-gradient(45deg, #1a1a1a 0px, #1a1a1a 1px, #000000 1px, #000000 2px);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.4;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background: 
    linear-gradient(135deg, #000000 0%, #1a1a1a 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  border: 2px solid #333;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

header h1 {
  font-size: 3.5rem;
  color: #ffffff;
  text-shadow: 
    2px 2px 0px #000000,
    4px 4px 0px #666666;
  margin-bottom: 15px;
  letter-spacing: 4px;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  font-family: 'Orbitron', sans-serif;
}

header h1::after {
  display: none;
}

header p {
  font-size: 1.1rem;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
}

.editor-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 25px;
  align-items: start;
}

.controls-panel {
  background: 
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 2px solid #333;
  border-radius: 0;
  padding: 25px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.controls-panel::before {
  content: "CONTROL PANEL";
  position: absolute;
  top: -12px;
  left: 20px;
  background: #000;
  color: #fff;
  padding: 0 15px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.canvas-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.canvas-container {
  background: #000000;
  border: 3px solid #333;
  border-radius: 0;
  padding: 25px;
  box-shadow: 
    0 4px 25px rgba(0, 0, 0, 0.9),
    inset 0 0 50px rgba(255, 255, 255, 0.05);
  position: relative;
  width: 100%;
}

.canvas-container::before {
  content: "DISPLAY UNIT";
  position: absolute;
  top: -12px;
  left: 20px;
  background: #000;
  color: #fff;
  padding: 0 15px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#pfpCanvas {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 1px solid #444;
  background: #1a1a1a;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.action-btn {
  background: 
    linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
  color: #ffffff;
  border: 2px solid #444;
  padding: 14px 28px;
  border-radius: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 140px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.action-btn:hover {
  background: 
    linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  border-color: #666;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:active {
  transform: translateY(0);
  background: 
    linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

/* Controls Styling */
.pfp-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trait-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111111;
  padding: 15px;
  border: 1px solid #333;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

.trait-row:hover {
  border-color: #666;
  background: #1a1a1a;
}

.trait-row .arrow {
  background: #333;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  user-select: none;
  border: 1px solid #555;
  font-size: 1.1rem;
}

.trait-row .arrow:hover {
  background: #555;
  border-color: #777;
  transform: scale(1.05);
}

.trait-row span {
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  flex: 1;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.text-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111111;
  padding: 15px;
  border: 1px solid #333;
  border-radius: 0;
}

.text-control-row span {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.text-control-row input {
  flex: 1;
  background: #000000;
  border: 1px solid #444;
  border-radius: 0;
  padding: 10px 12px;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.text-control-row input:focus {
  outline: none;
  border-color: #666;
  background: #0a0a0a;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.text-control-row input::placeholder {
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status indicators */
.trait-row::after {
  content: "■";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* social buttons */
.social-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.social-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  color: #ffffff;
  border: 2px solid #444;
  padding: 12px 20px;
  border-radius: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 120px;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-btn:hover {
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  border-color: #666;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.social-btn:active {
  transform: translateY(0);
}

.social-btn.twitter {
  border-color: #1da1f2;
}

.social-btn.dexs {
  border-color: #00d1b2;
}

.social-btn.contract {
  border-color: #ff4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .editor-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .controls-panel {
    order: 2;
  }
  
  .canvas-panel {
    order: 1;
  }
  
  header h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header {
    padding: 20px 15px;
    margin-bottom: 25px;
  }
  
  header h1 {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    min-width: auto;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  
  .social-btn {
    width: 100%;
    min-width: auto;
  }
  
  #pfpCanvas {
    width: 100%;
    height: auto;
  }
  
  .editor-container {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  
  header p {
    font-size: 0.9rem;
  }
  
  .controls-panel,
  .canvas-container {
    padding: 15px;
  }
  
  .trait-row,
  .text-control-row {
    padding: 12px;
  }
}
