/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Action Text styles are loaded separately */

/* Global Font Settings */
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Hero Section Animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  25% { transform: translateY(-25px) translateX(15px) rotate(5deg); }
  50% { transform: translateY(-40px) translateX(0px) rotate(3deg); }
  75% { transform: translateY(-25px) translateX(-15px) rotate(-5deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  33% { transform: translateY(-35px) translateX(-20px) rotate(-3deg); }
  66% { transform: translateY(-20px) translateX(20px) rotate(4deg); }
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
  20% { transform: translateY(-30px) translateX(25px) rotate(72deg) scale(1.1); }
  40% { transform: translateY(-50px) translateX(-10px) rotate(144deg) scale(0.9); }
  60% { transform: translateY(-35px) translateX(-25px) rotate(216deg) scale(1.05); }
  80% { transform: translateY(-15px) translateX(15px) rotate(288deg) scale(0.95); }
}

@keyframes float-code {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0.8; }
  25% { transform: translateY(-25px) translateX(15px) rotate(2deg); opacity: 0.9; }
  50% { transform: translateY(-35px) translateX(-5px) rotate(-1deg); opacity: 0.85; }
  75% { transform: translateY(-20px) translateX(-15px) rotate(1deg); opacity: 0.9; }
}

@keyframes float-symbol {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1) rotate(0deg); opacity: 0.7; }
  20% { transform: translateY(-30px) translateX(20px) scale(1.15) rotate(15deg); opacity: 0.8; }
  40% { transform: translateY(-45px) translateX(-10px) scale(0.85) rotate(-10deg); opacity: 0.75; }
  60% { transform: translateY(-25px) translateX(-20px) scale(1.05) rotate(20deg); opacity: 0.8; }
  80% { transform: translateY(-15px) translateX(10px) scale(0.95) rotate(-5deg); opacity: 0.75; }
}

@keyframes pulse-slow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

.animate-float-code {
  animation: float-code 12s ease-in-out infinite;
}

