/* Yakisova theme - dark, Origin Realms-style */
:root {
    --yaki-bg: #07080c;
    --yaki-surface: #12141b;
    --yaki-surface-2: #1a1d27;
    --yaki-border: #262a36;
    --yaki-text: #e8eaf0;
    --yaki-muted: #9aa0b2;
    --yaki-blue: #2f6bff;
    --yaki-yellow: #f5b400;
    --yaki-purple: #7c3aed;
    --yaki-discord: #5865f2;
}

html, body, body.pushable, body.pushable > .pusher, #wrapper {
    background: var(--yaki-bg) !important;
    color: var(--yaki-text);
}
a { color: #7aa2ff; }
a:hover { color: #a9c3ff; }

/* Navbar */
#navbar.ui.menu {
    background: var(--yaki-bg) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 14px 0;
    margin: 0;
}
#navbar .item.yaki-pill {
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .9rem;
    border-radius: 8px !important;
    padding: .7em 1.1em !important;
    margin-right: 4px !important;
}
#navbar .item.yaki-pill:hover { background: rgba(124, 58, 237, .25) !important; }
#navbar .item.yaki-pill.active { background: var(--yaki-purple) !important; }
#navbar .ui.dropdown .menu {
    background: var(--yaki-surface) !important;
    border: 1px solid var(--yaki-border) !important;
}
#navbar .ui.dropdown .menu > .item { color: var(--yaki-text) !important; }
#navbar .ui.dropdown .menu > .item:hover { background: var(--yaki-surface-2) !important; }
#navbar .toc.item { color: #fff !important; }
#navbar .right.menu { align-items: center; gap: 8px; }

