@font-face {
    font-family: 'Mojangles';
    src: url('../fonts/mojangles.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Hypixel Skyblock inspired palette */
    --bg-primary: #121111;
    --bg-secondary: #1a1d2d;
    --bg-panel: #1C1A1A;
    /* Ön kutu rengi */
    --bg-hover: rgba(56, 61, 92, 0.8);

    --text-main: #e0e6ed;
    --text-muted: #8a94a6;
    --text-link: #62d3ff;
    --text-link-hover: #c89df0;

    --accent-primary: #8c52ff;
    --accent-secondary: #ff3366;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    --mc-gold: #FFAA00;
    --mc-red: #FF5555;
    --mc-green: #55FF55;
    --mc-blue: #5555FF;
    --mc-purple: #AA00AA;
    --mc-aqua: #55FFFF;

    --font-primary: 'Rubik', sans-serif;
    --font-heading: 'Rubik', sans-serif;
    --font-paragraph: 'Montserrat', sans-serif;

    --border-radius: 12px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-weight: 250;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Accessibility & SEO utility for screen readers / crawlers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

b,
strong {
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: background-color 0.2s, text-decoration 0.2s;
}

a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.wiki-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--text-link));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-bar form {
    display: flex;
    gap: 0.6rem;
}

.search-bar input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-family: inherit;
    width: 250px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(140, 82, 255, 0.2);
}

.search-bar button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: #7a40f0;
    box-shadow: 0 4px 12px rgba(140, 82, 255, 0.3);
}

