/* ═══════════════════════════════════════════
   CELESTIAL VOID — Design 1
   Webcore Gothic · Ethereal Dark
   ═══════════════════════════════════════════ */

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

:root {
  --void: #050508;
  --abyss: #0a0a12;
  --ash: #12121e;
  --smoke: #1a1a2e;
  --bone: #e8e0d4;
  --parchment: #c9b99a;
  --blood: #8b0000;
  --blood-glow: #c41e1e;
  --spirit: #7b2d8e;
  --spirit-glow: #c9a0ff;
  --ethereal: #4a2d6e;
  --frost: #a0b4c8;
  --gold: #c9a050;
  --nav-height: 60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: 'EB Garamond', serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Scanlines overlay */
.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.02) 2px,
    rgba(0, 0, 0, 0.02) 4px
  );
  opacity: 0.5;
}

/* Particle background */
#particle-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.3;
}

/* ═══ NAVIGATION ═══ */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 45, 142, 0.15);
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--spirit-glow);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: color 0.3s;
}

.nav-logo:hover { color: var(--bone); }
.nav-logo .cross { color: var(--blood); margin: 0 0.3em; }

.nav-links { display: flex; gap: 2rem; }

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6a5a7a;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--blood);
  transition: width 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--bone); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bone);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 45, 142, 0.15);
  z-index: 999;
  padding: 1rem 2rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--parchment);
  text-decoration: none;
  padding: 0.5rem 0;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(123, 45, 142, 0.1);
  transition: color 0.3s;
}

.mobile-link:hover { color: var(--spirit-glow); }

/* ═══ SECTIONS ═══ */
.section {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-height);
  position: relative;
  z-index: 1;
}

.section.active { display: block; }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

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

.section-cross {
  font-size: 1.5rem;
  color: var(--blood);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--bone);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: #6a5a7a;
  font-style: italic;
  letter-spacing: 0.1em;
}

.header-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--spirit), transparent);
  margin: 1.5rem auto 0;
}

/* ═══ HERO ═══ */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(123, 45, 142, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 0, 0, 0.06) 0%, transparent 60%),
    var(--void);
}

.hero-content { position: relative; z-index: 1; }

.hero-angel { margin-bottom: 2rem; }

.hero-angel-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: brightness(0.8) drop-shadow(0 0 20px rgba(201, 160, 255, 0.3));
  animation: floatGentle 6s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--spirit);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--bone);
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  background: linear-gradient(180deg, var(--spirit-glow) 0%, var(--blood) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #7a6a8a;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--spirit);
  font-size: 0.8rem;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--spirit), transparent);
}

.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #5a4a6a;
  max-width: 500px;
  margin: 0 auto;
}

.hero-gifs {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-gif {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.15;
  filter: brightness(0.5) saturate(0.5);
}

.fg1 { top: 15%; left: 5%; animation: floatSlow 8s ease-in-out infinite; }
.fg2 { top: 60%; right: 5%; animation: floatSlow 10s ease-in-out infinite reverse; }
.fg3 { bottom: 10%; left: 15%; animation: floatSlow 12s ease-in-out infinite; }

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -15px) rotate(2deg); }
  66% { transform: translate(-8px, 10px) rotate(-1deg); }
}

/* ═══ BLOG ═══ */
.blog-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123, 45, 142, 0.05) 0%, transparent 50%),
    var(--void);
}

.blog-new-post {
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid rgba(123, 45, 142, 0.2);
  padding: 2rem;
  margin-bottom: 3rem;
}

.new-post-header {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--spirit-glow);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cross-small { color: var(--blood); font-size: 0.9rem; }

.gothic-input, .gothic-textarea, .gothic-select {
  width: 100%;
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid rgba(123, 45, 142, 0.2);
  color: var(--bone);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.gothic-input:focus, .gothic-textarea:focus, .gothic-select:focus {
  border-color: var(--spirit);
}

.gothic-textarea { resize: vertical; min-height: 100px; }

.gothic-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%237b2d8e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.gothic-select option {
  background: var(--abyss);
  color: var(--bone);
}

.gothic-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bone);
  background: linear-gradient(135deg, var(--ethereal), var(--spirit));
  border: 1px solid var(--spirit);
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.gothic-btn:hover {
  background: linear-gradient(135deg, var(--spirit), var(--blood));
  border-color: var(--blood);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.new-post-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.new-post-actions .gothic-select { margin-bottom: 0; max-width: 200px; }

/* Posts grid */
.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: rgba(10, 10, 18, 0.7);
  border: 1px solid rgba(123, 45, 142, 0.15);
  padding: 2rem;
  transition: all 0.3s;
}

.post-card:hover {
  border-color: rgba(123, 45, 142, 0.35);
  box-shadow: 0 8px 30px rgba(123, 45, 142, 0.08);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #5a4a6a;
  letter-spacing: 0.1em;
}

.post-category {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--spirit-glow);
  border: 1px solid rgba(123, 45, 142, 0.3);
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.post-body {
  font-size: 1rem;
  color: #9a8aaa;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(123, 45, 142, 0.1);
  padding-top: 1rem;
}

