/* ===================================
   Color Palette Generator - InstaBooster 2025
   Diseño Premium, Moderno y Funcional
   =================================== */

:root {
  --primary-color: #e61c72;
  --primary-dark: #c41861;
  --primary-light: #ff4d94;
  --accent-color: #ff4d94;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --text-dark: #1a202c;
  --text-gray: #4a5568;
  --text-light: #718096;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-light-pink: #fef7f0;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(230, 28, 114, 0.1);
  --transition: all 0.3s ease;
  --border-radius-sm: 10px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

.palette-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

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

/* ===================================
   Hero Section
   =================================== */
.palette-hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 50%, #9c27b0 100%);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.4"><circle cx="30" cy="30" r="3"/></g></svg>') repeat;
}

.floating-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(78,205,196,0.1));
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 10%;
  animation-delay: 5s;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,107,107,0.1));
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: -50px;
  animation-delay: 10s;
  background: linear-gradient(135deg, rgba(155,89,182,0.1), rgba(52,152,219,0.1));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0;
  font-weight: 400;
}

/* ===================================
   Generator Section
   =================================== */
.generator-section {
  padding: 80px 0;
  position: relative;
  margin-top: -40px;
}

.generator-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

/* ===================================
   Generator Card
   =================================== */
.generator-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.generator-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--bg-light);
}

.header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light), #9c27b0);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.header-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-dark);
}

.header-text p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

/* ===================================
   Style Selector
   =================================== */
.style-selector {
  margin-bottom: 32px;
}

.selector-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.selector-label svg {
  color: var(--primary-color);
}

.style-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.style-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
}

.style-tab:hover {
  background: var(--bg-light-pink);
  border-color: var(--primary-light);
}

.style-tab.active {
  background: linear-gradient(135deg, rgba(230, 28, 114, 0.1), rgba(156, 39, 176, 0.1));
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.style-preview {
  width: 100%;
  height: 24px;
  border-radius: 6px;
  display: flex;
}

.soft-minimal-preview {
  background: linear-gradient(90deg, #F5F0EB 0%, #E8DCD0 33%, #D4C5B5 66%, #C4B7A6 100%);
}

.earth-tones-preview {
  background: linear-gradient(90deg, #A67C52 0%, #8B6914 33%, #5D4E37 66%, #3D2914 100%);
}

.vibrant-pop-preview {
  background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 33%, #FFE66D 66%, #95E1D3 100%);
}

.dark-moody-preview {
  background: linear-gradient(90deg, #1A1A2E 0%, #16213E 33%, #0F3460 66%, #533483 100%);
}

.pastel-dream-preview {
  background: linear-gradient(90deg, #FFD1DC 0%, #BFEFFF 33%, #E0BBE4 66%, #FFEFD5 100%);
}

.luxury-gold-preview {
  background: linear-gradient(90deg, #1C1C1C 0%, #B8860B 33%, #D4AF37 66%, #F5F5DC 100%);
}

/* ===================================
   Color Mode Selector
   =================================== */
.color-mode-selector {
  margin-bottom: 32px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mode-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray);
}

.mode-tab:hover {
  background: var(--bg-light-pink);
  border-color: var(--primary-light);
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-color: var(--primary-color);
  color: white;
}

.mode-tab svg {
  width: 20px;
  height: 20px;
}

/* ===================================
   Color Picker
   =================================== */
.color-picker-section {
  margin-bottom: 32px;
}

.color-picker-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.color-input {
  width: 60px;
  height: 48px;
  padding: 4px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.color-input:hover,
.color-input:focus {
  border-color: var(--primary-color);
}

.hex-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 16px;
  font-family: 'Monaco', 'Consolas', monospace;
  text-transform: uppercase;
  transition: var(--transition);
}

.hex-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 28, 114, 0.1);
}

.random-color-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  white-space: nowrap;
}

.random-color-btn:hover {
  background: var(--bg-light-pink);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.input-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===================================
   Generate Button
   =================================== */
.generate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light), #9c27b0);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(230, 28, 114, 0.3);
}

.generate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 28, 114, 0.4);
}

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

/* ===================================
   Palette Result
   =================================== */
.palette-result {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(230, 28, 114, 0.03), rgba(156, 39, 176, 0.03));
  border-radius: var(--border-radius-md);
  border: 2px solid var(--primary-light);
  animation: slideIn 0.5s ease;
  display: none;
}

