:root {
  --gradient-start: #6366f1;
  --gradient-end: #3b82f6;
  --bg-dark: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent: #8b5cf6;
  --success: #10b981;
  --border-radius: 16px;
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  /* https://grabient.com/HQRgnADANKAsIxAVgMwxQNmsATBtoAHGDBgOwLBIgHXQjAZgkNk5oNMhA?style=linearGradient&steps=13&angle=90 */

  background: linear-gradient(
    90deg,
    rgba(20, 25, 22, 1) 0%,
    rgba(51, 43, 34, 1) 8.333%,
    rgba(83, 60, 47, 1) 16.667%,
    rgba(110, 76, 59, 1) 25%,
    rgba(130, 89, 70, 1) 33.333%,
    rgba(139, 98, 79, 1) 41.667%,
    rgba(138, 102, 84, 1) 50%,
    rgba(126, 102, 87, 1) 58.333%,
    rgba(104, 98, 86, 1) 66.667%,
    rgba(76, 88, 82, 1) 75%,
    rgba(44, 75, 75, 1) 83.333%,
    rgba(12, 59, 65, 1) 91.667%,
    rgba(0, 42, 54, 1) 100%
  );
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.logo i {
  font-size: 2rem;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-left: auto;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0;
  color: white;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

/* Ad Banner */
.ad-banner {
  background: var(--card-bg);
  margin: 40px 0;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px dashed #e2e8f0;
  backdrop-filter: blur(10px);
}

.ad-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin: 60px 0;
}

.generator-section {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

/* Platform Selection */
.platform-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.platform-card {
  padding: 24px;
  border-radius: var(--border-radius);
  border: 2px solid #e2e8f0;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.platform-card.active {
  border: 2px solid var(--gradient-start);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.midjourney-icon {
  color: #ff6b6b;
}

.chatgpt-icon {
  color: #10b981;
}

.platform-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Input Area */
.input-section {
  margin-bottom: 30px;
}

.input-label {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.input-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
  background: white;
}

.input-textarea:focus {
  outline: none;
  border-color: var(--gradient-start);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.char-counter {
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Generate Button */
.generate-button {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.generate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.generate-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Output Section */
.output-section {
  display: none;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  );
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius);
  padding: 24px;
}

.output-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.output-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
}

.copy-button {
  background: var(--success);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-button:hover {
  background: #059669;
  transform: translateY(-1px);
}

.copy-feedback {
  display: none;
  color: var(--success);
  font-weight: 500;
  margin-left: 12px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-ad {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  border: 2px dashed #e2e8f0;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
}

/* Features Section */
.features-section {
  margin: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Examples Section */
.examples-section {
  margin: 80px 0;
}

.examples-grid {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

.example-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.example-input {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.example-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 15px 0;
}

.example-output {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  );
  border-radius: 8px;
  padding: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
  padding: 40px 0;
  margin-top: 80px;
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
}

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

  .sidebar {
    order: -1;
  }

  .sidebar-ad {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .platform-selection {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0;
  }

  .generator-section {
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
  animation: slideUp 0.5s ease-out;
}

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