/* ============================================
   선수공부 - Common Styles
   Brand Color: #1B4DB1 (Blue)
   ============================================ */

:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-secondary: #0F6E56;
  --color-secondary-light: #E1F5EE;
  --color-accent: #EF9F27;
  --color-accent-light: #FDF4E3;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-border: #e5e7eb;
  --color-border-light: #f0f0f0;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   Top Banner
   ============================================ */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.top-banner--hidden {
  transform: translateY(-100%);
}

.top-banner a {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-banner a:hover {
  text-decoration: underline;
}

.top-banner a i {
  margin-left: 0.25rem;
  font-size: 0.6875rem;
}

.top-banner-close {
  position: absolute;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding: 0.25rem;
  transition: color var(--transition);
}

.top-banner-close:hover {
  color: #fff;
}

/* Offset header when banner is visible */
body.has-top-banner .site-header {
  top: 36px;
}

body.has-top-banner .hero {
  padding-top: calc(var(--header-height) + 36px);
}

body.has-top-banner .page-hero {
  padding-top: calc(var(--header-height) + 36px + 3rem);
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border-light);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-list a {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition), box-shadow var(--transition);
  position: relative;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  animation: none;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

/* ============================================
   Floating Buttons
   ============================================ */
.floating-group {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  z-index: 900;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.float-btn--top {
  background: var(--color-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform var(--transition), box-shadow var(--transition);
}

.float-btn--top.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-btn--kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.float-btn--insta {
  background: #E4405F;
}

.float-btn--blog {
  background: #03C75A;
}

.float-btn--contact {
  background: var(--color-primary);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.float-btn--contact:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn--outline:hover {
  background: var(--color-primary-light);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ============================================
   CTA Section (shared)
   ============================================ */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: var(--color-primary-light);
}

.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-note {
  font-size: 0.8125rem !important;
  color: var(--color-text-light) !important;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.cta-section .btn--primary {
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

.cta-section .btn--primary:hover {
  animation: none;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

/* Scroll reveal animation (shared) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Arrow bounce (shared) */
.btn-arrow-bounce i {
  display: inline-block;
  animation: arrow-bounce 1.2s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.btn-arrow-bounce:hover i {
  animation: arrow-bounce 0.6s ease-in-out infinite;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #1a1a1a;
  color: #999;
  padding: 3rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-info h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.footer-info p {
  line-height: 1.8;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: #999;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #999;
  font-size: 1.125rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal a {
  color: #666;
  font-size: 0.8125rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: #fff;
}

.footer-legal-divider {
  color: #444;
  font-size: 0.75rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid #333;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: #666;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-list a.active::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }

  .menu-toggle {
    display: flex;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .footer-inner {
    flex-direction: column;
    padding: 0 1.25rem;
  }

  .footer-right {
    align-items: flex-start;
  }
}
