/* MuralFrame — identidade visual premium, minimalista e responsiva */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f7f2;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --card: #ffffff;
  --accent: #0ea5e9;
  --accent-soft: #e0f2fe;
  --green-soft: #a7f3d0;
  --rose: #e11d48;
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.82); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 16px; background: var(--ink); box-shadow: 0 12px 24px rgba(15,23,42,.15); }
.bm-frame { position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.9); border-radius: 8px; }
.bm-dot { position: absolute; bottom: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: #7dd3fc; }
.bm-mtn { position: absolute; bottom: 10px; right: 10px; width: 16px; height: 12px; background: var(--green-soft); clip-path: polygon(0 100%, 45% 30%, 70% 65%, 100% 10%, 100% 100%); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.brand-text small { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .28em; color: var(--muted); }
.brand-inverse .brand-text { color: #fff; }

.main-nav { display: none; align-items: center; gap: 26px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.header-actions { display: none; align-items: center; gap: 12px; }
.lang-switch select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); }
.avatar-link img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.18); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { background: #f8fafc; }
.btn-danger { background: var(--rose); color: #fff; }

.mobile-menu { display: block; }
.mobile-menu summary { list-style: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.mobile-panel { position: absolute; right: 20px; top: 68px; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); display: grid; }
.mobile-panel a { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.mobile-panel a:hover { background: #f8fafc; }

/* ---------- Hero / sections ---------- */
.site-main { min-height: 60vh; }
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px); background-size: 44px 44px; }
.hero-glow1, .hero-glow2 { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero-glow1 { top: 40px; left: 50%; width: 280px; height: 280px; background: #bae6fd; }
.hero-glow2 { bottom: 40px; right: 0; width: 380px; height: 380px; background: #d1fae5; }
.hero-inner { position: relative; display: grid; gap: 40px; padding: 60px 20px 70px; }
.eyebrow { display: inline-flex; border: 1px solid var(--line); background: rgba(255,255,255,.8); border-radius: 999px; padding: 8px 16px; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: .95; letter-spacing: -.055em; font-weight: 800; margin: 22px 0 18px; }
.hero p { max-width: 560px; color: var(--ink-2); font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 460px; margin-top: 34px; }
.stat { background: rgba(255,255,255,.72); border: 1px solid #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.stat b { font-size: 24px; display: block; }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.hero-preview { display: none; }

.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; font-weight: 800; margin-top: 10px; }

/* ---------- Masonry ---------- */
.masonry { columns: 1; column-gap: 18px; }
.card { break-inside: avoid; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); border-radius: 22px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; overflow: hidden; background: #f1f5f9; }
.card-media img { width: 100%; height: auto; transition: transform .7s; }
.card:hover .card-media img { transform: scale(1.05); }
.badge-featured { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 800; color: var(--ink); backdrop-filter: blur(4px); }
.card-body { padding: 16px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.card-author { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.card-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.card-body h3 { font-size: 16px; font-weight: 700; margin-top: 10px; letter-spacing: -.01em; }
.card-body time { font-size: 12px; color: var(--muted); }

/* ---------- Panels / forms ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.dropzone { display: grid; place-items: center; min-height: 240px; border: 2px dashed #cbd5e1; border-radius: 24px; background: #f8fafc; text-align: center; padding: 30px; cursor: pointer; transition: .2s; }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-icon { font-size: 46px; }
.dropzone .dz-title { font-size: 19px; font-weight: 800; margin-top: 12px; }
.dropzone .dz-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-preview img { max-height: 280px; border-radius: 16px; margin: 0 auto; }

.alert { border-radius: 16px; padding: 14px 18px; font-size: 14px; font-weight: 600; }
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.empty-state { border: 1px dashed #cbd5e1; border-radius: 24px; padding: 50px; text-align: center; color: var(--muted); }

/* ---------- Tables (admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
table.admin { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
table.admin th { text-align: left; padding: 14px 16px; background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
table.admin td { padding: 14px 16px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; background: #f1f5f9; }
.tag.active { background: #ecfdf5; color: #047857; }
.tag.blocked, .tag.deleted { background: #fff1f2; color: #be123c; }
.btn-sm { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; background: #fff; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e2e8f0; margin-top: 60px; }
.footer-grid { display: grid; gap: 34px; padding: 48px 20px; }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .22em; color: #64748b; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 14px; color: #cbd5e1; }
.footer-grid a:hover { color: #fff; }
.footer-tag { margin-top: 18px; max-width: 380px; font-size: 14px; color: #94a3b8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 20px; text-align: center; font-size: 12px; color: #64748b; }

/* ---------- Utility ---------- */
.page-title { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.04em; font-weight: 800; margin: 14px 0 8px; }
.page-lead { color: var(--ink-2); max-width: 640px; }
.grid-2 { display: grid; gap: 18px; }
.grid-3 { display: grid; gap: 18px; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--line); }
.country-grid { display: grid; gap: 16px; }
.country-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform .2s, box-shadow .2s; }
.country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.country-card .cc-flag { font-size: 30px; }
.country-card b { font-size: 18px; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 768px) {
  .main-nav, .header-actions { display: flex; }
  .mobile-menu { display: none; }
  .hero-inner { grid-template-columns: 1fr .9fr; align-items: center; padding: 90px 20px 110px; gap: 50px; }
  .hero-preview { display: block; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1024px) { .masonry { columns: 3; } .country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .masonry { columns: 4; } .country-grid { grid-template-columns: repeat(4, 1fr); } }

@keyframes float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-soft { animation: float-soft 7s ease-in-out infinite; }

/* ---------- Social (likes + comments) ---------- */
.social-bar { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s; font: inherit; font-weight: 700; }
.like-btn:hover { transform: translateY(-1px); background: #fff5f7; color: #be123c; border-color: #fecdd3; }
.like-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.like-btn .like-icon { color: var(--muted); transition: color .2s, transform .25s; }
.like-btn.is-liked { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.like-btn.is-liked .like-icon { color: #e11d48; }
.like-btn.pop .like-icon { animation: like-pop .35s ease; }
@keyframes like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.like-count { min-width: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.like-label { color: var(--muted); font-weight: 600; }
.social-sep { color: var(--muted); }
.comment-summary { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.comment-summary svg { color: var(--muted); }
.comment-count { font-variant-numeric: tabular-nums; color: var(--ink); }

.comments-block { padding: 28px; }
.comment-form { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 22px; }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.comment-avatar-link { display: block; }
.comment-input-wrap { display: grid; gap: 10px; }
.comment-input-wrap textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; resize: vertical; min-height: 56px; background: #fff; }
.comment-input-wrap textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.comment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.btn-sm-solid { padding: 10px 18px; font-size: 13px; }
.comment-form-error { color: var(--rose); font-size: 13px; font-weight: 700; }

.comments-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.comments-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid transparent; transition: background .2s, border-color .2s, opacity .2s; }
.comment:hover { background: #fff; border-color: var(--line); }
.comment.is-pending { opacity: .55; }
.comment.is-removing { opacity: .25; transform: scale(.98); }
.comment-body { min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.comment-author { font-weight: 800; color: var(--ink); }
.comment-text { margin-top: 6px; color: var(--ink); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.comment-delete { margin-top: 8px; background: none; border: none; padding: 0; color: var(--rose); font-weight: 700; font-size: 12px; cursor: pointer; }
.comment-delete:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .comments-block { padding: 32px; }
}
