@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --mineraze-blue-dark: #12385c;
    --mineraze-blue-deeper: #0b1d30;
    --mineraze-blue: #1e9bd7;
    --mineraze-blue-soft: #eef8ff;
    --mineraze-green: #39c766;
    --mineraze-text: #172033;
    --mineraze-muted: #5f6f84;
    --mineraze-soft: #8b98ab;
    --mineraze-border: rgba(15, 23, 42, 0.10);
    --mineraze-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --mineraze-shell: min(960px, calc(100vw - 32px));
    --mineraze-wide-shell: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background: #efefef;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #efefef;
    color: var(--mineraze-text);
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.mineraze-shell {
    width: var(--mineraze-shell);
    margin: 0 auto;
}

.mineraze-topbar .mineraze-shell {
    width: var(--mineraze-wide-shell);
}

/* Header */
.mineraze-site-header {
    position: relative;
    z-index: 10;
    background: transparent;
}

.mineraze-hero {
    position: relative;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(18, 56, 92, 0.78), rgba(30, 155, 215, 0.62)),
        url("https://i.pinimg.com/originals/89/21/9b/89219b60d170d1b5fbb4b4ab11bf4996.jpg") center top / cover no-repeat;
}

.mineraze-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 42%);
    pointer-events: none;
}


.mineraze-particles-header {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.mineraze-particles-header canvas {
    display: block;
}

.mineraze-topbar {
    position: relative;
    z-index: 3;
    padding: 16px 0;
    background: rgba(10, 37, 64, 0.22);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 3px 3px rgba(0,0,0,0.05);
    backdrop-filter: blur(6px);
}

.mineraze-topbar-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mineraze-header-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.mineraze-header-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 34px;
    padding: 0 1.04rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.94);
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.14s ease;
}

.mineraze-header-links a:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
    color: #ffffff;
}

.mineraze-header-links svg {
    width: 0.78rem;
    height: 0.78rem;
    fill: currentColor;
}

.mineraze-server-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    min-height: 42px;
    padding: 0.42rem 1rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    cursor: pointer;
    text-align: left;
    line-height: 1.1;
    transition: 0.14s ease;
}

.mineraze-server-pill:hover,
.mineraze-server-pill.is-copied {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

.mineraze-server-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--mineraze-green);
    box-shadow: 0 0 14px rgba(57,199,102,0.95);
}

.mineraze-server-small {
    display: block;
    color: rgba(255,255,255,0.86);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.mineraze-server-ip {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.mineraze-logo-stage {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 0 38px;
    margin-top: 0;
    text-align: center;
}

.mineraze-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 270px;
    max-width: 270px;
    line-height: 0;
    filter: drop-shadow(0 16px 22px rgba(0,0,0,0.28));
    transition: 0.16s ease;
    text-decoration: none;
}

.mineraze-logo-card:hover {
    transform: translateY(-2px);
}

.mineraze-logo-card img {
    width: 100%;
    max-width: 270px;
    height: auto;
    object-fit: contain;
    animation: minerazeLogoPulse 4s infinite ease-in-out;
}

@keyframes minerazeLogoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.045); }
    100% { transform: scale(1); }
}

.mineraze-nav-wrap {
    position: relative;
    z-index: 3;
    background: #ffffff;
    border-bottom: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.mineraze-nav-row {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mineraze-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mineraze-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 1.12rem;
    border-radius: 8px;
    background: #f5f8fb;
    border: 1px solid rgba(15,23,42,0.08);
    color: #172033;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.14s ease;
}

.mineraze-nav-link:hover,
.mineraze-nav-link[aria-current="page"] {
    background: #eef8ff;
    border-color: rgba(30,155,215,0.35);
    color: #12385c;
    box-shadow: inset 0 -2px 0 #1e9bd7;
}

/* Main layout */
.site-main {
    width: var(--mineraze-shell);
    margin: 2.2rem auto 0;
    min-height: 46vh;
}

.mineraze-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--mineraze-border);
    box-shadow: 0 10px 30px rgba(15,23,42,0.10);
    overflow: hidden;
}

.mineraze-home-card {
    margin: 0 auto 70px;
}

.mineraze-store-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--mineraze-blue-dark) 0%, var(--mineraze-blue) 100%);
    color: #ffffff;
    text-align: center;
}

.mineraze-store-header span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,0.82);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mineraze-store-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.mineraze-store-header p {
    max-width: 720px;
    margin: 10px auto 0;
    color: rgba(255,255,255,0.84);
    font-size: 14px;
    font-weight: 600;
}


