@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #000000;
  --text-primary: rgba(255, 255, 255, 0.85);
  --text-secondary: #86868b;
  --text-accent: #cc78ff;
  --header-bg: rgba(0, 0, 0, 0.7);
  --card-bg: #111111;
  --card-hover: #1a1a1a;
  --font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

b, strong {
  color: #ffffff;
  font-weight: 600;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-br { display: none; }

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 24px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  line-height: 1.2;
  display: inline-block;
  text-align: left;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--text-primary);
  transition: width 0.3s ease;
}

.nav-links a.active::after {
  width: 100%;
}

/* Base Layout */
main {
  min-height: 100vh;
}

section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Main Hero */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero p {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  max-width: 600px;
  background: linear-gradient(135deg, #a87bfe 0%, #ff78d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

/* Scroll-telling section */
.scroll-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px;
}

.scroll-content {
  display: flex;
  flex-direction: column;
  gap: 25vh;
  width: 100%;
}

.scroll-block {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-block h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.highlight-text {
  color: var(--text-accent);
  background: linear-gradient(135deg, #9b4dca 0%, #ff78d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scroll-block p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Grid Boards */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  margin-top: 0;
}

.board-header h1 {
  font-size: 3rem;
  letter-spacing: -1.5px;
}

.btn {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border: none;
  padding: 10px 24px;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: scale(1.05);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-hidden {
  display: none !important;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.album-card {
  background-color: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: block;
}

.album-card:hover {
  transform: translateY(-8px) scale(1.02);
  background-color: var(--card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.album-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
  background-color: #222;
}

.album-card:hover .album-image {
  transform: scale(1.05);
}

.album-info {
  padding: 24px;
}

.album-date {
  font-size: 0.8rem;
  color: var(--text-accent);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.album-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.album-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Forms */
.auth-container {
  max-width: 400px;
  margin: 150px auto;
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 24px;
  text-align: center;
}

.auth-container h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  letter-spacing: -1px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  background-color: #000;
  border: 1px solid #333;
  color: #fff;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.input-group input:focus {
  outline: none;
  border-color: var(--text-accent);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  font-size: 1rem;
}

/* Footer */
footer {
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 80px;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 3rem);
    white-space: nowrap;
    letter-spacing: -1px;
  }
  
  .hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 0.8rem;
  }
  
  .scroll-content {
    gap: 40px;
  }

  .scroll-block h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .scroll-block p {
    font-size: 0.95rem;
  }

.desktop-br {
    display: none;
  }

  .mobile-br {
    display: block;
  }
  .desktop-space {
    display: none;
  }

  .board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .board-header h1 {
    font-size: 2.2rem;
  }
}

.list-card {
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: background-color 0.3s ease;
  padding: 0 10px;
  border-radius: 12px;
}
.list-card:hover {
  background-color: rgba(255,255,255,0.05);
}

.list-desc-text {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .list-desc-text {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .album-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Quill Custom Elements (Callout & Divider) */
.quill-callout {
  background-color: #ffffff;
  border-left: 4px solid var(--text-accent);
  color: #1a1a1a;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 1.5em 0;
  line-height: 1.6;
  position: relative;
  padding-left: 52px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.quill-callout a {
  color: #6e00f5;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.quill-callout a:hover {
  color: #4a00b0;
}

.quill-callout b,
.quill-callout strong {
  color: #000000;
}

.quill-callout::before {
  content: '💡';
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 1.3rem;
  line-height: 1.5;
}

hr.quill-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 3em 0;
}
