/* ============================================================================
   프로토타이 플랫폼 - 모던 럭셔리 스타일
   ============================================================================ */

:root {
  /* Brand Colors - Premium Gold & Dark Navy */
  --primary: #D4AF37;
  --primary-dark: #B8941F;
  --primary-light: #E8D4A0;
  --secondary: #1A1A2E;
  --secondary-light: #16213E;
  --accent: #0F3460;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #E9ECEF;
  --dark-gray: #6C757D;
  --black: #000000;
  
  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-sans: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', 'Noto Sans KR', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ============================================================================
   Base Styles
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* ============================================================================
   Typography
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================================================
   Layout
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4AF37" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.hero-subtitle-inline {
  color: var(--white);
  font-size: 2rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-xl);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.stat-item {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================================================================
   Section Titles
   ============================================================================ */

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.section-subtitle {
  text-align: center;
  color: var(--dark-gray);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s ease;
}

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

.highlight-card {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  border: 2px solid var(--primary);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ============================================================================
   Team Builder
   ============================================================================ */

.team-builder-container {
  display: grid;
  gap: var(--spacing-lg);
}

.team-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr auto;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.team-list {
  margin-top: var(--spacing-md);
}

.team-member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--light-gray);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s ease;
}

.team-member-item:hover {
  background: var(--gray);
}

.team-member-info {
  flex: 1;
}

.team-member-title {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.team-member-meta {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.team-member-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: var(--spacing-md);
}

/* ============================================================================
   Pricing Result
   ============================================================================ */

.pricing-summary {
  padding: var(--spacing-lg);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--gray);
}

.pricing-row.total {
  border-top: 2px solid var(--secondary);
  border-bottom: none;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
}

.pricing-label {
  color: var(--dark-gray);
  font-size: 0.938rem;
}

.pricing-value {
  font-weight: 600;
  color: var(--secondary);
}

.pricing-value.highlight {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-value.savings {
  color: var(--success);
}

.pricing-value.discount {
  color: var(--info);
}

/* ============================================================================
   Templates Grid
   ============================================================================ */

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.template-card {
  background: var(--white);
  border: 2px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.template-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.template-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: var(--spacing-xs);
}

.template-description {
  font-size: 0.875rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
}

.template-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.template-savings {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
}

/* ============================================================================
   Talents Grid
   ============================================================================ */

.talents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.talent-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.talent-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.talent-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.talent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.talent-info {
  flex: 1;
}

.talent-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.talent-position {
  font-size: 0.875rem;
  color: var(--dark-gray);
  text-transform: capitalize;
}

.talent-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.rating-stars {
  color: #FFA500;
  font-size: 1.125rem;
}

.rating-value {
  font-weight: 600;
  color: var(--secondary);
}

.talent-skills {
  margin-bottom: var(--spacing-md);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.skill-tag {
  background: var(--light-gray);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.813rem;
  font-weight: 500;
}

.skill-tag.premium {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--white);
}

.talent-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray);
}

.price-label {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price-unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--dark-gray);
}

/* ============================================================================
   Filter Bar
   ============================================================================ */

.filter-bar {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

/* ============================================================================
   Benefits Section
   ============================================================================ */

.benefits-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.benefit-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.benefit-card p {
  font-size: 0.938rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   Form Controls
   ============================================================================ */

.input,
.select-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  background: var(--white);
}

.input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-danger:hover {
  background: #DC2626;
}

/* ============================================================================
   States
   ============================================================================ */

.loading {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--dark-gray);
  font-style: italic;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--dark-gray);
  font-style: italic;
  background: var(--light-gray);
  border-radius: var(--radius-md);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background: var(--secondary);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .team-row {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
  }
  
  .templates-grid,
  .talents-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Animations
   ============================================================================ */

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

.card,
.talent-card,
.template-card {
  animation: fadeIn 0.5s ease-out;
}