.mineraze-store-header--compact {
    padding: 14px 30px;
}

.mineraze-store-header--compact span {
    margin-bottom: 0;
}

.mineraze-store-body {
    padding: 34px 38px 38px;
}

.mineraze-intro-block {
    margin: 0 0 26px;
}

.mineraze-intro-block h2 {
    margin: 0;
    color: var(--mineraze-text);
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.mineraze-intro-block p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #354156;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Post cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-card {
    min-width: 0;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    overflow: hidden;
    transition: 0.16s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15,23,42,0.12);
    border-color: rgba(30,155,215,0.24);
}

.post-card-link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.post-card-image-wrap {
    margin: 0;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #12385c, #1e9bd7);
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.22s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.035);
}

.post-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.post-card-tag,
.post-tag-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 0.68rem;
    border-radius: 999px;
    background: #eef8ff;
    border: 1px solid rgba(30,155,215,0.22);
    color: #12385c;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-decoration: none;
}

.post-card h2 {
    margin: 12px 0 0;
    color: var(--mineraze-text);
    font-size: 1.02rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.018em;
}

.post-card p {
    margin: 9px 0 0;
    color: #4b5563;
    font-size: 0.82rem;
    line-height: 1.58;
    font-weight: 500;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 16px;
    color: #7a8799;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.empty-card {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed rgba(15,23,42,0.16);
    color: #4b5563;
}

.empty-card h3 {
    margin: 0 0 4px;
    color: var(--mineraze-text);
    font-size: 1.1rem;
    font-weight: 900;
}

.empty-card p {
    margin: 0;
}

/* Single posts */
.mineraze-post-card {
    margin: 0 auto 32px;
}

.post-hero {
    padding: 34px 38px;
    background: linear-gradient(135deg, var(--mineraze-blue-dark) 0%, var(--mineraze-blue) 100%);
    color: #ffffff;
    text-align: center;
}

.post-hero h1 {
    max-width: 860px;
    margin: 12px auto 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.post-hero p {
    max-width: 720px;
    margin: 12px auto 0;
    color: rgba(255,255,255,0.86);
    font-size: 1rem;
    font-weight: 600;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-top: 16px;
    color: rgba(255,255,255,0.78);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.post-feature-image-wrap {
    margin: 0;
    background: #0f172a;
}

.post-feature-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.post-feature-image-wrap figcaption {
    padding: 0.75rem 1.2rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
    text-align: center;
}

.gh-content {
    padding: 38px;
    color: var(--mineraze-text);
    font-size: 0.95rem;
    line-height: 1.78;
}

.gh-content > *:first-child {
    margin-top: 0 !important;
}

.gh-content > *:last-child {
    margin-bottom: 0 !important;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--mineraze-text);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.gh-content h2 {
    margin: 2rem 0 0.8rem;
    font-size: 1.55rem;
}

.gh-content h3 {
    margin: 1.65rem 0 0.65rem;
    font-size: 1.22rem;
}

.gh-content p,
.gh-content ul,
.gh-content ol {
    margin: 0 0 1.15rem;
}

.gh-content a {
    color: #127fc0;
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.35rem;
}

.gh-content li + li {
    margin-top: 0.35rem;
}

.gh-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid #1e9bd7;
    border-radius: 10px;
    background: #eef8ff;
    color: #12385c;
    font-weight: 700;
}

.gh-content code {
    padding: 0.18rem 0.38rem;
    border-radius: 6px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 0.88em;
    font-weight: 800;
    white-space: nowrap;
}

.gh-content pre {
    overflow: auto;
    padding: 1.05rem 1.15rem;
    border-radius: 12px;
    background: #0b1d30;
    color: #e5eef8;
    box-shadow: var(--mineraze-shadow);
}

.gh-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    white-space: pre;
}

.gh-content table {
    width: 100%;
    margin: 1.1rem 0 1.4rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--mineraze-shadow);
}

.gh-content th,
.gh-content td {
    padding: 0.72rem 0.85rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.gh-content th {
    background: #eef8ff;
    color: var(--mineraze-blue-dark);
    font-weight: 900;
    text-align: left;
}

.gh-content tr:last-child td {
    border-bottom: 0;
}

.kg-card {
    margin: 1.6rem 0;
}

.kg-image {
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.10);
}

.kg-width-wide,
.kg-width-full {
    width: 100%;
}

