/* styles.css for Somewhere Under the Night Sky */

/* Variables */
:root {
  --color-bg: #0f0f1a;
  --color-card-bg: rgba(255, 255, 255, 0.1);
  --color-overlay: rgba(0, 0, 0, 0.5);
  --border-radius: 12px;
  --transition-fast: 0.2s ease-in-out;
}

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

body {
  background-color: var(--color-bg);
  color: #eee;
  font-family: "Roboto Mono", monospace;
  overflow: hidden;
}

header {
  text-align: center;
  padding: 1rem;
}

.gamja-flower-title-unique {
  font-family: "Gamja Flower", cursive;
  font-size: 2.5rem;
  color: #f5f5f5;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.collection-item {
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
  position: relative;
  padding: 1rem;
  cursor: grab;
  transition: transform var(--transition-fast);
}

.collection-item:active {
  cursor: grabbing;
  transform: scale(1.05);
}

/* 1. Circle Card */
.circle-card {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roboto-mono-text-unique {
  font-family: "Roboto Mono", monospace;
  font-weight: 100;
  font-size: 1rem;
  text-align: center;
}

/* 2. Gallery Card */
.gallery-card {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* 3. Article Pop-up Card */
.article-popup-card {
  height: 200px;
}

/* 4. Interactive Book Card */
.book-card {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 5. YouTube Embed Card */
.youtube-card .video-container {
  position: relative;
}

.youtube-card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.transparent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  border-radius: var(--border-radius);
}

/* 6. Transparent Image Card */
.transparent-card img {
  width: 100%;
  height: auto;
  opacity: 0.8;
  border-radius: var(--border-radius);
}

/* Popups */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity var(--transition-fast);
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: var(--color-card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  backdrop-filter: blur(12px);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  font-family: "Roboto Mono", monospace;
}