/* Layout */
.main-layout {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar nav {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
}

.sidebar h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar a:hover {
    background: var(--bg-hover);
    color: white;
    padding-left: 1rem;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 2.5rem;
    min-width: 0;
}

.content-header {
    margin-top: 5rem;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        linear-gradient(to right, #0d0d0d 0%, transparent 20%, transparent 80%, #0d0d0d 100%),
        url('/public/cdn/wallpaper.webp?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    /* Minecraft teması için pikselleri koru */
    opacity: 0.04;
    /* Resmi belirgin hale getirmek için görünürlüğü artırıldı */

    /* Hardware acceleration (GPU) */
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* Sadece ana sayfadan gelen makale sayfalarında aydınlıktan karanlığa animasyon oynat */
body.from-home:not(.page-home) .site-wallpaper {
    animation: wallpaperFadeOutArticle 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

body.page-home .site-wallpaper {
    /* Ana sayfada arka plan karanlıktan aydınlığa geçer */
    animation: wallpaperFadeInHome 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes wallpaperFadeOutArticle {
    0% {
        opacity: 0.40;
    }

    100% {
        opacity: 0.04;
    }
}

@keyframes wallpaperFadeOutFull {
    0% {
        opacity: 0.40;
    }

    100% {
        opacity: 0;
    }
}

@keyframes wallpaperFadeInHome {
    0% {
        opacity: 0.04;
    }

    100% {
        opacity: 0.40;
    }
}

.content-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    color: white;
}

.page-actions a {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.page-actions a:hover {
    border-color: var(--text-link);
    color: var(--text-link);
}

/* Markdown Content Styling */
.wiki-content {
    /* Styles moved to .content-area */
}

.wiki-content p {
    max-width: 85%;
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.wiki-content h1:first-child,
.wiki-content h2:first-child {
    margin-top: 0;
}

.wiki-content p {
    font-family: var(--font-paragraph);
    margin-bottom: 1.2rem;
}

.wiki-content p b,
.wiki-content p strong {
    font-weight: 400;
}


.wiki-content ul,
.wiki-content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.wiki-content li {
    margin-bottom: 0.4rem;
}

.wiki-content code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--text-link);
}

.wiki-content pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.wiki-content pre code {
    background: none;
    padding: 0;
    color: var(--text-main);
}

.wiki-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1rem;
    color: var(--text-muted);
    background: rgba(140, 82, 255, 0.05);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

/* Edit Form */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(140, 82, 255, 0.2);
}

.form-group textarea {
    min-height: 400px;
    resize: vertical;
    font-family: monospace;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-primary:hover {
    background: #7a40f0;
    box-shadow: 0 4px 15px rgba(140, 82, 255, 0.4);
}

/* Item Tooltip (Minecraft Style) */
.mc-tooltip {
    background: rgba(16, 0, 16, 0.95);
    border: 2px solid #3700b3;
    border-radius: 4px;
    padding: 10px;
    display: inline-block;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 4px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Mojangles', monospace, sans-serif;
    font-weight: 250;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-main);
    margin: 1rem 0;
}

.mc-tooltip-title {
    color: var(--mc-gold);
    font-weight: bold;
    margin-bottom: 5px;
}

.mc-tooltip-desc {
    color: var(--mc-gray);
    white-space: pre-line;
}

.mc-tooltip-rarity {
    margin-top: 10px;
    font-weight: bold;
    color: var(--mc-purple);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* --- WIKI CONTENT STYLES --- */

/* Toolbar */
.wiki-toolbar {
    display: flex;
    gap: 0.6rem;
    background: rgba(16, 20, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem;
}

.toolbar-btn {
    color: var(--text-main);
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 4px;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.toolbar-btn .icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Breadcrumbs */
.wiki-breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wiki-breadcrumbs .separator {
    opacity: 0.4;
    font-size: 0.8rem;
}

.wiki-breadcrumbs .current {
    color: white;
}

/* Headings */
.wiki-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    scroll-margin-top: 100px;
    display: flow-root;
}

.wiki-content h2:first-of-type {
    margin-top: 1rem;
}

/* Infobox */
.wiki-infobox {
    float: right;
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: none;
    margin: 0 0 1rem 1.5rem;
    padding: 0;
    overflow: hidden;
}

.wiki-infobox-header {
    text-align: center;
    font-weight: 600;
    color: white;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.wiki-infobox-image {
    text-align: center;
    padding: 1.5rem;
}

.wiki-infobox-subheader {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
}

.wiki-infobox-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    image-rendering: pixelated;
}

.wiki-infobox-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0.8rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    background: transparent;
}

.wiki-infobox-footer.nested {
    padding-left: 1.5rem;
}

.wiki-infobox-footer strong {
    color: white;
}

.wiki-infobox-footer span {
    font-weight: 400 !important;
}

/* Table of Contents (TOC) */
.wiki-toc {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: fit-content;
    min-width: 200px;
    margin: 1rem 0 2rem 0;
    font-family: var(--font-paragraph);
}

.wiki-toc-header {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.wiki-toc-content {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
}

.wiki-toc-content ol {
    margin: 0;
    padding-left: 1.3rem;
    color: var(--text-main);
}

.wiki-toc-content li {
    margin-bottom: 0.2rem;
}

.wiki-toc-content li::marker {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.wiki-toc-content ol ol {
    margin-top: 0.25rem;
    padding-left: 1rem;
}

/* Custom Table */
.wiki-table {
    width: 350px;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem 0;
    background: rgba(15, 17, 26, 0.5);
    border: 1px solid var(--border-color);
}

.wiki-table th {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.wiki-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
}

/* Colors Utilities */
.color-aqua {
    color: var(--mc-aqua) !important;
    font-weight: 600;
}

.color-red {
    color: var(--mc-red) !important;
    font-weight: 600;
}

.color-green {
    color: var(--mc-green) !important;
    font-weight: 600;
}

.color-gold {
    color: var(--mc-gold) !important;
    font-weight: 600;
}

.color-blue {
    color: var(--mc-blue) !important;
}

/* Wiki Image Buttons */
.wiki-image-btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.wiki-image-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(16, 20, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    width: 140px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none !important;
}

.wiki-image-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(140, 82, 255, 0.2);
}

.wiki-image-btn img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    image-rendering: pixelated;
    /* Keeps Minecraft items sharp */
}

.wiki-image-btn span {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.wiki-image-btn:hover span {
    color: white;
}

/* ==========================================================================
   Minecraft Inventory UI Framework (Mini)
   ========================================================================== */
.mc-ui-container {
    background: #c6c6c6;
    border: 2px solid #000;
    border-radius: 4px;
    padding: 4px 10px 10px 10px;
    display: inline-block;
    box-shadow: inset -2px -2px 0px 0px #555, inset 2px 2px 0px 0px #fff;
    margin: 1.5rem 0;
    font-family: 'Mojangles', monospace;
    transform: scale(0.88);
    transform-origin: top right;
}

.mc-ui-title {
    color: #3f3f3f;
    font-family: 'Inter', sans-serif;
    /* Minecraft font fallback */
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left;
}

.mc-chest-grid {
    display: grid;
    grid-template-columns: repeat(9, 40px);
    gap: 2px;
    background: #8b8b8b;
    padding: 2px;
}

.mc-crafting-table {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #c6c6c6;
    padding: 15px;
    border: 2px solid #000;
    border-radius: 4px;
    box-shadow: inset -2px -2px 0px 0px #555, inset 2px 2px 0px 0px #fff;
    width: fit-content;
    margin: 1.5rem 0;
}

.mc-smithing-plus {
    font-size: 28px;
    font-family: 'Mojangles', monospace, sans-serif;
    font-weight: 250;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: bold;
    color: #555;
    text-shadow: 2px 2px 0px #fff;
    user-select: none;
}

.mc-craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 2px;
    background: #8b8b8b;
    padding: 2px;
}

.mc-craft-arrow {
    width: 35px;
    height: 28px;
    background: #8b8b8b;
    position: relative;
    clip-path: polygon(0 20%, 60% 20%, 60% 0, 100% 50%, 60% 100%, 60% 80%, 0 80%);
}

.mc-craft-output {
    width: 58px;
    height: 58px;
    background: #8b8b8b;
    box-shadow: inset 2px 2px 0px 0px #373737, inset -2px -2px 0px 0px #fff;
    position: relative;
    cursor: crosshair;
}

.mc-craft-output:hover {
    background: #c6c6c6;
}

.mc-craft-output img {
    width: 52px;
    height: 52px;
    position: absolute;
    top: 3px;
    left: 3px;
    image-rendering: pixelated;
    z-index: 1;
}

.mc-craft-output .mc-item-count {
    bottom: 2px;
    right: 4px;
    font-size: 1.1rem;
}


.mc-slot {
    width: 40px;
    height: 40px;
    background: #8b8b8b;
    box-shadow: inset 2px 2px 0px 0px #373737, inset -2px -2px 0px 0px #fff;
    position: relative;
    cursor: crosshair;
}

.mc-slot:hover {
    background: #c6c6c6;
    /* Lighter on hover */
}

.mc-slot img {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 2px;
    left: 2px;
    image-rendering: pixelated;
    z-index: 1;
}

.mc-item-count {
    position: absolute;
    bottom: -2px;
    right: 2px;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    text-shadow: 2px 2px 0 #3f3f3f;
    z-index: 2;
}

/* Tooltip System for MC Slots */
.mc-slot .mc-tooltip,
.mc-craft-output .mc-tooltip {
    visibility: hidden;
    position: absolute;
    background: #110011;
    border: 2px solid #250055;
    border-radius: 4px;
    padding: 4px 6px;
    color: #aaaaaa;
    font-size: 0.9rem;
    white-space: pre-wrap;
    z-index: 9999;
    width: max-content;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

.mc-slot:hover .mc-tooltip,
.mc-craft-output:hover .mc-tooltip {
    visibility: visible;
    opacity: 1;
}

.mc-tooltip-title {
    color: #55FF55;
    /* Minecraft Green */
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.mc-tooltip-desc {
    color: #aaaaaa;
    display: block;
}

.mc-tooltip-rare {
    color: #5555FF;
}

/* Blue */
.mc-tooltip-epic {
    color: #AA00AA;
}

/* Purple */
.mc-tooltip-legendary {
    color: #FFAA00;
}

/* Gold */

/* Media Queries */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    /* Make footer links styled like standard links */
    .footer-nav a {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

    .footer-nav a:hover {
        color: var(--text-light);
    }
}

/* Homepage Custom Grid Styles */
.home-container {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 1.5rem;
    width: 100%;
}

.home-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wiki-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.wiki-box.intro-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-weight: bold;
    color: var(--mc-gold);
}

.intro-icon span {
    font-size: 3rem;
}

.intro-text p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.intro-text strong {
    color: var(--text-main);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    flex: 1;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.stat-info strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.stat-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.box-header {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--mc-gold);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.mc-recipe-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Home Logo Animation */
.home-logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: -1rem;
    margin-bottom: 1.25rem;
    transform: translateY(-10px);
}

.home-logo {
    max-width: 380px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    position: relative;
    transform: translateY(-32px);
}

.splash-text {
    position: absolute;
    bottom: -5px;
    right: -30px;
    color: #ffff55;
    font-family: 'Mojangles', monospace;
    font-size: 3.5rem;
    font-weight: normal;
    text-shadow: 3px 3px 0px #3f3f15;
    transform: rotate(-26deg);
    animation: splash-pulse 0.22s alternate infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes splash-pulse {
    from {
        transform: rotate(-26deg) scale(1);
    }

    to {
        transform: rotate(-26deg) scale(1.1);
    }
}

.content-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

/* Make home page buttons fill their grid space perfectly for hover effects */
.home-card {
    border: none !important;
    background: transparent !important;
    width: 118px !important;
    height: 160px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transition: background 0.2s ease !important;
}

/* Make text inside home cards white and clickable-looking */
.home-card .card-title {
    color: white !important;
    font-weight: normal !important;
}

.home-card:hover .card-title {
    color: white !important;
    text-decoration: none !important;
}

.home-card:hover {
    border: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Prevent icon from scaling on hover for home cards */
.home-card:hover .card-icon {
    transform: none !important;
}

/* Bottom links styling */
.bottom-links-grid a {
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.bottom-links-grid a:hover {
    text-decoration: none !important;
}

.content-card.horizontal {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    aspect-ratio: auto;
}

.content-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #888888;
}

/* ------------------------------------- */
/* Mobile Responsiveness for Home Page   */
/* ------------------------------------- */
@media (max-width: 768px) {
    .bottom-links-grid {
        grid-template-columns: 1fr 1fr !important;
        column-gap: 1rem !important;
    }

    .home-logo-container img.home-logo {
        max-width: 80vw !important;
        height: auto !important;
    }

    .crafthera-link img {
        width: 160px !important;
    }
}

@media (max-width: 600px) {
    .content-grid {
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Hide the 1px vertical separators on mobile */
    .content-grid>div[style*="width: 1px"] {
        display: none !important;
    }

    /* Change home cards to a vertical list style on mobile */
    .content-grid .home-card {
        width: 100% !important;
        height: auto !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .content-grid .home-card:last-child {
        border-bottom: none !important;
    }

    .content-grid .home-card .card-icon {
        margin-bottom: 0 !important;
    }

    .bottom-links-grid {
        grid-template-columns: 1fr !important;
    }
}

.card-icon {
    font-size: 2rem;
    transition: var(--transition);
}

.content-card:hover .card-icon {
    transform: scale(1.15);
}

.transparent-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.transparent-card:hover {
    border: none !important;
    background: transparent !important;
    transform: translateY(-5px);
}

.transparent-card .card-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.content-card.horizontal .card-title {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 400;
}

.content-card:hover .card-title {
    color: white;
}

.other-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
}

.other-links a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.other-links a::before {
    content: "•";
    color: var(--text-muted);
}

.time-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .home-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }

    .sidebar nav {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-layout {
        padding: 1rem;
    }

    .content-area {
        padding: 1rem;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .wiki-infobox {
        float: none;
        width: 100%;
        margin: 1.5rem 0;
    }

    /* User explicitly requested preserving the 3-column content grid layout */
    .content-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem;
    }

    .content-card {
        padding: 0.5rem;
    }

    .card-icon {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 0.75rem;
    }

    .top-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .search-bar {
        width: 100%;
    }
}

.time-display strong {
    font-size: 1.5rem;
    color: white;
}

.time-display span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-list li a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mc-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.news-list li p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

/* Compact Nav Card */
.compact-nav-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 0.75rem 2px 0.75rem;

    box-sizing: border-box;
    height: 40px;
    /* width removed */
    max-width: 100%;

    background-color: transparent;
    border: 4px solid transparent;
    border-image-source: url('../images/mc-btn-default.png');
    border-image-slice: 2 fill;
    border-image-width: 4px;
    /* Exact 2x scale of the 2px border */
    border-image-repeat: stretch;
    image-rendering: pixelated;

    box-shadow: none;
    text-decoration: none !important;
    color: #ffffff;
    font-family: 'Mojangles', monospace, sans-serif;
    font-weight: 250;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.05rem;
    text-shadow: 2px 2px 0px #3f3f3f;
    outline: none;
    transition: none;
    user-select: none;
}

.compact-nav-card:hover,
.compact-nav-card:focus {
    background-color: transparent;
    border-color: transparent;
    border-image-source: url('../images/mc-btn-hover.png');
    box-shadow: none;
    color: #ffffff;
    text-shadow: 2px 2px 0px #3f3f3f;
    outline: none;
}

.compact-nav-card:active {
    background-color: transparent;
    border-color: transparent;
    border-image-source: url('../images/mc-btn-default.png');
    box-shadow: none;
    color: #ffffff;
    text-shadow: 2px 2px 0px #3f3f3f;
}

.compact-nav-card img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0px #3f3f3f);
}


.bottom-link-item {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    margin: -3px -6px -3px -10px;
    /* compensate for padding */
}

.bottom-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bottom-link-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 300;
}

.bottom-link-meta {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.crafthera-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.crafthera-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9) !important;
}

.crafthera-link img {
    height: 36px;
    filter: brightness(0.6) grayscale(100%);
    transition: filter 0.2s ease;
}

.crafthera-link:hover img {
    filter: brightness(1) grayscale(0%);
}

/* Hedeflenen (Target) elemanları soldan sağa sarı renkle vurgula */
@keyframes highlight-wipe {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

:target {
    scroll-margin-top: 40vh;
}

span:target,
:target.inline-highlight span.highlight-text {
    /* 1. katman: Metin rengi (Sol siyah, sağ beyaz/gri) */
    /* 2. katman: Arka plan (Sol sarı, sağ saydam) */
    background-image:
        linear-gradient(to right, #000000 50%, rgba(255, 255, 255, 0.8) 50%),
        linear-gradient(to right, rgb(255, 255, 255) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text, padding-box;
    background-clip: text, padding-box;
    color: transparent !important;

    /* Varsayılan olarak linear, sonraki satırlarda bekleme yapmasını engeller */
    animation: highlight-wipe 0.5s linear forwards;
}

/* Hedeflenen metnin ve içindeki tüm alt elementlerin (Mojangles gibi) fontunu ezer */
span:target,
span:target *,
:target.inline-highlight span.highlight-text,
:target.inline-highlight span.highlight-text * {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    color: transparent !important;
    /* Alt elementlerin renklerini sıfırlar, böylece siyah/beyaz gradient işler */
}

/* 1. Satır: Yavaş başlar, sonuna doğru hızlanır (0.6s sürer) */
:target.inline-highlight>*:nth-child(1) .highlight-text {
    animation-duration: 0.6s;
    animation-delay: 0s;
    animation-timing-function: ease-in;
    /* Sadece ilk satır yavaş başlar */
}

/* 2. Satır: 1. satırın bittiği yüksek hızdan kopmadan sabit hızla girer (0.4s sürer) */
:target.inline-highlight>*:nth-child(2) .highlight-text {
    animation-duration: 0.4s;
    animation-delay: 0.6s;
    animation-timing-function: linear;
    /* Duraksama hissini yok eder */
}

/* 3. Satır: Hız vites yükseltir (0.25s sürer) */
:target.inline-highlight>*:nth-child(3) .highlight-text {
    animation-duration: 0.25s;
    animation-delay: 1.0s;
    /* 0.6 + 0.4 */
    animation-timing-function: linear;
}

/* 4. Satır: Çok hızlı (0.15s sürer) */
:target.inline-highlight>*:nth-child(4) .highlight-text {
    animation-duration: 0.15s;
    animation-delay: 1.25s;
    /* 1.0 + 0.25 */
    animation-timing-function: linear;
}

/* 5. Satır: İnanılmaz hızlı (0.1s sürer) */
:target.inline-highlight>*:nth-child(5) .highlight-text {
    animation-duration: 0.1s;
    animation-delay: 1.4s;
    /* 1.25 + 0.15 */
    animation-timing-function: linear;
}

/* 6. Satır: Işık hızı (0.05s sürer) */
:target.inline-highlight>*:nth-child(6) .highlight-text {
    animation-duration: 0.05s;
    animation-delay: 1.5s;
    /* 1.4 + 0.1 */
    animation-timing-function: linear;
}

/* Özel Durum: div içindeki ol listeleri için alt eleman sıralaması */
:target.inline-highlight>ol>li:nth-child(1) .highlight-text {
    animation-duration: 0.25s;
    animation-delay: 1.0s;
    animation-timing-function: linear;
}

:target.inline-highlight>ol>li:nth-child(2) .highlight-text {
    animation-duration: 0.15s;
    animation-delay: 1.25s;
    animation-timing-function: linear;
}

/* Tek satırlı hedefler için */
span:target {
    animation: highlight-wipe 0.6s ease-in 0s forwards;
}

/* ==========================================================================
   Home Page Two-Column Layout (Updates Box + Main Panel)
   ========================================================================== */
.home-layout-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: auto auto;
    padding: 1.5rem 1rem 0;
    gap: 1.5rem;
}

.home-columns-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
}

.home-main-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 594px;
    max-width: 95vw;
    gap: 1.5rem;
}

/* 10 Fast Buttons Unified Frame Box (Same outer frame as left box, inner hover frames) */
.home-cards-box-container {
    position: relative;
    width: 100%;
}

.home-cards-backdrop {
    position: absolute;
    inset: -8px;
    background: rgba(17, 16, 16, 0.7);
    border-radius: 8px;
    z-index: 0;
    pointer-events: none;
}

.home-cards-box {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #1C1A1A;
    border-radius: 0px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-cards-box::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    border: 16px solid transparent;
    border-image-source: url('../images/default-overlay.png');
    border-image-slice: 8;
    border-image-width: 16px;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
}

.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0px;
    padding: 0px;
    position: relative;
    z-index: 3;
}

.home-grid-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0.5rem 1rem;
    min-height: 147px;
    background: transparent;
    border-radius: 0px;
    text-decoration: none !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-grid-card::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    border: 16px solid transparent;
    border-image-source: url('../images/default-overlay.png');
    border-image-slice: 8;
    border-image-width: 16px;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    transition: none !important;
}

.home-grid-card:hover::after {
    opacity: 1 !important;
}

.home-grid-card:hover {
    background: transparent !important;
    text-decoration: none !important;
    z-index: 4;
}

.home-grid-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 2px;
}

.home-grid-card .card-icon img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain;
    image-rendering: pixelated;
}