.kg-gallery-container,
.kg-gallery-row {
    display: flex;
    gap: 0.8rem;
}

.kg-gallery-container {
    flex-direction: column;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.kg-bookmark-card a.kg-bookmark-container {
    display: grid;
    grid-template-columns: 1fr 180px;
    overflow: hidden;
    min-height: 120px;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--mineraze-shadow);
}

.kg-bookmark-content {
    padding: 1rem;
}

.kg-bookmark-title {
    color: var(--mineraze-text);
    font-weight: 900;
}

.kg-bookmark-description,
.kg-bookmark-metadata {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 38px 38px;
}

.post-tags a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: #f5f8fb;
    border: 1px solid rgba(15,23,42,0.08);
    color: #12385c;
    font-size: 0.7rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 auto 70px;
    padding: 18px;
}

.post-navigation div:last-child {
    text-align: right;
}

.post-navigation a {
    color: #12385c;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 28px 0 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.pagination a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    border-radius: 8px;
    background: #f5f8fb;
    border: 1px solid rgba(15,23,42,0.08);
    color: #12385c;
    text-decoration: none;
}

/* Footer */
.mineraze-footer {
    margin-top: 70px;
    color: #ffffff;
}

.mineraze-footer-main {
    background: linear-gradient(135deg, #0b1d30 0%, #12385c 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mineraze-footer-main-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 150px;
    padding: 30px 0;
}

.mineraze-footer-logo img {
    width: 58px;
    min-width: 58px;
    opacity: 0.95;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.26));
}

.mineraze-footer-text h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.mineraze-footer-text p {
    max-width: 840px;
    margin: 0;
    color: rgba(255,255,255,0.74);
    font-size: 0.78rem;
    line-height: 1.62;
    font-weight: 600;
}

.mineraze-footer-bottom {
    background: #071523;
}

.mineraze-footer-bottom-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mineraze-footer-copyright {
    color: rgba(255,255,255,0.75);
    font-size: 0.72rem;
    line-height: 1.65;
}

.mineraze-footer-copyright strong {
    color: rgba(255,255,255,0.92);
    font-weight: 900;
}

.centered {
    text-align: center;
}

.button-primary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 1.15rem;
    border-radius: 8px;
    background: #1e9bd7;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

/* Accessibility */
:focus-visible {
    outline: 3px solid rgba(30,155,215,0.42);
    outline-offset: 3px;
}

#ipvalue {
    position: fixed;
    left: -9999px;
    top: -9999px;
}

/* Responsive */
@media (max-width: 980px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .mineraze-hero {
        min-height: 255px;
    }

    .mineraze-topbar-row {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .mineraze-header-links {
        justify-content: center;
        gap: 0.42rem;
    }

    .mineraze-header-links a {
        min-height: 30px;
        padding: 0 0.75rem;
        font-size: 0.58rem;
    }

    .mineraze-server-pill {
        min-height: 36px;
        padding: 0.36rem 0.82rem;
    }

    .mineraze-logo-stage {
        padding: 20px 0 30px;
    }

    .mineraze-logo-card {
        width: 220px;
        max-width: 220px;
    }

    .mineraze-nav-row {
        min-height: auto;
        padding: 12px 0;
    }

    .mineraze-primary-nav {
        gap: 0.42rem;
    }

    .mineraze-nav-link {
        min-height: 32px;
        padding: 0 0.78rem;
        font-size: 0.62rem;
    }

    .site-main {
        margin-top: 1.25rem;
    }

    .mineraze-store-body,
    .gh-content {
        padding: 24px 22px;
    }

    .mineraze-store-header,
    .post-hero {
        padding: 28px 22px;
    }

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

    .kg-bookmark-card a.kg-bookmark-container {
        grid-template-columns: 1fr;
    }

    .kg-bookmark-thumbnail {
        display: none;
    }

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

    .post-navigation div:last-child {
        text-align: left;
    }

    .mineraze-footer-main-inner {
        flex-direction: column;
        text-align: center;
        padding: 34px 0;
    }
}

@media (max-width: 420px) {
    .mineraze-shell,
    .site-main {
        width: min(100vw - 22px, 960px);
    }

    .mineraze-store-body,
    .gh-content {
        padding: 20px 16px;
    }

    .post-tags {
        padding: 0 16px 24px;
    }
}

@media (max-width: 480px) {
    .mineraze-logo-card {
        width: 190px;
        max-width: 190px;
    }
}
