/* Import Google Fonts: Plus Jakarta Sans (Cute, rounded, yet completely professional geometric font) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Catppuccin Mocha Palette Definitions */
:root {
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
  --text: #cdd6f4;
  --subtext0: #a6adc8;
  --surface0: #313244;
  
  /* Accents */
  --mauve: #cba6f7;
  --lavender: #b4befe;
  --blue: #89b4fa;
  --sapphire: #74c7ec;
}

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

body {
  background-color: var(--base);
  color: var(--text);
  /* Upgraded to the cute Plus Jakarta Sans font, drops back to system UI fonts if offline */
  font-family: 'Plus Jakarta Sans', monospace, system-ui, sans-serif; 
  font-size: 17px; /* Slightly larger, highly readable standard text size */
  line-height: 1.7;
  padding: 2rem 1.5rem;
}

/* WIDESCREEN OPTIMIZED CONTAINER */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Header Strip */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--surface0);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.site-title {
  color: var(--mauve);
  font-family: monospace; /* Keeps the techy handle look */
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.social-links a {
  color: var(--lavender);
  font-size: 1.3rem; /* Scaled up icons just a touch */
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--mauve);
}

/* Middle Description / Hero Area */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  background-color: var(--surface0);
  border: 2px solid var(--lavender);
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext0);
  font-size: 0.85rem;
  overflow: hidden;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-description {
  color: var(--subtext0);
  font-style: italic;
  font-size: 1.05rem; /* Clean, clear reading contrast layout */
  max-width: 650px;
  margin: 0 auto;
}

/* Navigation Menu */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  font-family: monospace; /* Sharp nav text accent contrast */
  font-size: 1.1rem;
}

nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: bold;
}

nav a:hover, nav a.active {
  color: var(--mauve);
  text-decoration: underline;
}

/* Main Content Styling */
main {
  margin-bottom: 4rem;
}

h2 {
  color: var(--blue);
  margin-bottom: 1.2rem;
  font-size: 1.6rem; /* Crisp, standout header sizing */
  font-weight: 700;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--sapphire);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Recent Posts & Universal List Layout */
.recent-posts {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dotted var(--surface0);
}

.post-list {
  list-style: none;
  margin-top: 1rem;
}

.post-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.post-date {
  color: var(--subtext0);
  font-family: monospace;
  font-size: 0.95rem;
}

/* HIGHLY STRETCHED SIDEBAR/FEED GRID LAYOUT FOR WIDESCREENS */
.music-grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.music-sidebar {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.music-feed-panel {
  flex: 1;
  min-width: 0;
}

.meta-block {
  background-color: var(--mantle);
  border: 1px solid var(--surface0);
  padding: 1.2rem;
  border-radius: 8px; /* Slightly rounder look for the cute style */
}

.meta-block h3 {
  color: var(--mauve);
  font-family: monospace;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dotted var(--surface0);
  padding-bottom: 0.25rem;
}

/* Sidebar Image Grid Setup (5 Icons Across) */
.media-image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.media-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--surface0);
  border: 1px solid var(--surface0);
  border-radius: 6px; /* Smooth rounded corners for album artwork */
}

.now-playing-tag {
  color: var(--mauve);
  font-weight: bold;
  font-family: monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-left: 0.5rem;
}

/* Footer (Minimal divider line style) */
.custom-footer {
  margin-top: 4rem;
  border-top: 1px dashed var(--surface0);
  padding-top: 1.5rem;
}

/* RESPONSIVE SMART MEDIA QUERY FOR MOBILE PHONES */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
    font-size: 16px; /* Scale text down perfectly on tiny portable screens */
  }
  
  .container {
    width: 100%;
  }

  .music-grid {
    flex-direction: column;
    gap: 2rem;
  }
  
  .music-sidebar {
    flex: 1 1 100%;
    width: 100%;
  }
  
  .post-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.2rem;
  }
}

/* Donation Page Structural Layout */
.donate-grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.donate-main-card {
  flex: 1.2;
  background-color: var(--mantle);
  border: 1px solid var(--surface0);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.qr-placeholder {
  max-width: 280px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--surface0);
  border: 2px dashed var(--lavender);
  border-radius: 8px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext0);
  overflow: hidden;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.donate-details-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--surface0);
  padding: 0.5rem 0;
}

.info-label {
  color: var(--mauve);
  font-weight: bold;
}

.info-value {
  font-family: monospace;
  color: var(--text);
}

@media (max-width: 768px) {
  .donate-grid {
    flex-direction: column;
  }
}