/* Concept 1: The Living Room
   A warm, alive space that breathes with current presence */

:root {
  --color-bg: #FDF6EE;
  --color-bg-warm: #E9C5A9;
  --color-bg-soft: #F5E6D3;
  --color-accent: #D4845C;
  --color-accent-hover: #C06B3F;
  --color-text: #3D3024;
  --color-text-muted: #7A6B5A;
  --color-border: rgba(61, 48, 36, 0.12);
  --color-card-bg: rgba(255, 255, 255, 0.7);
  --color-link: #B85A3C;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient animated background */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(233, 197, 169, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 132, 92, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245, 230, 211, 0.3) 0%, transparent 70%);
  animation: ambientShift 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes ambientShift {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.9;
    transform: scale(1.05) rotate(1deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.02) rotate(-0.5deg);
  }
  75% {
    opacity: 0.95;
    transform: scale(0.98) rotate(0.5deg);
  }
}

/* Floating particles */
.ambient-bg::before,
.ambient-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.ambient-bg::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 197, 169, 0.3) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: -5s;
}

.ambient-bg::after {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 132, 92, 0.2) 0%, transparent 70%);
  bottom: 20%;
  right: 15%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-20px, 30px); }
  75% { transform: translate(-30px, -10px); }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
}

.header h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Section styling */
section {
  margin-bottom: 60px;
}

section h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

section h2 a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

section h2 a:hover {
  color: var(--color-link);
}

.external-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* Now section grid */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.now-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.now-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(61, 48, 36, 0.1);
}

.now-card-header {
  margin-bottom: 12px;
}

.now-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.now-card.listening .now-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}

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

.track-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.track-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--color-bg-soft);
  flex-shrink: 0;
}

.track-details .track-name {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.track-details .track-artist {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.project-title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Loading pulse */
.loading-pulse {
  height: 60px;
  background: linear-gradient(90deg, var(--color-bg-soft) 25%, var(--color-bg) 50%, var(--color-bg-soft) 75%);
  background-size: 200% 100%;
  animation: loadingPulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes loadingPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Feed section */
.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-post {
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  transition: transform 0.2s;
}

.feed-post:hover {
  transform: translateY(-1px);
}

.feed-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.feed-post-time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.feed-post-time a {
  color: inherit;
  text-decoration: none;
}

.feed-post-time a:hover {
  text-decoration: underline;
}

.feed-post-content {
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.feed-post-content a {
  color: var(--color-link);
  text-decoration: none;
}

.feed-post-content a:hover {
  text-decoration: underline;
}

.feed-post-images {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  border-radius: 8px;
  overflow: hidden;
}

.feed-post-images.single {
  grid-template-columns: 1fr;
}

.feed-post-images.multiple {
  grid-template-columns: 1fr 1fr;
}

.feed-post-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.feed-error {
  text-align: center;
  color: var(--color-text-muted);
  padding: 30px;
  font-style: italic;
}

/* Explore section */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.explore-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 48, 36, 0.12);
  border-color: var(--color-accent);
}

.explore-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.explore-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

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

/* Footer */
.footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer a {
  color: var(--color-link);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.separator {
  margin: 0 8px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 40px 16px;
  }

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

  .tagline {
    font-size: 1rem;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .now-grid {
    grid-template-columns: 1fr;
  }
}