.post-likes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.like-btn {
  background: none;
  border: 1px solid rgba(139, 0, 0, 0.3);
  color: var(--blood);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  transition: all 0.3s;
  font-family: 'EB Garamond', serif;
}

.like-btn:hover {
  background: rgba(139, 0, 0, 0.15);
  border-color: var(--blood);
}

.like-count {
  font-size: 0.85rem;
  color: var(--blood);
}

/* Comments */
.comments-toggle {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--spirit);
  background: none;
  border: 1px solid rgba(123, 45, 142, 0.2);
  padding: 0.4rem 1rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.comments-toggle:hover {
  color: var(--spirit-glow);
  border-color: var(--spirit);
}

.comments-section {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(123, 45, 142, 0.1);
  padding-top: 1rem;
  display: none;
}

.comments-section.open { display: block; }

.comment {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(123, 45, 142, 0.08);
}

.comment:last-child { border-bottom: none; }

.comment-author {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--spirit-glow);
  margin-bottom: 0.3rem;
}

.comment-text {
  font-size: 0.9rem;
  color: #8a7a9a;
  line-height: 1.6;
}

.comment-time {
  font-size: 0.7rem;
  color: #4a3a5a;
  margin-top: 0.3rem;
}

.comment-input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.comment-input {
  flex: 1;
  background: rgba(5, 5, 8, 0.8);
  border: 1px solid rgba(123, 45, 142, 0.2);
  color: var(--bone);
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  outline: none;
}

.comment-input:focus { border-color: var(--spirit); }

.comment-submit {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--spirit-glow);
  background: none;
  border: 1px solid rgba(123, 45, 142, 0.3);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.comment-submit:hover {
  background: rgba(123, 45, 142, 0.1);
  border-color: var(--spirit);
}

/* ═══ GALLERY ═══ */
.gallery-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 0, 0, 0.04) 0%, transparent 50%),
    var(--void);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(123, 45, 142, 0.15);
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--abyss);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
  filter: brightness(0.7) saturate(0.7);
}

.gallery-item:hover img {
  filter: brightness(0.9) saturate(1);
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.9));
  transform: translateY(100%);
  transition: transform 0.4s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay span {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--spirit-glow);
  letter-spacing: 0.1em;
}

/* ═══ CHAT ═══ */
.chat-section {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(123, 45, 142, 0.06) 0%, transparent 50%),
    var(--void);
}

.chat-container {
  border: 1px solid rgba(123, 45, 142, 0.2);
  background: rgba(8, 8, 14, 0.9);
  overflow: hidden;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(123, 45, 142, 0.15);
  font-size: 0.8rem;
  color: #6a5a7a;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blood);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.connected { background: #2ecc71; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.online-count {
  margin-left: auto;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--spirit);
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: var(--void); }
.chat-messages::-webkit-scrollbar-thumb { background: var(--ethereal); border-radius: 2px; }

.chat-system-msg {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--spirit);
  padding: 1rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.chat-msg {
  margin-bottom: 0.8rem;
  animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-author {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--spirit-glow);
  margin-bottom: 0.2rem;
}

.chat-msg-text {
  font-size: 0.95rem;
  color: #9a8aaa;
  line-height: 1.5;
}

.chat-msg-time {
  font-size: 0.65rem;
  color: #3a2a4a;
  margin-top: 0.2rem;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(123, 45, 142, 0.15);
}

.chat-name-input { max-width: 250px; margin-bottom: 0.8rem; }

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-msg-input { flex: 1; margin-bottom: 0; }
.chat-send-btn { flex-shrink: 0; }

/* ═══ FOOTER ═══ */
.main-footer {
  border-top: 1px solid rgba(123, 45, 142, 0.1);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--void);
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--spirit);
  font-size: 0.7rem;
}

.footer-text {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: #4a3a5a;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.footer-small {
  font-size: 0.7rem;
  color: #3a2a4a;
}

.footer-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--spirit);
  text-decoration: none;
  border: 1px solid rgba(123, 45, 142, 0.2);
  padding: 0.5rem 1.2rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.footer-back:hover {
  color: var(--bone);
  border-color: var(--spirit);
}

/* ═══ LIGHTBOX ═══ */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-content {
  max-width: 800px;
  max-height: 80vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border: 1px solid rgba(123, 45, 142, 0.3);
}

.lightbox-content p {
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--spirit-glow);
  font-style: italic;
}

.lightbox-close {
  margin-top: 1rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-title { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hero-gifs { display: none; }
  .hero-angel-img { width: 80px; height: 80px; }

  .section-inner { padding: 2rem 1.2rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .chat-messages { height: 300px; }

  .new-post-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .new-post-actions .gothic-select { max-width: 100%; }

  .chat-input-row {
    flex-direction: column;
  }

  .post-footer {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ═══ SELECTION ═══ */
::selection {
  background: var(--spirit);
  color: var(--bone);
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #4a3a5a;
}

.empty-state .cross-big {
  font-size: 3rem;
  color: rgba(123, 45, 142, 0.2);
  display: block;
  margin-bottom: 1rem;
}

.empty-state p {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
