/* Aethera 브랜드 디자인 시스템 */
/* 이미지에서 추출한 색상 팔레트 기반 */

:root {
  /* 메인 브랜드 컬러 */
  --aethera-primary: #00b4d8; /* 밝은 시안 */
  --aethera-primary-dark: #0077b6; /* 진한 시안 */
  --aethera-primary-light: #90e0ef; /* 연한 시안 */

  /* 밝은 테마 배경 컬러 */
  --aethera-bg-dark: #f8fafc; /* 매우 밝은 회색 */
  --aethera-bg-medium: #ffffff; /* 순백색 */
  --aethera-bg-light: #e2e8f0; /* 연한 회색 */
  --aethera-bg-card: #ffffff; /* 카드 배경 */

  /* 텍스트 컬러 (밝은 테마용) */
  --aethera-text-primary: #1e293b; /* 진한 회색 */
  --aethera-text-secondary: #64748b; /* 중간 회색 */
  --aethera-text-muted: #94a3b8; /* 연한 회색 */

  /* 상태 컬러 */
  --aethera-success: #10b981; /* 성공 */
  --aethera-warning: #f59e0b; /* 경고 */
  --aethera-error: #ef4444; /* 오류 */

  /* 그라데이션 */
  --aethera-gradient-primary: linear-gradient(
    135deg,
    var(--aethera-primary) 0%,
    var(--aethera-primary-dark) 100%
  );
  --aethera-gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

  /* 그림자 */
  --aethera-shadow-primary: 0 0 20px rgba(0, 180, 216, 0.2);
  --aethera-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --aethera-shadow-glow: 0 0 30px rgba(0, 180, 216, 0.3);

  /* 폰트 */
  --aethera-font-primary: "Pretendard", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --aethera-font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* 애니메이션 */
  --aethera-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --aethera-transition-fast: all 0.15s ease-out;
}

/* 글로벌 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--aethera-font-primary);
  background: var(--aethera-gradient-bg);
  color: var(--aethera-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 배경 애니메이션 효과 */
.aethera-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--aethera-gradient-bg);
}

.aethera-bg-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(0, 180, 216, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 180, 216, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(0, 180, 216, 0.01) 0%,
      transparent 50%
    );
  animation: aetheraFloat 20s ease-in-out infinite;
}

@keyframes aetheraFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(1deg);
  }
  66% {
    transform: translateY(10px) rotate(-1deg);
  }
}

/* 네트워크 라인 효과 */
.aethera-network-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.02; /* 매우 은은하게 */
}

.aethera-network-lines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      90deg,
      transparent 98.5%,
      rgba(0, 180, 216, 0.08) 100%
    ),
    linear-gradient(0deg, transparent 98.5%, rgba(0, 180, 216, 0.08) 100%);
  background-size: 60px 60px;
  animation: aetheraNetwork 30s linear infinite;
}

@keyframes aetheraNetwork {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* 로고 스타일 */
.aethera-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--aethera-text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  transition: var(--aethera-transition);
}

.aethera-logo:hover {
  color: var(--aethera-primary);
  text-shadow: var(--aethera-shadow-primary);
}

.aethera-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--aethera-gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  box-shadow: var(--aethera-shadow-primary);
}

/* 버튼 스타일 */
.aethera-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--aethera-font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--aethera-transition);
  position: relative;
  overflow: hidden;
}

.aethera-btn-primary {
  background: var(--aethera-gradient-primary);
  color: white;
  box-shadow: var(--aethera-shadow-primary);
}

.aethera-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--aethera-shadow-glow);
}

.aethera-btn-secondary {
  background: transparent;
  color: var(--aethera-primary);
  border: 2px solid var(--aethera-primary);
}

.aethera-btn-secondary:hover {
  background: var(--aethera-primary);
  color: white;
  box-shadow: var(--aethera-shadow-primary);
}

/* 입력 필드 스타일 */
.aethera-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--aethera-bg-light);
  border-radius: 8px;
  background: var(--aethera-bg-card);
  color: var(--aethera-text-primary);
  font-family: var(--aethera-font-primary);
  font-size: 1rem;
  transition: var(--aethera-transition);
}

.aethera-input:focus {
  outline: none;
  border-color: var(--aethera-primary);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
  background: var(--aethera-bg-medium);
}

.aethera-input::placeholder {
  color: var(--aethera-text-muted);
}

/* 카드 스타일 */
.aethera-card {
  background: var(--aethera-bg-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--aethera-shadow-card);
  border: 1px solid #e2e8f0; /* 밝은 테마 경계선 */
  backdrop-filter: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .aethera-card {
    padding: 24px;
    margin: 16px;
  }

  .aethera-logo {
    font-size: 1.25rem;
  }

  .aethera-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .aethera-card {
    padding: 20px;
    margin: 12px;
  }

  .aethera-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .aethera-input {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

/* 로딩 애니메이션 */
.aethera-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--aethera-primary);
  animation: aetheraSpin 1s ease-in-out infinite;
}

@keyframes aetheraSpin {
  to {
    transform: rotate(360deg);
  }
}

/* 성공/오류 메시지 */
.aethera-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  font-weight: 500;
}

.aethera-message-success {
  background: rgba(0, 212, 170, 0.1);
  color: var(--aethera-success);
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.aethera-message-error {
  background: rgba(255, 71, 87, 0.1);
  color: var(--aethera-error);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.aethera-message-warning {
  background: rgba(255, 184, 0, 0.1);
  color: var(--aethera-warning);
  border: 1px solid rgba(255, 184, 0, 0.3);
}
