/* ==========================================================================
   PERSONAL LOG - JOURNAL STYLING
   ========================================================================== */

/* Subtitle and header formatting */
.log-header {
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.log-title {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}

/* SECTION HEADER STYLE */
.section-container {
  margin-bottom: 56px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: lowercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.section-title svg {
  width: 18px;
  height: 18px;
}

/* CARD GRIDS & LIST LAYOUT */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.list-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HORIZONTAL JOURNAL STRIP (For Anime, Games, Books) */
.journal-strip {
  display: flex;
  flex-direction: row;
  background: rgba(46, 52, 64, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  min-height: 120px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  cursor: default;
}

.journal-strip:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -10px rgba(136, 192, 208, 0.15);
}

.strip-image-wrapper {
  width: 90px;
  min-width: 90px;
  min-height: 120px;
  align-self: stretch;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

/* Custom image well size for games to accommodate wide Steam capsule artwork */
#games-list .strip-image-wrapper {
  width: 140px;
  min-width: 140px;
}

.strip-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}

.journal-strip:hover .strip-image {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.strip-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 8px;
}

.strip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.strip-title-row {
  display: flex;
  flex-direction: column;
}

.strip-title {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.strip-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.strip-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.card-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-watching, .badge-playing, .badge-reading {
  background: rgba(235, 203, 139, 0.15);
  color: var(--warn);
}

.badge-completed {
  background: rgba(163, 190, 140, 0.15);
  color: var(--ok);
}

.card-meta-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.strip-takeaway {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin: 4px 0;
}

.strip-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(136, 192, 208, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* EXPLORING GRID */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.explore-card {
  background: rgba(46, 52, 64, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.explore-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.explore-icon-box {
  background: rgba(136, 192, 208, 0.1);
  color: var(--accent);
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explore-icon-box svg {
  width: 20px;
  height: 20px;
}

.explore-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.explore-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ROTATING QUOTE SECTION */
.quote-section {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.quote-container {
  width: 100%;
  max-width: 700px;
  background: rgba(36, 41, 51, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.quote-icon {
  color: rgba(136, 192, 208, 0.15);
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin: 0 0 10px 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0;
  transition: opacity 0.4s ease;
}

.quote-fading {
  opacity: 0;
  transform: translateY(-8px);
}

/* TIMELINE SECTION (RECENTLY ADDED) */
.timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 8px;
}

.timeline-node {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
  transition: background-color 0.2s ease;
}

.timeline-item:hover .timeline-node {
  background: var(--accent);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(46, 52, 64, 0.2);
  border: 1px solid rgba(76, 86, 106, 0.2);
  border-radius: 6px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.timeline-content:hover {
  border-color: var(--accent);
  background: rgba(46, 52, 64, 0.3);
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(136, 192, 208, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.timeline-title-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.timeline-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* FADE-IN SCROLL ANIMATION */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE ADAPTATIONS */
@media (max-width: 600px) {
  .journal-strip {
    flex-direction: column;
  }
  .strip-image-wrapper {
    width: 100%;
    height: 160px;
  }
  #games-list .strip-image-wrapper {
    width: 100%;
    height: 110px; /* Shorter landscape aspect ratio on mobile */
  }
  .timeline {
    padding-left: 16px;
  }
  .timeline::before {
    left: 4px;
  }
  .timeline-node {
    left: -17px;
    width: 9px;
    height: 9px;
  }
  .timeline-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .quote-container {
    padding: 16px;
  }
}