.home-grid-card .card-icon .material-symbols-outlined {
    font-size: 52px !important;
}

.home-grid-card .card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.home-updates-wrapper {
    position: relative;
    width: 360px;
    display: flex;
    flex-direction: column;
}

.home-updates-box-container,
.home-main-box-container {
    position: relative;
    width: 100%;
}

.home-updates-backdrop,
.home-main-backdrop {
    position: absolute;
    inset: -8px;
    background: rgba(17, 16, 16, 0.7);
    border-radius: 8px;
    z-index: 0;
    pointer-events: none;
}

.home-updates-box {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #1C1A1A;
    border-radius: 0px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
}

.home-updates-box::after,
.home-main-box-container .wiki-box::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    border: 16px solid transparent;
    border-image-source: url('../images/default-overlay.png');
    border-image-slice: 8;
    border-image-width: 16px;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    pointer-events: none;
    opacity: 0.35;
    z-index: 2;
}

.home-updates-content {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.home-updates-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 0.25rem 0.25rem;
    background: transparent;
    border-top: none;
}

.home-updates-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.home-updates-link .material-symbols-outlined {
    font-size: 15px;
    line-height: 1;
}

.home-updates-link:hover {
    color: #ffffff;
    opacity: 0.85;
    text-decoration: none;
}