.palette-result.visible {
  display: block;
}

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

.palette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.palette-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
}

.action-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ===================================
   Color Swatches
   =================================== */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

.color-swatch:nth-child(1) { animation-delay: 0.1s; }
.color-swatch:nth-child(2) { animation-delay: 0.2s; }
.color-swatch:nth-child(3) { animation-delay: 0.3s; }
.color-swatch:nth-child(4) { animation-delay: 0.4s; }
.color-swatch:nth-child(5) { animation-delay: 0.5s; }

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

.swatch-color {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.swatch-color:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.swatch-color::after {
  content: 'Copiar';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.swatch-color:hover::after {
  opacity: 1;
}

.swatch-info {
  text-align: center;
}

.swatch-hex {
  display: block;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.swatch-name {
  font-size: 11px;
  color: var(--text-light);
}

/* ===================================
   Feed Preview
   =================================== */
.feed-preview-section {
  margin-bottom: 32px;
}

.feed-preview-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-dark);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow);
}

.feed-item {
  aspect-ratio: 1;
  border-radius: 4px;
  transition: var(--transition);
}

.feed-item:hover {
  transform: scale(1.02);
}

/* ===================================
   Export Section
   =================================== */
.export-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-dark);
}

.export-buttons {
  display: flex;
  gap: 12px;
}

.export-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}

.export-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ===================================
   Info Sidebar
   =================================== */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light-pink);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-dark);
}

.info-card p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

/* Trends Card */
.trends-card {
  background: linear-gradient(135deg, #FFF8F0, #FFF);
  border: 2px solid #F5DEB3;
}

.trends-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trend-color {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.trend-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.trend-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.tips-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--bg-light);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.cta-card .cta-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}

.cta-card h3 {
  color: white;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-button-sidebar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: var(--primary-color);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  margin-top: 16px;
}

.cta-button-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--primary-color);
}

/* ===================================
   Premade Palettes Section
   =================================== */
.premade-section {
  padding: 80px 0;
  background: white;
}

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

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--text-dark);
}

.section-header p {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0;
}

.premade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.premade-card {
  background: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.premade-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.premade-colors {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.premade-colors span {
  flex: 1;
  transition: var(--transition);
}

.premade-card:hover .premade-colors span {
  transform: scaleY(1.1);
}

.premade-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-dark);
}

.premade-info p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 16px 0;
}

.use-palette-btn {
  width: 100%;
  padding: 12px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}

.use-palette-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ===================================
   Theory Section
   =================================== */
.theory-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.theory-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}

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

.theory-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--text-dark);
}

.theory-header p {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0;
}

.theory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.theory-item {
  text-align: center;
}

.theory-color {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.theory-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-dark);
}

.theory-item p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

/* ===================================
   Final CTA Section
   =================================== */
.final-cta {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 50%, #9c27b0 100%);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="20" cy="20" r="2"/></g></svg>') repeat;
}

.floating-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.cta-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px 0;
}

.cta-content > p {
  font-size: 18px;
  opacity: 0.95;
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn-primary,
.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.cta-btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--primary-color);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  text-decoration: none;
  color: white;
}

/* ===================================
   Toast Notification
   =================================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {
  .premade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .generator-grid {
    grid-template-columns: 1fr;
  }

  .info-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .theory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .palette-hero {
    padding: 80px 0 60px;
  }

  .generator-section,
  .premade-section,
  .theory-section {
    padding: 60px 0;
  }

  .generator-card {
    padding: 28px;
  }

  .theory-card {
    padding: 32px 24px;
  }

  .info-sidebar {
    grid-template-columns: 1fr;
  }

  .style-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .mode-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-swatches {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .premade-grid {
    grid-template-columns: 1fr;
  }

  .theory-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-header h2,
  .theory-header h2 {
    font-size: 28px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .final-cta {
    padding: 80px 0;
  }

  .color-picker-wrapper {
    flex-wrap: wrap;
  }

  .hex-input {
    order: 2;
    flex: 100%;
  }

  .random-color-btn {
    flex: 1;
  }

  .palette-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .export-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .style-tabs {
    grid-template-columns: 1fr;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
  }

  .generator-card,
  .info-card {
    padding: 20px;
  }

  .color-swatches {
    grid-template-columns: repeat(3, 1fr);
  }

  .feed-grid {
    gap: 2px;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .palette-actions {
    flex-direction: column;
    width: 100%;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
