:root {
  --bg-light: #fafafa;
  --text-main: #111111;
  --text-muted: #888888;
  --accent: #000000;
  --border: #eaeaea;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

body, html {
  background-color: var(--bg-light);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.view-section { display: none; }
.view-section.active { display: block; }
.hidden { display: none !important; }

/* Typography & High-Contrast UI */
.brand-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 40px;
}

.high-contrast-btn {
  background-color: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.2s ease;
}

.high-contrast-btn.outline {
  background-color: transparent;
  color: var(--accent);
}

.high-contrast-btn:hover {
  background-color: #333;
  color: #fff;
}

.small-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  margin-top: 10px;
}

/* Landing Page & Hidden Scroll Gap */
#landing-page {
  height: 100vh;
  overflow-y: scroll;
  scrollbar-width: none;
}
#landing-page::-webkit-scrollbar { display: none; }

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
}

.credits-section {
  margin-top: 50px;
  text-align: center;
}

.credits-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.credits-list {
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.8;
}

#secret-trigger {
  height: 200px;
  width: 100%;
  margin-top: 100vh;
}

/* Modal CMS */
#cms-modal {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: #fff;
  padding: 40px;
  width: 90%;
  max-width: 480px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  text-align: center;
}

.modal-box h2 {
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: 2px;
}

.cms-section {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.cms-section h3 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cms-section textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  outline: none;
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Loader */
#loading-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #ddd;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Gallery View */
.gallery-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 40px;
}

.gallery-header h2 {
  font-weight: 300;
  letter-spacing: 1px;
}

#gallery-container { padding: 0 40px 40px 40px; }

.time-partition { margin-bottom: 50px; }

.time-partition h2 {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.image-card {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.image-card:hover img { opacity: 0.85; }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state h2 { font-weight: 300; margin-bottom: 8px; }

/* Fullscreen TikTok Viewer */
#fullscreen-viewer {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
}

.viewer-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2100;
}

#scroll-container {
  height: 100vh;
  width: 100vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
#scroll-container::-webkit-scrollbar { display: none; }

.scroll-slide {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scroll-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.download-action {
  position: absolute;
  bottom: 40px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  color: #000;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
}

.glass-toast {
  background: #111;
  color: #fff;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}