.home-update-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    text-decoration: none !important;
    color: inherit !important;
    transition: none !important;
}

.home-update-item:hover,
.home-update-item:focus {
    text-decoration: none !important;
    color: inherit !important;
    background: transparent !important;
    transition: none !important;
}

.home-update-item * {
    text-decoration: none !important;
}

.home-update-item::after {
    content: '';
    position: absolute;
    top: -16px;
    bottom: -16px;
    left: -16px;
    right: -16px;
    border: 16px solid transparent;
    border-image-source: url('../images/default-overlay.png');
    border-image-slice: 8;
    border-image-width: 16px;
    border-image-repeat: stretch;
    image-rendering: pixelated;
    pointer-events: none;
    opacity: 0;
    transition: none !important;
    z-index: 3;
}

.home-update-item:hover::after {
    opacity: 1 !important;
}

.home-update-item:hover {
    background: transparent !important;
}

.home-update-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    font-size: 0.75rem;
}

.home-update-tag {
    background: rgba(98, 211, 255, 0.15);
    color: #62d3ff;
    padding: 0.05rem 0.45rem;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.68rem;
    line-height: 1.2;
    display: inline-block;
    letter-spacing: 0.5px;
}

.home-update-tag.tag-bakim {
    background: #d32f2f;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.68rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    top: 0px;
}

