/* Widget Styles - Bright Holographic Theme */

/* ==================== BASE ==================== */

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

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background: transparent;
  color: #1e293b;
}

/* ==================== CARD WIDGET (300x200) ==================== */

.widget-card {
  width: 300px;
  height: 200px;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.widget-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.widget-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.widget-card-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.widget-card-info {
  flex: 1;
}

.widget-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #fff;
}

.widget-card-type {
  font-size: 0.75rem;
  opacity: 0.8;
  color: #fff;
}

.widget-card-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.widget-card-stat {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
}

.widget-card-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.widget-card-stat-label {
  font-size: 0.625rem;
  opacity: 0.7;
  text-transform: uppercase;
  color: #fff;
}

.widget-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.widget-card-cta:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==================== BADGE WIDGET (200x60) ==================== */

.widget-badge {
  width: 200px;
  height: 60px;
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.widget-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.widget-badge-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.widget-badge-info {
  flex: 1;
}

.widget-badge-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1px;
  color: #fff;
}

.widget-badge-type {
  font-size: 0.625rem;
  opacity: 0.8;
  color: #fff;
}

.widget-badge-arrow {
  font-size: 1rem;
  opacity: 0.6;
  color: #fff;
}

/* ==================== MINI WIDGET (100x100) ==================== */

.widget-mini {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.widget-mini:hover {
  transform: scale(1.05);
}

.widget-mini-emoji {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.widget-mini-name {
  font-size: 0.625rem;
  font-weight: 600;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

/* ==================== GENERATOR PAGE - BRIGHT THEME ==================== */

.generator-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 50%, #fce7f3 100%);
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Aurora floating orbs */
.generator-container::before {
  content: '';
  position: fixed;
  top: 10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-orb 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.generator-container::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: -10%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-orb 25s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10%, 10%) scale(1.1); }
  50% { transform: translate(5%, -5%) scale(0.95); }
  75% { transform: translate(-5%, 5%) scale(1.05); }
}

.generator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.generator-header .back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #6366f1;
  text-decoration: none;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.generator-header .back-link:hover {
  transform: translateX(-2px);
  background: rgba(99, 102, 241, 0.2);
}

.generator-header .header-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.generator-content {
  padding: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.generator-section {
  margin-bottom: 2rem;
}

.generator-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Style Selector - Glassmorphism */
.style-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.style-option {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(99, 102, 241, 0.1);
  border-radius: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.style-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.style-option:hover::before {
  left: 100%;
}

.style-option:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.style-option.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.style-option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.style-option-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

.style-option-size {
  font-size: 0.625rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Type Selector */
.type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.type-option {
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(99, 102, 241, 0.1);
  border-radius: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.type-option:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.type-option.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.type-option-emoji {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.type-option-name {
  font-size: 0.5rem;
  color: #64748b;
}

/* Preview - Glassmorphism with Animation */
.preview-area {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

/* Preview shimmer animation */
.preview-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: preview-shimmer 3s ease-in-out infinite;
}

@keyframes preview-shimmer {
  0% { left: -150%; }
  50%, 100% { left: 150%; }
}

/* Preview widget pulse animation */
.preview-area .widget-card,
.preview-area .widget-badge,
.preview-area .widget-mini {
  animation: widget-float 4s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@keyframes widget-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Code Output - Bright Theme */
.code-output {
  position: relative;
}

.code-output pre {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 1rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #6366f1;
  line-height: 1.5;
}

.code-output code {
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #22c55e, #10b981);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* Instructions/Help Text */
.generator-help {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.generator-help-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.generator-help-text {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==================== GRADIENTS (keep for actual widgets) ==================== */

.gradient-flame-fox { background: linear-gradient(135deg, #f97316, #ef4444); }
.gradient-diamond-lion { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.gradient-shadow-bear { background: linear-gradient(135deg, #6b7280, #374151); }
.gradient-crystal-deer { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.gradient-thunder-wolf { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.gradient-ocean-dolphin { background: linear-gradient(135deg, #3b82f6, #0ea5e9); }
.gradient-forest-owl { background: linear-gradient(135deg, #22c55e, #10b981); }
.gradient-star-phoenix { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-moon-rabbit { background: linear-gradient(135deg, #c4b5fd, #a78bfa); }
.gradient-earth-turtle { background: linear-gradient(135deg, #84cc16, #65a30d); }
.gradient-wind-hawk { background: linear-gradient(135deg, #67e8f9, #22d3ee); }
.gradient-mystic-dragon { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

/* ==================== RESPONSIVE ==================== */

@media (min-width: 768px) {
  .generator-content {
    max-width: 700px;
  }

  .type-selector {
    grid-template-columns: repeat(6, 1fr);
  }

  .preview-area {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .style-selector {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .generator-header .header-title {
    font-size: 1rem;
  }
}