.animate-float-code-delayed {
  animation: float-code 12s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-float-code-slow {
  animation: float-code 15s ease-in-out infinite;
  animation-delay: 4s;
}

.animate-float-code-medium {
  animation: float-code 10s ease-in-out infinite;
  animation-delay: 6s;
}

.animate-float-symbol {
  animation: float-symbol 10s ease-in-out infinite;
}

.animate-float-symbol-delayed {
  animation: float-symbol 10s ease-in-out infinite;
  animation-delay: 3s;
}

.animate-float-symbol-slow {
  animation: float-symbol 14s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-float-symbol-medium {
  animation: float-symbol 8s ease-in-out infinite;
  animation-delay: 5s;
}

.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

.animate-float-shape {
  animation: float-shape 6s ease-in-out infinite;
}

/* Hero Section Layer Management */
.hero-background {
  z-index: 1;
}

.hero-gradient-layer {
  z-index: 5;
}

.hero-content {
  z-index: 10;
}

/* Custom Select Components */
.select-base {
  @apply appearance-none px-6 py-3 pr-10 border border-gray-200 rounded-full focus:ring-2 focus:ring-gray-300 focus:border-gray-300 font-light bg-white cursor-pointer;
}

.select-icon {
  @apply absolute inset-y-0 right-0 flex items-center px-3 pointer-events-none;
}

.select-dropdown {
  @apply absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-2xl shadow-lg max-h-60 overflow-auto;
}

.select-option {
  @apply px-6 py-3 hover:bg-gray-50 cursor-pointer font-light transition-colors;
}

.select-option--selected {
  @apply bg-blue-50 text-blue-600;
}

.select-container {
  @apply relative;
}

/* Custom Select Button */
.custom-select-button {
  @apply relative w-full px-6 py-3 pr-10 border border-gray-200 rounded-full focus:ring-2 focus:ring-gray-300 focus:border-gray-300 font-light bg-white cursor-pointer text-left;
}

.custom-select-button:focus {
  @apply outline-none;
}

.custom-select-dropdown {
  @apply hidden absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-2xl shadow-lg max-h-60 overflow-auto;
}

.custom-select-option {
  @apply px-6 py-3 hover:bg-gray-50 cursor-pointer font-light transition-colors;
}

.custom-select-option--selected {
  @apply bg-blue-50 text-blue-600;
}

.custom-select-arrow {
  @apply absolute inset-y-0 right-0 flex items-center px-3 pointer-events-none;
}

.custom-select-arrow svg {
  @apply w-4 h-4 text-gray-400 transition-transform duration-200;
}

.custom-select-arrow--open svg {
  @apply rotate-180;
}

/* Form Components */
.form-input {
  @apply px-6 py-3 border border-gray-200 rounded-full focus:ring-2 focus:ring-gray-300 focus:border-gray-300 font-light bg-white;
}

.form-button {
  @apply px-8 py-4 rounded-full font-semibold tracking-wide transition-all duration-300 text-base md:text-lg;
}

.form-button--primary {
  @apply bg-purple-700 text-white hover:bg-purple-800 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.form-button--secondary {
  @apply bg-purple-600 text-white hover:bg-purple-700 shadow-lg hover:shadow-xl;
}

.form-button--outline {
  @apply border-2 border-purple-600 text-purple-700 hover:bg-purple-50 hover:border-purple-700 shadow-md hover:shadow-lg;
}

/* 시그니처 컬러별 헤더 */
.courses-header {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
  color: white;
  overflow: hidden;
}

.ebooks-header {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
  color: white;
  overflow: hidden;
}

.community-header {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  color: white;
  overflow: hidden;
}

.pricing-header {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: white;
  overflow: hidden;
}

.dashboard-header {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
  color: white;
  overflow: hidden;
}

.community-header__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.community-header__blob-1 {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.community-header__blob-2 {
  position: absolute;
  top: 50%;
  left: -80px;
  width: 240px;
  height: 240px;
  background: rgba(236, 72, 153, 0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.community-header__blob-3 {
  position: absolute;
  bottom: 0;
  right: 33%;
  width: 128px;
  height: 128px;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  filter: blur(60px);
}

.community-header__content {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.community-header__icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.community-header__icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-header__icon {
  font-size: 1.5rem;
}

.community-header__title {
  font-size: 3.75rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white;
}

.community-header__subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.community-header__highlight {
  font-weight: bold;
  color: #FDE047;
}

.community-header__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.community-header__stat {
  text-align: center;
}

.community-header__stat-number {
  font-size: 1.875rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.25rem;
}

.community-header__stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.community-header__divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
}

/* Community Search Section */
.community-search {
  width: 100%;
}

.community-search__form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.community-search__input-group {
  flex: 1;
  min-width: 300px;
}

.community-search__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.community-search__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.community-search__select-group {
  width: 200px;
}

.community-search__select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: white;
  box-sizing: border-box;
}

.community-search__button {
  height: 48px;
  padding: 0 1.5rem;
  background-color: #7C3AED;
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.community-search__button:hover {
  background-color: #6D28D9;
}

.community-search__write-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.5rem;
  background-color: white;
  color: #7C3AED;
  border: 1px solid #7C3AED;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.community-search__write-button:hover {
  background-color: #F3E8FF;
}

/* Course Search Section */
.course-search {
  width: 100%;
}

.course-search__form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.course-search__input-group {
  flex: 1;
  min-width: 300px;
}

.course-search__input {
  width: 100%;
  height: 50px;
  padding: 0 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 1rem;
  background-color: white;
  transition: all 0.2s;
}

.course-search__input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.course-search__select-group {
  width: 180px;
}

.course-search__select {
  width: 100%;
  height: 50px;
  padding: 0 2.5rem 0 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 1rem;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  transition: all 0.2s;
}

.course-search__select:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.course-search__button {
  height: 50px;
  padding: 0 2.5rem;
  background-color: #7C3AED;
  color: white;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.025em;
}

.course-search__button:hover {
  background-color: #6D28D9;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

/* Community Search Section */
.community-search {
  width: 100%;
}

.community-search__form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.community-search__input-group {
  flex: 1;
  min-width: 300px;
}

.community-search__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.community-search__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.community-search__select-group {
  width: 200px;
}

.community-search__select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: white;
  box-sizing: border-box;
}

.community-search__button {
  height: 48px;
  padding: 0 1.5rem;
  background-color: #7C3AED;
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.community-search__button:hover {
  background-color: #6D28D9;
}

.community-search__write-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.5rem;
  background-color: white;
  color: #7C3AED;
  border: 1px solid #7C3AED;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.community-search__write-button:hover {
  background-color: #F3E8FF;
}

/* Course Search Section */
.course-search {
  width: 100%;
}

.course-search__form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.course-search__input-group {
  flex: 1;
  min-width: 300px;
}

.course-search__input {
  width: 100%;
  height: 50px;
  padding: 0 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 1rem;
  background-color: white;
  transition: all 0.2s;
}

.course-search__input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.course-search__select-group {
  width: 180px;
}

.course-search__select {
  width: 100%;
  height: 50px;
  padding: 0 2.5rem 0 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 1rem;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px 20px;
  transition: all 0.2s;
}

.course-search__select:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.course-search__button {
  height: 50px;
  padding: 0 2.5rem;
  background-color: #7C3AED;
  color: white;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.course-search__button:hover {
  background-color: #6D28D9;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

/* Contact CTA Button */
.contact-cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: white;
  color: #111827;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-cta-button:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* E-Book CTA Section */
.ebook-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
  position: relative;
  overflow: hidden;
}

.ebook-cta-container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.ebook-cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.ebook-cta-pattern__circle-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  left: -150px;
}

.ebook-cta-pattern__circle-2 {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #EC4899 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
}

.ebook-cta-pattern__circle-3 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  right: 10%;
}

.ebook-cta-content {
  position: relative;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.ebook-cta-icon {
  margin-bottom: 1.5rem;
}

.ebook-cta-icon__emoji {
  font-size: 4rem;
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.ebook-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.2;
}

.ebook-cta-title__line-1 {
  display: block;
  background: linear-gradient(to right, #7C3AED, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ebook-cta-title__line-2 {
  display: block;
  margin-top: 0.25rem;
}

.ebook-cta-description {
  font-size: 1.125rem;
  color: #6B7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ebook-cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.ebook-cta-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #4B5563;
}

.ebook-cta-benefit__icon {
  width: 1.5rem;
  height: 1.5rem;
  background: #10B981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.ebook-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
  margin-bottom: 1.5rem;
}

.ebook-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
}

.ebook-cta-button__arrow {
  transition: transform 0.3s;
}

.ebook-cta-button:hover .ebook-cta-button__arrow {
  transform: translateX(3px);
}

.ebook-cta-price {
  font-size: 0.875rem;
  color: #6B7280;
}

.ebook-cta-price__amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0.25rem;
}

/* Pricing Page Buttons */
.pricing-button {
  display: inline-block;
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-button--start {
  background: #7C3AED;
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.pricing-button--start:hover {
  background: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.pricing-button--subscribe {
  background: white;
  color: #7C3AED;
  border: 2px solid #7C3AED;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pricing-button--subscribe:hover {
  background: #7C3AED;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