.update-meta-dot {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1;
}

.wiki-update-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1.25rem 0.9rem 1.25rem;
    text-decoration: none !important;
    color: inherit !important;
    transition: none !important;
    transform: none !important;
    max-width: 820px;
    cursor: pointer;
}

.wiki-update-btn:hover,
.wiki-update-btn:active,
.wiki-update-btn:focus {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: #ffffff !important;
    transform: none !important;
    transition: none !important;
}

.update-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.update-desc {
    font-family: var(--font-paragraph);
    font-size: 0.88rem;
    color: var(--text-main) !important;
    line-height: 1.55;
    margin: 0.25rem 0 0.5rem 0;
}

.update-list {
    font-family: var(--font-paragraph);
    font-size: 0.86rem;
    color: var(--text-main) !important;
    line-height: 1.55;
    margin: 0;
    padding: 0;
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.update-list>div,
.update-list li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    color: var(--text-main) !important;
}

.update-bullet-list {
    font-family: var(--font-paragraph);
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.update-bullet-list li {
    color: var(--text-main);
}

.update-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: -0.6rem;
    margin-bottom: 1.25rem;
}

.update-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    position: relative;
    top: -4px;
}

.update-date {
    font-family: var(--font-paragraph);
    font-size: 0.76rem;
    color: var(--text-muted);
    opacity: 0.85;
    line-height: 1;
    position: relative;
    top: -1px;
}

.home-update-date {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1;
    position: relative;
    top: -1px;
    opacity: 0.85;
}

.home-update-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

.home-update-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.update-more-link {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-family: var(--font-paragraph);
    font-weight: 400;
    text-decoration: none !important;
    opacity: 0.8;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.wiki-update-btn:hover .update-more-link {
    color: #ffffff;
    opacity: 1;
}

@media (max-width: 1250px) {
    body.page-home {
        overflow-y: auto;
    }

    .home-columns-container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2rem;
    }

    .home-layout-wrapper {
        margin: 2rem auto;
    }

    .home-updates-wrapper {
        width: 594px;
        max-width: 95vw;
    }

    body.page-home .footer {
        position: static;
        margin-top: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* Home Page Specific Footer & Scroll Prevention */
body.page-home {
    overflow: hidden;
}

body.page-home .main-layout {
    padding-bottom: 0;
    min-height: calc(100vh - 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-home .footer {
    display: none;
}