/* =============================================
   MautiHost Artist Theme - Mobile-First CSS
   ============================================= */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Base Typography --- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* --- Container --- */
.container {
  max-width: 960px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* --- Section --- */
.section {
  padding: 2rem 0;
}

.section__title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

.section__more {
  text-align: center;
  margin-top: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: transparent;
  color: var(--brand);
  opacity: 1;
}

.btn--outline {
  background: transparent;
  color: var(--brand);
}

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-nav__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.site-nav__brand:hover {
  opacity: 1;
  color: var(--brand);
}

.site-nav__logo {
  height: 36px;
  width: auto;
}

.site-nav__title {
  display: inline;
}

/* Hamburger Menu (CSS-only) */
.site-nav__toggle {
  display: none;
}

.site-nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.site-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.3s, opacity 0.3s;
}

.site-nav__menu {
  list-style: none;
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 0;
  padding-top: 0.5rem;
}

.site-nav__toggle:checked ~ .site-nav__menu {
  display: flex;
}

.site-nav__toggle:checked ~ .site-nav__hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.site-nav__toggle:checked ~ .site-nav__hamburger span:nth-child(2) {
  opacity: 0;
}

.site-nav__toggle:checked ~ .site-nav__hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0;
  color: #444;
  font-weight: 500;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--brand);
  opacity: 1;
}

/* --- Hero Section --- */
.hero {
  padding: 3rem 0;
  text-align: center;
}

.hero__content h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.hero__content p {
  font-size: 1.125rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* --- Post Cards --- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card__body {
  padding: 1.25rem;
}

.post-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.post-card__title a {
  color: #1a1a1a;
}

.post-card__title a:hover {
  color: var(--brand);
  opacity: 1;
}

.post-card__date {
  display: block;
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.post-card__excerpt {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 1rem;
}

/* --- Post Single --- */
.post__header {
  margin-bottom: 1.5rem;
}

.post__title {
  font-size: 2rem;
}

.post__date {
  display: block;
  font-size: 0.875rem;
  color: #888;
  margin-top: 0.25rem;
}

.post__featured-image {
  margin-bottom: 2rem;
}

.post__featured-image img {
  width: 100%;
  border-radius: 8px;
}

.post__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

/* --- Content --- */
.content {
  font-size: 1rem;
  line-height: 1.7;
}

.content h2 { margin-top: 2rem; }
.content h3 { margin-top: 1.5rem; }
.content img { border-radius: 8px; margin: 1.5rem 0; }
.content blockquote {
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.portfolio-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.portfolio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.05);
}

.portfolio-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.portfolio-card__title {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.portfolio-card__category {
  font-size: 0.8125rem;
  opacity: 0.85;
}

/* --- Portfolio Detail --- */
.portfolio-detail__image {
  margin-bottom: 2rem;
}

.portfolio-detail__image img {
  width: 100%;
  border-radius: 8px;
}

.portfolio-detail__description {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.portfolio-detail__actions {
  margin: 2rem 0;
}

.portfolio-detail__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

/* --- Event Cards --- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.event-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-card__date-badge {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  padding: 0.5rem;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.event-card__month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-card__day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event-card__year {
  font-size: 0.6875rem;
}

.event-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.event-card__title a {
  color: #1a1a1a;
}

.event-card__title a:hover {
  color: var(--brand);
  opacity: 1;
}

.event-card__venue {
  font-size: 0.875rem;
  color: #555;
  font-weight: 500;
}

.event-card__location {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 0.5rem;
}

/* --- Event Detail --- */
.event-detail__meta {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.event-detail__meta div {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.event-detail__description {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.event-detail__actions {
  margin: 2rem 0;
}

.event-detail__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.pagination__link {
  font-weight: 600;
  font-size: 0.875rem;
}

.pagination__info {
  font-size: 0.875rem;
  color: #888;
}

/* --- Site Footer --- */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: #f5f5f5;
  border-top: 3px solid var(--brand);
}

.site-footer__content {
  text-align: center;
}

.site-footer__copyright {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__link {
  font-size: 0.875rem;
  color: #666;
}

.site-footer__link:hover {
  color: var(--brand);
  opacity: 1;
}

/* =============================================
   Responsive Breakpoints
   ============================================= */

/* Tablet and up */
@media (min-width: 768px) {
  .site-nav__hamburger {
    display: none;
  }

  .site-nav__menu {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 1.5rem;
    padding-top: 0;
  }

  .post-card {
    display: flex;
    flex-direction: row;
  }

  .post-card__image {
    width: 240px;
    height: auto;
    min-height: 180px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__content h1 {
    font-size: 2.75rem;
  }

  h1 { font-size: 2.25rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }

  .hero {
    padding: 2rem 0;
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }

  .event-card {
    flex-direction: column;
  }

  .event-card__date-badge {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Social Links === */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.social-links__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #666;
  background: #f5f5f5;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.social-links__icon:hover {
  color: var(--brand);
  background: #eee;
  transform: scale(1.1);
}
.social-links__icon svg { width: 20px; height: 20px; }

/* === Newsletter Signup === */
.newsletter-signup {
  padding: 3rem 1rem;
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid var(--border);
}
.newsletter-signup__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.newsletter-signup__text {
  color: #666;
  margin-bottom: 1.5rem;
}

/* === Comments === */
.comments-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.comments-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* === Support Button === */
.support-button {
  text-align: center;
  margin-top: 1rem;
}
.support-button__link {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--brand);
  color: #fff;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.support-button__link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* === Embed Blocks === */
.embed-block { margin: 2rem 0; border-radius: 8px; overflow: hidden; }
.embed-block--youtube .embed-block__responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.embed-block--youtube .embed-block__responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.embed-block iframe { border: 0; }

/* ---------- Music List ---------- */
.music-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.music-item {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.music-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.music-item__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.music-item__title a {
  color: inherit;
  text-decoration: none;
}

.music-item__title a:hover {
  color: var(--brand);
}

.music-item__description {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.music-item__image-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 400px;
}

.music-item__image {
  width: 100%;
  display: block;
}

/* === Block Builder Styles === */
.block-hero {
  padding: 4rem 1.5rem;
  text-align: center;
  background-color: var(--bg-secondary, #1e293b);
  background-size: cover;
  background-position: center;
  position: relative;
}
.block-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  pointer-events: none;
}
.block-hero__content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.block-hero__title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.block-hero__subtitle { font-size: 1.125rem; opacity: 0.85; margin-bottom: 1.5rem; }

.block-image__figure { text-align: center; margin: 0; }
.block-image__img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.block-image__caption { margin-top: 0.5rem; font-size: 0.875rem; color: #94a3b8; font-style: italic; }

.block-bio__layout { display: flex; gap: 2rem; align-items: flex-start; }
.block-bio__layout--right { flex-direction: row-reverse; }
.block-bio__image { flex-shrink: 0; }
.block-bio__image img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; }
.block-bio__content { flex: 1; }

.block-cta { text-align: center; padding: 2rem 0; }

.block-newsletter { text-align: center; }

@media (max-width: 640px) {
  .block-hero { padding: 2.5rem 1rem; }
  .block-hero__title { font-size: 1.75rem; }
  .block-bio__layout, .block-bio__layout--right { flex-direction: column; align-items: center; text-align: center; }
  .block-bio__image img { width: 150px; height: 150px; }
}
