/* =============================================
   KYBA - 한국유튜브방송협회 공식 홈페이지
   style.css
   ============================================= */

:root {
  --primary: #1a1a2e;
  --red: #e63946;
  --red-dark: #c1121f;
  --gray-light: #f8f9fa;
  --gray: #6c757d;
  --dark: #212529;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

#header.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.logo-icon {
  font-size: 24px;
  color: var(--red);
  line-height: 1;
}

.logo-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
}

#gnb { display: flex; }
#gnb > ul { display: flex; gap: 0; }

#gnb > ul > li {
  position: relative;
}

#gnb > ul > li > a {
  display: block;
  padding: 0 18px;
  height: 70px;
  line-height: 70px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

#gnb > ul > li > a:hover,
#gnb > ul > li.active > a {
  color: var(--red);
}

.sub-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  background: var(--white);
  min-width: 160px;
  box-shadow: var(--shadow);
  border-top: 2px solid var(--red);
}

.has-sub:hover .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--dark);
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.sub-menu li a:hover {
  background: var(--gray-light);
  color: var(--red);
  padding-left: 24px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  background: var(--primary);
  padding: 10px 0;
}

.mobile-menu li a {
  display: block;
  padding: 12px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu li a:hover { color: var(--red); }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.8) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1611162616305-c69b3fa7fbe0?w=1600&q=80') center/cover;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

.hero-sub {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--red);
  position: relative;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.4);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  display: block;
  text-align: center;
  padding: 12px 24px;
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-red {
  background: var(--red);
  color: var(--white);
  display: block;
  text-align: center;
  padding: 12px 24px;
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  margin: 8px auto 0;
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.hero-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--red);
  transform: scale(1.5);
}

/* =============================================
   QUICK LINKS
   ============================================= */
#quicklinks {
  padding: 60px 0;
  background: var(--white);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.quick-card {
  text-align: center;
  padding: 30px 15px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  transition: var(--transition);
  display: block;
}

.quick-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.quick-card:hover h3 { color: var(--red); }

.quick-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.quick-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  transition: var(--transition);
}

.quick-card p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

/* =============================================
   SECTIONS COMMON
   ============================================= */
section { padding: 80px 0; }

.section-gray { background: var(--gray-light); }
.section-dark { background: var(--primary); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header.light { color: var(--white); }

.section-tag {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
}

.section-line {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 16px auto 0;
}

.section-desc {
  margin-top: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat span {
  font-size: 12px;
  color: var(--gray);
}

.about-mission h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

.mission-list { display: flex; flex-direction: column; gap: 20px; }

.mission-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mission-num {
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.mission-list strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mission-list p {
  font-size: 13px;
  color: var(--gray);
}

/* =============================================
   BOARD
   ============================================= */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}

.board-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.board-card.chairman {
  border-top: 3px solid var(--red);
}

.board-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--red));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.board-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.board-title {
  font-size: 12px;
  color: var(--gray);
}

/* =============================================
   NEWS
   ============================================= */
#news {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.news-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.more-link {
  font-size: 12px;
  color: var(--gray);
  transition: var(--transition);
}

.more-link:hover { color: var(--red); }

.news-list li {
  border-bottom: 1px solid #eee;
}

.news-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  transition: var(--transition);
}

.news-list li a:hover { padding-left: 6px; }
.news-list li a:hover .news-title { color: var(--red); }

.news-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--gray-light);
  color: var(--gray);
  flex-shrink: 0;
  font-weight: 600;
}

.news-tag.notice { background: #fff3cd; color: #856404; }
.news-tag.activity { background: #cfe2ff; color: #084298; }

.news-title {
  flex: 1;
  font-size: 14px;
  transition: var(--transition);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-date {
  font-size: 12px;
  color: var(--gray);
  flex-shrink: 0;
}

/* =============================================
   MEMBERS
   ============================================= */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.member-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px 28px;
  color: var(--white);
  position: relative;
  transition: var(--transition);
}

.member-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.member-card.featured {
  border-color: var(--red);
  background: rgba(230,57,70,0.1);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}

.member-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.member-price {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.member-card ul {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-card ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-list { display: flex; flex-direction: column; gap: 20px; }

.contact-list li {
  display: flex;
  gap: 14px;
}

.contact-icon { font-size: 20px; flex-shrink: 0; }

.contact-list strong {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-list p {
  font-size: 14px;
  line-height: 1.6;
}

.contact-list a { color: var(--red); }
.contact-list a:hover { text-decoration: underline; }

.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: #0d0d1a;
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-logo strong { font-size: 14px; font-weight: 700; }
.footer-logo small { font-size: 10px; color: rgba(255,255,255,0.4); }

.footer-desc { font-size: 13px; line-height: 1.8; }

.footer-links h4,
.footer-contact h4 {
  font-size: 13px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--red); }

.footer-contact p {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  #gnb { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-dots { display: none; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr; gap: 30px; }
  .member-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: center; }
  .about-stats { flex-direction: column; gap: 16px; }
}
