/* BerrySMP website: same look as store.berrysmp.net (BerrySMP/webstore theme.css). */
:root {
  --primary: #e3345b;
  --store: #f65333;
  --text: #1f2430;
  --muted: #6b7280;
  --bg: #dbdbdb;
  --card: #ffffff;
  --card-light: #f1f2f5;
  --border: rgb(20 24 35 / 8%);
  --dark: #262f3f;
  --width: 1280px;
  --blocky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24' viewBox='0 0 192 24' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H192V8H160V16H128V8H96V24H64V16H32V8H0Z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Roboto Flex", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.container { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 24px; }
/* Minecrafter draws a creeper face in lowercase a; capitals give the regular A (as on the store). */
.font-mc { font-family: "Minecrafter Alt", "Minecrafter", sans-serif; text-transform: uppercase; font-weight: 400 !important; letter-spacing: .5px; }

/* ---------- hero ---------- */
#hero { position: relative; overflow: hidden; background: linear-gradient(45deg, #d40031, #ff9e3a, #ff3bba); padding: 36px 0 84px; color: #fff; }
#hero.small { padding-bottom: 72px; }
#hero::after { content: ""; position: absolute; left: 50%; top: 57%; width: 1800px; height: 1800px; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / 5%) 0deg 8deg, transparent 8deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.85) 30%, transparent 68%); mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.85) 30%, transparent 68%); animation: spin 60s linear infinite; pointer-events: none; z-index: 1; }
/* blocky edge: the content area's top edge, drawn over the hero (same trick as the store) */
#content::before { content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px; background: var(--bg); -webkit-mask: var(--blocky) repeat-x top left / 192px 48px; mask: var(--blocky) repeat-x top left / 192px 48px; transform: rotate(180deg); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#hero > *:not(#particles) { position: relative; z-index: 2; }
#nav { display: flex; align-items: center; justify-content: center; gap: 44px; margin-bottom: 36px; flex-wrap: wrap; }
.nav-link { font-family: "Minecrafter Alt", sans-serif; text-transform: uppercase; font-size: 20px; color: #fff; text-decoration: none; text-shadow: 0 4px 10px rgb(0 0 0 / 25%); min-width: 72px; text-align: center; transition: opacity .2s; }
.nav-link:hover { opacity: .75; }
.nav-pill { font-family: "Minecrafter Alt", sans-serif; text-transform: uppercase; font-size: 20px; background: #fff; padding: 16px 40px; border-radius: 999px; box-shadow: 0 20px 40px rgb(0 0 0 / 20%); text-decoration: none; transition: transform .3s, opacity .3s; }
.nav-pill span { color: var(--store); }
.nav-pill:hover { transform: scale(1.03); opacity: .9; }
.hero-main { display: flex; align-items: center; justify-content: center; max-width: var(--width); margin: 0 auto; padding: 0 24px; gap: 24px; }
.hero-side { flex: 1; display: flex; align-items: center; gap: 28px; text-decoration: none; color: #fff; text-align: left; transition: transform .3s, opacity .3s; }
.hero-side:hover { transform: scale(1.03); opacity: .85; }
.hero-side.right { justify-content: flex-end; text-align: right; }
.hero-icon { width: 80px; height: 80px; flex: none; border-radius: 16px; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 20px 40px rgb(0 0 0 / 25%); }
.hero-text { display: flex; flex-direction: column; text-shadow: 0 2px 6px rgb(0 0 0 / 20%); }
.hero-text .h { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.hero-text .s { font-weight: 700; font-size: 15px; }
.count { background: #fff; color: var(--primary); border-radius: 12px; padding: 4px 12px; font-size: 18px; text-shadow: none; box-shadow: 0 10px 20px rgb(0 0 0 / 15%); }
.logo img { height: 120px; width: auto; display: block; animation: pulse 4s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgb(0 0 0 / 20%)); }
#hero.small .logo img { height: 96px; }
@keyframes pulse { 50% { transform: scale(1.025); } }

/* ---------- layout ---------- */
#content { flex: 1; padding: 24px 0 100px; position: relative; z-index: 5; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 20px; }
.section-head h1 { font-size: 34px; margin: 0; }
.see-all, .count-label { font-weight: 700; color: var(--muted); text-decoration: none; font-size: 15px; }
.see-all:hover { color: var(--primary); }

/* ---------- cards (store card look: rounded, chunky bottom edge) ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: 0 6px 0 rgb(0 0 0 / 10%), 0 10px 30px rgb(0 0 0 / 6%); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgb(0 0 0 / 10%), 0 18px 40px rgb(0 0 0 / 10%); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.post-card .tag { position: relative; z-index: 2; }
.card-cover { aspect-ratio: 16 / 7; overflow: hidden; background: linear-gradient(45deg, #d40031, #ff9e3a, #ff3bba); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover.plain { display: flex; align-items: center; justify-content: center; position: relative; }
.card-cover.plain::after { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 120%, rgb(255 255 255 / 7%) 0deg 8deg, transparent 8deg 18deg); }
.card-cover.plain span { color: #fff; font-size: 30px; text-shadow: 0 4px 12px rgb(0 0 0 / 25%); position: relative; z-index: 1; }
.post-card:nth-child(4n+2) .card-cover.plain { background: linear-gradient(45deg, #1e88e5, #29b6f6); }
.post-card:nth-child(4n+3) .card-cover.plain { background: linear-gradient(45deg, #43a047, #9ccc65); }
.post-card:nth-child(4n+4) .card-cover.plain { background: linear-gradient(45deg, #f4511e, #ffa726); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.card-title { font-size: 21px; line-height: 1.25; margin: 6px 0 8px; font-weight: 800; }
.card-body p { margin: 0 0 16px; color: #4b5563; font-size: 15px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.more { font-weight: 800; font-size: 14px; color: var(--primary); white-space: nowrap; }
.post-card.featured { flex-direction: row; }
.post-card.featured .card-cover { aspect-ratio: auto; width: 46%; min-height: 260px; }
.post-card.featured .card-cover.plain span { font-size: 40px; }
.post-card.featured .card-title { font-size: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; text-decoration: none; background: var(--card-light); color: var(--text); padding: 4px 10px; border-radius: 999px; }

/* ---------- side boxes ---------- */
.side-box { display: block; background: var(--card); border-radius: 24px; padding: 24px; text-decoration: none; box-shadow: 0 6px 0 rgb(0 0 0 / 10%); }
.side-box h3 { margin: 0 0 12px; font-size: 22px; }
.side-box p { margin: 0 0 10px; font-size: 14px; }
.side-box .small { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; background: rgb(255 255 255 / 22%); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.side-box.promo { background: linear-gradient(135deg, #ff5b37, #ff8a2b); color: #fff; box-shadow: 0 6px 0 #c4401f; transition: transform .25s; }
.side-box.discord { background: linear-gradient(135deg, #5865f2, #7983f5); color: #fff; box-shadow: 0 6px 0 #3c45b0; transition: transform .25s; }
.side-box.promo:hover, .side-box.discord:hover { transform: translateY(-3px); }
.side-box.promo .more, .side-box.discord .more { color: #fff; }
.join-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.join-row .label { font-weight: 800; font-size: 14px; color: var(--muted); }
.ip-chip { background: var(--card-light); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: 14px; transition: background .2s, color .2s; }
button.ip-chip:hover { background: var(--primary); color: #fff; }

/* ---------- blog list filters ---------- */

/* ---------- single post ---------- */
.post { background: var(--card); border-radius: 24px; padding: 36px 44px 40px; box-shadow: 0 6px 0 rgb(0 0 0 / 10%); }
.back { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 800; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--primary); }
.post-head { margin: 20px 0 24px; }
.post-head h1 { font-size: 40px; line-height: 1.12; margin: 12px 0 10px; font-weight: 900; letter-spacing: -.5px; text-wrap: balance; } /* body font: the Minecraft face is hard to read in a long title (Alec 2026-12-02) */
.post-cover { border-radius: 16px; margin-bottom: 20px; display: block; }
.prose { font-size: 17px; line-height: 1.7; color: #2d3340; }
.prose h2, .prose h3, .prose h4 { color: var(--text); line-height: 1.25; margin: 1.6em 0 .5em; font-weight: 900; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
.prose a { color: var(--primary); font-weight: 700; }
.prose img { border-radius: 14px; display: block; margin: 1.2em auto; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .3em 0; }
.prose li::marker { color: var(--primary); }
.prose code { background: var(--card-light); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--dark); color: #e5e7eb; padding: 16px; border-radius: 14px; overflow: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 5px solid var(--primary); background: var(--card-light); border-radius: 0 14px 14px 0; }
.main-col { min-width: 0; } /* a grid item: without this a wide table widens the whole page on phones */
.prose .table-wrap { overflow-x: auto; margin: 1.2em 0; border: 2px solid var(--card-light); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.4; }
.prose th, .prose td { padding: 10px 16px; text-align: left; vertical-align: top; }
.prose th.num, .prose td.num, .prose td:first-child { white-space: nowrap; }
.prose th { background: var(--card-light); color: var(--text); font-weight: 900; font-size: 14px; }
.prose td { border-top: 2px solid var(--card-light); }
.prose td:first-child { font-weight: 800; color: var(--text); }
.prose th.num, .prose td.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose hr { border: 0; height: 2px; background: var(--card-light); margin: 2em 0; }
.badge { display: inline-block; background: var(--dark); color: #fff; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 8px; vertical-align: middle; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; border-top: 2px solid var(--card-light); padding-top: 24px; }
.post-nav a { text-decoration: none; background: var(--card-light); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; transition: background .2s, color .2s; }
.post-nav a:hover { background: var(--primary); color: #fff; }
.post-nav small { font-weight: 800; opacity: .7; } .post-nav span { font-weight: 800; }
.post-nav .next { text-align: right; }
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 90px; margin: 0; }
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 14px 32px; border-radius: 999px; font-weight: 900; text-decoration: none; box-shadow: 0 5px 0 #a8203f; }

/* ---------- footer ---------- */
#footer { position: relative; background: #fff; padding: 48px 0 40px; }
#footer::before { content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px; background: #fff; -webkit-mask: var(--blocky) repeat-x top left / 192px 48px; mask: var(--blocky) repeat-x top left / 192px 48px; transform: rotate(180deg); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-brand h3 { margin: 0; font-size: 24px; color: #374151; }
.foot-brand p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; align-items: center; gap: 22px; font-weight: 800; }
.foot-links a { text-decoration: none; color: #374151; } .foot-links a:hover { color: var(--primary); }
.foot-icon { font-size: 28px; }
.foot-bottom { border-top: 1px solid #e5e7eb; margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #9ca3af; }
.foot-bottom p { margin: 0 0 4px; } .foot-bottom .strong { color: #374151; font-weight: 600; }
.foot-bottom b { color: #374151; }

/* ---------- modals + toast ---------- */
.modal { position: fixed; inset: 0; background: rgb(15 18 28 / 60%); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 28px; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; padding: 0 28px 28px; }
.modal-head { text-align: center; padding: 36px 0 18px; }
.modal-head h2 { margin: 0; font-size: 28px; font-weight: 900; }
.modal-head p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.modal-icon { width: 76px; height: 76px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 12px 24px rgb(227 52 91 / 35%); }
.modal-list { display: flex; flex-direction: column; gap: 10px; }
.modal-row { display: flex; align-items: center; gap: 14px; background: var(--card-light); border-radius: 16px; padding: 12px 18px; text-decoration: none; font-weight: 800; transition: background .2s, color .2s, transform .2s; }
.modal-row:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.modal-row .num { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.modal-row:hover .num { background: #fff; color: var(--primary); }
.modal-row .grow { flex: 1; display: flex; flex-direction: column; }
.modal-row.big { background: var(--primary); color: #fff; padding: 16px 20px; } .modal-row.big > i:first-child { font-size: 24px; }
.modal-row small { font-weight: 500; opacity: .8; font-size: 12px; }
.modal-note { background: var(--card-light); border-radius: 16px; padding: 14px 18px; margin-top: 16px; font-size: 14px; }
.modal-note i { color: var(--primary); } .modal-note ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.modal-close { width: 100%; margin-top: 16px; background: var(--card-light); border-radius: 16px; padding: 14px; font-weight: 800; }
.modal-close:hover { background: var(--primary); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 40px); background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .side-col { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .hero-text { display: none; }
}
@media (max-width: 720px) {
  #nav { gap: 18px; margin-bottom: 24px; }
  .nav-link, .nav-pill { font-size: 15px; } .nav-pill { padding: 10px 22px; } .nav-link { min-width: 0; }
  .hero-side { display: none; }
  .logo img, #hero.small .logo img { height: auto; max-height: 90px; width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .post-card.featured { flex-direction: column; } .post-card.featured .card-cover { width: 100%; min-height: 0; aspect-ratio: 16 / 7; }
  .post { padding: 24px 20px 28px; } .post-head h1 { font-size: 28px; }
  .section-head h1 { font-size: 26px; }
  .foot-bottom, .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { #hero::after, .logo img { animation: none; } * { transition: none !important; } }
