/* PFP Generator Styles */

.pfp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.pfp-header {
  text-align: center;
  margin-bottom: 48px;
}

.pfp-header h1 {
  font-size: 42px;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #00e0ff, #2b8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pfp-header p {
  color: var(--subtle);
  font-size: 16px;
  margin: 0;
}

.pfp-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.base-wall-preview {
  background: #121212;
  border: 1px solid #272727;
  border-radius: 12px;
  padding: 24px;
  overflow: visible;
}

.base-wall-preview h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--fg);
}

.wall-image-container {
  position: relative;
  border-radius: 8px;
  overflow: visible;
  background: #ffffff;
  width: 100%;
}

.wall-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
}

.wall-placeholder-content {
  width: 80%;
  height: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wall-placeholder-object {
  width: 60%;
  height: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  border-radius: 20px 20px 5px 5px;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.wall-placeholder-object::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.wall-placeholder-object::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
}

.wall-placeholder-text {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  font-family: 'Arial Black', sans-serif;
}

.wall-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
}

.generator-form {
  background: #121212;
  border: 1px solid #272727;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.generator-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
}

.generator-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #272727;
  background: #0b0b0b;
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}

.generator-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.char-count {
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  color: var(--subtle);
}

.generate-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, #00e0ff, #2b8cff);
  color: #061318;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 255, 0.3);
}

.generate-btn:active {
  transform: translateY(0);
}

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-state,
.error-state {
  background: #121212;
  border: 1px solid #272727;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--subtle);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #272727;
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

.error-state {
  color: #ff6b6b;
}

.retry-btn {
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid #ff6b6b;
  background: transparent;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: #ff6b6b;
  color: #0b0b0b;
}

.result-container {
  background: #121212;
  border: 1px solid #272727;
  border-radius: 12px;
  padding: 24px;
}

.result-container h3 {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--fg);
}

.result-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0b0b0b;
  aspect-ratio: 1;
  margin-bottom: 20px;
}

.result-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.result-actions {
  display: flex;
  gap: 12px;
}

.download-btn,
.generate-another-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: linear-gradient(90deg, #00e0ff, #2b8cff);
  color: #061318;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn:hover,
.generate-another-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 224, 255, 0.3);
}

.generate-another-btn {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.generate-another-btn:hover {
  background: var(--accent);
  color: #061318;
}

.pfp-info {
  background: #121212;
  border: 1px solid #272727;
  border-radius: 12px;
  padding: 32px;
  margin-top: 48px;
}

.pfp-info h3 {
  margin: 0 0 20px;
  font-size: 22px;
  color: var(--accent);
}

.pfp-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pfp-info li {
  padding: 12px 0;
  color: var(--fg);
  padding-left: 24px;
  position: relative;
}

.pfp-info li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 968px) {
  .pfp-content {
    grid-template-columns: 1fr;
  }

  .pfp-header h1 {
    font-size: 32px;
  }
}

