/*
 * 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.
 *
 *= require_tree .
 *= require_self
 *= require admin/chatbots
 */

/* DeepFountain 테마 스타일 - 갈매기의 꿈 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* SOGANG 폰트 추가 */
@font-face {
  font-family: 'SOGANG';
  src: url("/assets/fonts/SOGANG_UNIVERSITY_for_windows.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* DeepFountain 색상 팔레트 */
  --foreground-rgb: 255, 255, 255;
  --background-start-rgb: 0, 0, 30;
  --background-end-rgb: 0, 20, 60;
  
  /* 글래스모픽 디자인 변수 */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-blur: 8px;
  
  /* DeepFountain 브랜드 색상 */
  --deepfountain-blue: #1e40af;
  --deepfountain-indigo: #4f46e5;
  --deepfountain-purple: #7c3aed;
  --deepfountain-sky: #60a5fa;
  --deepfountain-cyan: #06b6d4;
  
  /* 텍스트 색상 */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
}

/* 배경 그라데이션 (Deep Ocean) */
body {
  background: linear-gradient(
    to bottom,
    rgb(var(--background-start-rgb)),
    rgb(var(--background-end-rgb))
  );
  min-height: 100vh;
  position: relative;
}

/* 글래스모피즘 기본 클래스 */
.glass-morphism, .glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 10px;
}

/* 갈매기 배경 효과 */
.seagull-bg::before {
  content: '🕊';
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: bird-fly 8s ease-in-out infinite;
  pointer-events: none;
}

.seagull-bg::after {
  content: '🕊';
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.08;
  right: 10%;
  top: 20%;
  animation: bird-fly 10s ease-in-out infinite reverse;
  pointer-events: none;
}

/* 커스텀 애니메이션 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes bird-fly {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(2deg); }
  75% { transform: translateY(5px) rotate(-2deg); }
}

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

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 애니메이션 클래스 */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-bird-fly {
  animation: bird-fly 4s ease-in-out infinite;
}

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

.animate-gradient {
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
}

/* 애니메이션 지연 클래스 */
.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-700 {
  animation-delay: 700ms;
}

/* 그라데이션 텍스트 - DeepFountain 시그니처 */
.gradient-text, .text-gradient {
  background: linear-gradient(135deg, #60a5fa, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 헤더 그라데이션 */
.gradient-heading {
  background: linear-gradient(to right, #3b82f6, #8b5cf6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* DeepFountain 인용구 스타일 */
.deepfountain-quote {
  position: relative;
  padding: 2rem;
  font-style: italic;
  color: var(--text-secondary);
}

.deepfountain-quote::before {
  content: '"가장 높이 나는 갈매기가 가장 멀리 본다"';
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-size: 0.75rem;
  opacity: 0.5;
  font-style: italic;
}

/* DeepFountain 버튼 스타일 */
.btn-glass {
  @apply px-6 py-3 rounded-lg font-medium transition-all duration-300;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  @apply hover:bg-white/20 hover:scale-105 hover:shadow-xl;
}

.btn-gradient, .btn-deepfountain {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  @apply text-white px-8 py-4 rounded-lg font-medium transition-all duration-300;
  @apply hover:scale-105 hover:shadow-xl transform;
}

.btn-deepfountain-outline {
  @apply px-6 py-3 rounded-lg font-medium transition-all duration-300;
  background: transparent;
  border: 2px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)),
                    linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #3b82f6;
  @apply hover:shadow-xl;
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #000000;
}

::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.05);
}

/* DeepFountain 네비게이션 스타일 */
.deepfountain-nav {
  background: rgba(0, 0, 30, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deepfountain-nav.scrolled {
  background: rgba(0, 0, 30, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* DeepFountain 카드 스타일 */
.deepfountain-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.deepfountain-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(30, 41, 59, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --foreground-rgb: 0, 0, 0;
    --background-start-rgb: 240, 240, 255;
    --background-end-rgb: 255, 255, 255;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-primary: #000000;
    --text-secondary: #4a4a4a;
  }
}
