﻿:root {
  --bg: #fef8f4;
  --bg-soft: #fffaf7;
  --ink: #1a1a1a;
  --muted: #6a5f58;
  --accent: #ffb1a7;
  --accent-2: #a6d8ff;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(22, 20, 18, 0.08);
  --radius: 24px;
  --entry-bg: url("https://ejfapcgmmbgdxakzqkfe.supabase.co/storage/v1/object/public/media/FONDO.jpg");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff2f1 0%, #fef8f4 45%, #f6fbff 100%);
}

.no-scroll {
  overflow: hidden;
}

[v-cloak] {
  display: none;
}

.page {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 32px;
  min-height: 100vh;
  padding: 32px;
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
}

.brand-photo {
  width: 100%;
  max-width: 200px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.brand-text h1 {
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  margin: 0;
  text-decoration: underline;
}

.brand-text p {
  margin: 6px 0 0;
  color: var(--muted);
}

.sidebar-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.sidebar-card h2 {
  font-family: "Fraunces", serif;
  margin: 0 0 8px;
}

.main-cta {
  text-align: center;
}

.main-cta .primary {
  margin: 0 auto;
  display: inline-flex;
}

.sidebar-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e6dbd3;
  padding: 10px 12px;
  font-family: inherit;
  background: var(--bg-soft);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.12);
}

.primary {
  background: var(--ink);
  color: #fff;
}

.ghost {
  background: #f6efe9;
  color: var(--ink);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.topbar h2 {
  font-family: "Fraunces", serif;
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
}

.mobile-card {
  display: none;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  text-align: left;
}

.mobile-card h2 {
  font-family: "Fraunces", serif;
  margin: 0 0 6px;
}

.mobile-card .primary {
  margin-top: 10px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--entry-bg);
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1);
  opacity: 0.36;
  z-index: 0;
  border-radius: inherit;
}

.post-card > * {
  position: relative;
  z-index: 1;
}

.post-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.post-card .date {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-card .excerpt {
  color: var(--muted);
  line-height: 1.4;
}

.post-detail,
.editor {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.post-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--entry-bg);
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1);
  opacity: 0.36;
  z-index: 0;
  border-radius: inherit;
}

.post-detail > * {
  position: relative;
  z-index: 1;
}

.post-detail h3 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
}

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

.detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  background: #ffe7d5;
  border-radius: 999px;
  padding: 8px 12px;
}

.media-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.post-detail .media-grid {
  grid-template-columns: 1fr;
}

.media-item {
  background: #fff5f2;
  border-radius: 16px;
  padding: 12px;
}

.media-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.media-photo {
  cursor: zoom-in;
}

.media-item audio {
  width: 100%;
}

.editor form {
  display: grid;
  gap: 12px;
}

.editor .media-list {
  display: grid;
  gap: 8px;
}

.media-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f7ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.hidden {
  display: none;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  background: rgba(15, 12, 10, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 30;
}

.lightbox-inner {
  width: min(96vw, 720px);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.lightbox-inner img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(10, 10, 10, 0.45);
}

.lightbox-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.lightbox-actions a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 960px) {
  .page {
    display: block;
    padding: 20px;
    min-height: auto;
  }

  .sidebar {
    position: static;
    gap: 12px;
  }

  .brand {
    margin-bottom: 0;
  }

  .main-cta {
    margin-top: 0;
  }

  .brand-photo {
    max-width: 100%;
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  .main-cta,
  .topbar {
    display: none;
  }

  .mobile-card {
    display: block;
    margin-top: 6px;
  }

  .content {
    gap: 6px;
  }
}