.yaki-discord {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 38px; border-radius: 8px;
    background: var(--yaki-discord); color: #fff !important; font-size: 1.15rem;
}
.yaki-discord i.icon { margin: 0; }
.yaki-discord:hover { filter: brightness(1.1); }
.yaki-ip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 16px; border-radius: 8px;
    background: var(--yaki-purple); color: #fff !important;
    font-weight: 800; letter-spacing: .03em; font-size: .9rem;
}
.yaki-ip:hover { filter: brightness(1.12); color: #fff !important; }
.yaki-ip i.icon { margin: 0; }

/* Hero (set the image in StaffCP > Layout > Images > Banner) */
.yaki-hero {
    position: relative;
    height: 230px;
    margin: 12px 0 40px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #1b3a8f 0%, #0d6b4f 100%);
    background-size: cover;
    background-position: center;
}
.yaki-hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, var(--yaki-bg) 100%),
                linear-gradient(to bottom, transparent 60%, var(--yaki-bg) 100%);
}
.yaki-hero-inner {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 36px;
}
.yaki-hero h1 {
    color: #fff !important; font-size: 3rem; font-weight: 900; margin: 0 0 10px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .6);
}
.yaki-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 0, 0, .55); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 600;
}
.yaki-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; }
.yaki-status .dot.online { background: #30c46b; box-shadow: 0 0 8px #30c46b; }

/* News */
.yaki-news-head { text-align: center; margin-bottom: 28px; }
.yaki-news-head h2 { font-weight: 800; font-size: 1.6rem; margin: 0 0 6px; }
.yaki-news-head p { color: var(--yaki-muted); }
.yaki-news-card {
    display: block; background: var(--yaki-surface); border: 1px solid var(--yaki-border);
    border-radius: 14px; padding: 22px 26px; margin-bottom: 18px; color: var(--yaki-text) !important;
    transition: transform .15s, border-color .15s;
}
.yaki-news-card:hover { transform: translateY(-2px); border-color: var(--yaki-blue); }
.yaki-news-card h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
.yaki-news-meta { color: var(--yaki-muted); font-size: .85rem; margin-bottom: 10px; }
.yaki-news-meta .author { font-weight: 700; color: var(--yaki-blue); }
.yaki-news-excerpt { color: #c6cad6; line-height: 1.6; }
.yaki-readmore { display: inline-block; margin-top: 12px; color: var(--yaki-yellow); font-weight: 700; }

/* Dark surfaces for the rest of the site */
.ui.segment, .ui.card, .ui.cards > .card, .ui.message, .ui.table,
.ui.popup, .ui.modal, .ui.modal > .content, .ui.modal > .header, .ui.modal > .actions {
    background: var(--yaki-surface) !important;
    color: var(--yaki-text) !important;
    border-color: var(--yaki-border) !important;
    box-shadow: 0 0 0 1px var(--yaki-border) !important;
}
.ui.table thead th, .ui.table td {
    background: transparent !important; color: var(--yaki-text) !important; border-color: var(--yaki-border) !important;
}
.ui.header, .ui.card .header, h1, h2, h3, h4, h5 { color: #fff !important; }
.ui.card .meta, .ui.card .description, .ui.list .item .description { color: var(--yaki-muted) !important; }
.ui.list .item, .ui.list .item a { color: var(--yaki-text); }
.ui.divider { border-color: var(--yaki-border) !important; }
.ui.form input, .ui.form textarea, .ui.form select, .ui.input > input, .ui.selection.dropdown {
    background: var(--yaki-surface-2) !important; color: var(--yaki-text) !important; border-color: var(--yaki-border) !important;
}
.ui.selection.dropdown .menu, .ui.selection.dropdown .menu > .item {
    background: var(--yaki-surface-2) !important; color: var(--yaki-text) !important; border-color: var(--yaki-border) !important;
}
.ui.form .field > label { color: var(--yaki-text) !important; }
.ui.primary.button, .ui.primary.buttons .button { background: var(--yaki-blue) !important; }
.ui.default.button, .ui.basic.button {
    background: var(--yaki-surface-2) !important; color: var(--yaki-text) !important; box-shadow: none !important;
}
.ui.image.label { background: var(--yaki-surface-2) !important; color: var(--yaki-text) !important; }
.ui.pagination.menu, .ui.pagination.menu .item { background: var(--yaki-surface) !important; color: var(--yaki-text) !important; }
/* Footer - purple card */
#yaki-footer-wrap { padding: 40px 0 24px; }
.yaki-footer {
    display: flex; align-items: center; gap: 36px;
    background: #7c3aed; color: #1b0b3a;
    border-radius: 12px; padding: 26px 36px;
}
.yaki-footer-logo { flex: 0 0 auto; width: 110px; text-align: center; }
.yaki-footer-logo img { max-width: 110px; max-height: 110px; filter: drop-shadow(4px 4px 0 #000); }
.yaki-footer-logo i.icon { font-size: 5.5rem; color: #fff; margin: 0; text-shadow: 5px 5px 0 #000; }
.yaki-footer-main { flex: 1 1 auto; }
.yaki-footer-ip {
    display: inline-flex; align-items: center; gap: 14px;
    background: #fff; color: #000 !important; font-weight: 800; letter-spacing: .02em; font-size: 1.05rem;
    border: 3px solid #000; border-radius: 8px; padding: 10px 20px;
    box-shadow: 4px 4px 0 #000; margin-bottom: 14px;
    transition: transform .1s, box-shadow .1s;
}
.yaki-footer-ip:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.yaki-footer-count { background: #ede9fe; border-radius: 6px; padding: 2px 8px; font-size: .85rem; }
.yaki-footer-powered { color: #0d0520; font-weight: 600; margin: 0 0 4px; }
.yaki-footer-copy { color: #2a1454; font-size: .9rem; margin: 0; }
.yaki-footer a:not(.yaki-footer-ip):not(.yaki-social) { color: #0d0520 !important; text-decoration: underline; }
.yaki-footer-social { flex: 0 0 auto; display: flex; gap: 10px; align-self: flex-start; }
.yaki-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: #fff; color: #000 !important;
    border: 3px solid #000; border-radius: 8px; box-shadow: 3px 3px 0 #000;
    transition: transform .1s, box-shadow .1s;
}
.yaki-social:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.yaki-social i.icon { margin: 0; font-size: 1.1rem; }
@media (max-width: 768px) {
    .yaki-footer { flex-direction: column; text-align: center; gap: 18px; padding: 24px 18px; }
    .yaki-footer-social { align-self: center; }
}

@media (max-width: 768px) {
    .yaki-hero { height: 150px; border-radius: 12px; }
    .yaki-hero h1 { font-size: 2rem; }
    .yaki-ip { padding: 0 10px; font-size: .75rem; }
}

/* Hero side blocks (players left, Discord right) */
.yaki-hero-inner h1 { text-align: center; margin: 0 !important; }
.yaki-hero-side { display: flex; align-items: center; gap: 12px; color: #fff !important; }
.yaki-hero-side.left { justify-content: flex-end; text-align: right; }
.yaki-hero-side.right { justify-content: flex-start; text-align: left; }
.yaki-hero-text { display: flex; flex-direction: column; line-height: 1.3; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.yaki-hero-text strong { color: #c4b5fd; font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
.yaki-hero-text span { color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .03em; }
.yaki-hero-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--yaki-purple); color: #fff; box-shadow: 0 0 16px rgba(124, 58, 237, .6);
    transition: transform .15s;
}
.yaki-hero-icon.discord { background: var(--yaki-discord); box-shadow: 0 0 16px rgba(88, 101, 242, .6); }
.yaki-hero-icon i.icon { margin: 0; font-size: 1.1rem; }
.yaki-hero-side:hover .yaki-hero-icon { transform: scale(1.1); }
@media (max-width: 768px) {
    .yaki-hero-inner { grid-template-columns: 1fr; gap: 6px; padding: 0 16px; }
    .yaki-hero-side { display: none; }
}

/* Header: banner image behind navbar + hero, fading into the page */
.yaki-header {
    position: relative;
    max-width: 1200px;
    margin: 16px auto 32px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #1a1033;
    background-image: linear-gradient(135deg, #3b1d7a 0%, #0f2f4f 100%);
    background-size: cover;
    background-position: center top;
}
.yaki-header::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, .25) 45%, var(--yaki-bg) 100%);
}
.yaki-header > * { position: relative; z-index: 1; }
.yaki-header #navbar.ui.menu { background: transparent !important; }
.yaki-header #navbar .ui.container { justify-content: center; }
.yaki-header.home { min-height: 300px; }
.yaki-header .yaki-hero {
    height: auto; margin: 0; border-radius: 0; overflow: visible; background: none !important;
    padding: 40px 0 70px;
}
.yaki-header .yaki-hero::after { display: none; }
.yaki-header .yaki-hero-inner { position: static; transform: none; }
@media (max-width: 1232px) { .yaki-header { margin-left: 16px; margin-right: 16px; } }
@media (max-width: 768px) {
    .yaki-header { border-radius: 12px; }
    .yaki-header.home { min-height: 0; }
    .yaki-header .yaki-hero { padding: 20px 0 40px; }
}

/* Wide header like MCPrison */
.yaki-header { max-width: 1700px; margin: 20px 32px 36px; }
@media (min-width: 1764px) { .yaki-header { margin-left: auto; margin-right: auto; } }
.yaki-header #navbar > .ui.container { width: auto !important; max-width: none !important; margin: 0 40px !important; }
.yaki-header.home { min-height: 380px; }
.yaki-header .yaki-hero { width: auto !important; max-width: 1100px !important; margin: 0 auto !important; padding: 70px 24px 110px; }
.yaki-header .yaki-hero-inner { gap: 56px; }
.yaki-header .yaki-hero h1 { font-size: 3.6rem; }
@media (max-width: 1232px) { .yaki-header { margin-left: 16px; margin-right: 16px; } }
@media (max-width: 768px) {
    .yaki-header.home { min-height: 0; }
    .yaki-header #navbar > .ui.container { margin: 0 12px !important; }
    .yaki-header .yaki-hero { padding: 24px 12px 44px; }
    .yaki-header .yaki-hero h1 { font-size: 2.2rem; }
}

/* Full-bleed header: edge to edge at the top of the page */
.yaki-header, .yaki-header.home {
    max-width: none !important; width: 100% !important;
    margin: 0 0 36px 0 !important; border-radius: 0 !important;
}

/* Centered, bigger navbar */
.yaki-header #navbar { padding: 22px 0 !important; }
.yaki-header #navbar > .ui.container {
    display: flex !important; justify-content: center !important; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.yaki-header #navbar .right.menu { margin-left: 18px !important; gap: 10px; }
#navbar .item.yaki-pill { font-size: 1.05rem !important; padding: .85em 1.4em !important; border-radius: 10px !important; }
.yaki-discord { width: 50px; height: 46px; font-size: 1.35rem; border-radius: 10px; }
.yaki-ip { height: 46px; padding: 0 20px; font-size: 1.05rem; border-radius: 10px; }
#navbar .right.menu .ui.button { padding: .95em 1.1em !important; font-size: 1rem !important; }
#navbar .right.menu .ui.image.label { font-size: 1.05rem !important; padding: .55em .9em !important; }
@media (max-width: 768px) {
    .yaki-header #navbar > .ui.container { justify-content: space-between !important; }
    .yaki-header #navbar .right.menu { margin-left: 0 !important; }
}
.yaki-header #navbar { justify-content: center !important; }
.yaki-header #navbar > .ui.container { flex: 1 1 auto !important; }
.yaki-header #navbar .right.menu { flex: 0 0 auto !important; }
