/*
Theme Name: CasinoBonus MH Child
Description: CasinoBonus.rs dark casino child theme for MH Magazine.
Author: CasinoBonus.rs
Template: mh-magazine
Version: 1.0.1
Text Domain: casinobonus-mh-child
*/

/* =========================================================
   CasinoBonus MH Child - SAFE BASE
   This avoids destroying MH Magazine layout.
========================================================= */

:root {
    --cb-bg: #050b14;
    --cb-bg-2: #07111e;
    --cb-panel: rgba(6, 14, 25, 0.92);
    --cb-panel-2: rgba(9, 18, 33, 0.96);
    --cb-gold: #ffc400;
    --cb-gold-2: #ffde59;
    --cb-red: #ff3159;
    --cb-green: #8fdc1b;
    --cb-text: #f6f8ff;
    --cb-muted: #aeb7c7;
    --cb-border: rgba(255, 196, 0, 0.24);
    --cb-border-soft: rgba(255, 196, 0, 0.14);
    --cb-radius: 16px;
    --cb-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

html,
body {
    background-color: var(--cb-bg) !important;
    color: var(--cb-text);
}

body {
    font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background-image:
        linear-gradient(180deg, rgba(4, 10, 18, 0.80), rgba(4, 10, 18, 0.90)),
        url("assets/images/casino-pattern-bg.png");
    background-repeat: repeat, repeat;
    background-size: auto, 420px auto;
    background-position: top left, top left;
}

a {
    color: var(--cb-gold);
}

a:hover {
    color: var(--cb-gold-2);
}

/* =========================================================
   Main MH containers
========================================================= */

.mh-container,
.mh-wrapper,
.mh-site-container,
.site,
.site-content {
    background: transparent !important;
}

.mh-container,
.mh-wrapper {
    max-width: 1280px;
}

.mh-content,
.mh-sidebar,
#main-content,
.content-area,
.site-main {
    background: transparent !important;
    color: var(--cb-text);
}

/* Do NOT globally style article/post containers too aggressively */
.entry-content,
.entry-summary {
    background: transparent !important;
    color: var(--cb-text);
}

/* =========================================================
   Header cleanup
========================================================= */

.mh-header,
.mh-site-header,
.site-header {
    background: rgba(3, 9, 17, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

/* Hide old black text logo/title if MH displays it */
.site-title,
.site-description,
.mh-site-title,
.mh-site-description,
.mh-header-title,
.mh-header-tagline {
    display: none !important;
}

/* Logo */
.mh-site-logo,
.site-branding,
.custom-logo-link {
    text-align: left !important;
}

.mh-site-logo img,
.site-branding img,
.custom-logo {
    max-height: 56px;
    width: auto;
    display: block;
    filter: none !important;
    opacity: 1 !important;
}

/* If MH centers the logo, force it left */
.mh-header .mh-container,
.mh-site-header .mh-container,
.site-header .mh-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* =========================================================
   Navigation
========================================================= */

.mh-main-nav-wrap,
.mh-navigation,
.main-navigation,
.nav-primary {
    background: rgba(3, 9, 17, 0.98) !important;
    border: 0 !important;
}

.mh-main-nav,
.mh-main-nav ul,
.main-navigation ul,
.nav-primary ul {
    background: transparent !important;
}

.mh-main-nav li,
.main-navigation li,
.nav-primary li {
    background: transparent !important;
}

.mh-main-nav li a,
.main-navigation li a,
.nav-primary li a {
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    transition: color 0.18s ease, background 0.18s ease;
}

.mh-main-nav li a:hover,
.mh-main-nav .current-menu-item > a,
.mh-main-nav .current_page_item > a,
.main-navigation li a:hover,
.main-navigation .current-menu-item > a {
    color: var(--cb-gold) !important;
}

/* Active gold underline */
.mh-main-nav .current-menu-item > a,
.mh-main-nav .current_page_item > a,
.main-navigation .current-menu-item > a {
    box-shadow: inset 0 -3px 0 var(--cb-gold);
}

/* Dropdowns */
.mh-main-nav ul ul,
.main-navigation ul ul {
    background: rgba(5, 12, 23, 0.98) !important;
    border: 1px solid var(--cb-border-soft);
    border-radius: 12px;
    box-shadow: var(--cb-shadow);
    overflow: hidden;
}

.mh-main-nav ul ul li a,
.main-navigation ul ul li a {
    color: #ffffff !important;
    background: transparent !important;
}

.mh-main-nav ul ul li a:hover,
.main-navigation ul ul li a:hover {
    background: rgba(255, 196, 0, 0.08) !important;
    color: var(--cb-gold) !important;
}

/* =========================================================
   News ticker/search strip
========================================================= */

.mh-ticker,
.mh-news-ticker,
.mh-header-bar,
.mh-extra-nav {
    background: rgba(5, 12, 23, 0.96) !important;
    color: var(--cb-text) !important;
    border: 1px solid var(--cb-border-soft);
}

.mh-ticker-title,
.mh-news-ticker-title,
.ticker-title {
    background: var(--cb-red) !important;
    color: #ffffff !important;
    font-weight: 900;
    text-transform: uppercase;
}

.mh-ticker a,
.mh-news-ticker a {
    color: var(--cb-text) !important;
}

.mh-ticker a:hover,
.mh-news-ticker a:hover {
    color: var(--cb-gold) !important;
}

/* =========================================================
   Page/post titles
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title,
.archive-title,
.mh-widget-title,
.widget-title {
    color: #ffffff !important;
}

.entry-title,
.page-title,
.archive-title {
    font-weight: 900;
    letter-spacing: -0.035em;
}

/* Page title panel */
.page .entry-title,
.single .entry-title,
.archive-title,
.page-title {
    background:
        radial-gradient(420px 140px at 90% 10%, rgba(255, 196, 0, 0.12), transparent 68%),
        linear-gradient(180deg, rgba(8, 18, 32, 0.96), rgba(5, 12, 23, 0.98));
    border: 1px solid var(--cb-border-soft);
    border-radius: 16px;
    padding: 22px 28px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    text-align: center;
}

/* =========================================================
   Text/content
========================================================= */

.entry-content p,
.entry-content li,
.entry-summary,
.mh-excerpt {
    color: rgba(246, 248, 255, 0.88);
    line-height: 1.7;
}

.entry-meta,
.entry-meta a,
.mh-meta,
.mh-meta a {
    color: var(--cb-muted) !important;
}

.entry-meta a:hover,
.mh-meta a:hover {
    color: var(--cb-gold) !important;
}

/* =========================================================
   Sidebar/widgets
========================================================= */

.mh-sidebar,
.sidebar,
.widget-area {
    color: var(--cb-text);
}

.mh-widget,
.widget {
    background:
        linear-gradient(180deg, rgba(8, 18, 32, 0.94), rgba(5, 12, 23, 0.96)) !important;
    border: 1px solid var(--cb-border-soft);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
    color: var(--cb-text);
    margin-bottom: 26px;
}

.mh-widget-title,
.widget-title,
.widget h2,
.widget h3,
.widget h4 {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 18px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 196, 0, 0.18);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.widget a,
.mh-widget a {
    color: var(--cb-muted);
    text-decoration: none;
}

.widget a:hover,
.mh-widget a:hover {
    color: var(--cb-gold);
}

.widget ul,
.mh-widget ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.widget li,
.mh-widget li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 9px 0;
}

.widget li:last-child,
.mh-widget li:last-child {
    border-bottom: 0;
}

/* =========================================================
   Forms/search/buttons
========================================================= */

input,
textarea,
select {
    background: rgba(5, 12, 23, 0.96) !important;
    border: 1px solid rgba(255, 196, 0, 0.28) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
}

input::placeholder,
textarea::placeholder {
    color: #8994a6 !important;
}

button,
input[type="submit"],
.wp-block-button__link,
.more-link,
.read-more,
.mh-read-more {
    background: rgba(255, 196, 0, 0.08) !important;
    border: 1px solid rgba(255, 196, 0, 0.5) !important;
    color: var(--cb-gold) !important;
    border-radius: 9px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.more-link:hover,
.read-more:hover,
.mh-read-more:hover {
    background: rgba(255, 196, 0, 0.16) !important;
    border-color: var(--cb-gold) !important;
    color: #ffffff !important;
}

/* Search widget */
.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    min-height: 38px;
    flex: 1;
}

.search-submit {
    min-height: 38px;
    padding: 0 14px;
}

/* =========================================================
   Archive/blog cards - safe styling
========================================================= */

.mh-posts-list-item,
.mh-loop-item,
.archive .post,
.blog .post,
.search .post {
    background:
        linear-gradient(180deg, rgba(8, 18, 32, 0.92), rgba(5, 12, 23, 0.96)) !important;
    border: 1px solid var(--cb-border-soft);
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mh-posts-list-item:hover,
.mh-loop-item:hover,
.archive .post:hover,
.blog .post:hover,
.search .post:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 196, 0, 0.42);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.mh-posts-list-item img,
.mh-loop-item img,
.archive .post img,
.blog .post img {
    border-radius: 12px;
}

.mh-posts-list-title a,
.entry-title a {
    color: #ffffff !important;
}

.mh-posts-list-title a:hover,
.entry-title a:hover {
    color: var(--cb-gold) !important;
}

/* =========================================================
   Plugin compatibility
========================================================= */

.entry-content .bmg-game-list {
    margin-top: 28px;
    margin-bottom: 36px;
}

/* Do not let MH wrappers ruin the plugin design */
.entry-content .bmg-game-list,
.entry-content .bmg-game-list * {
    box-sizing: border-box;
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 900px) {
    body {
        background-size: auto, 320px auto;
    }

    .mh-wrapper,
    .mh-container {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
    }

    .mh-header .mh-container,
    .mh-site-header .mh-container,
    .site-header .mh-container {
        display: block;
        text-align: center;
    }

    .mh-site-logo,
    .site-branding,
    .custom-logo-link {
        text-align: center !important;
        display: block;
    }

    .mh-site-logo img,
    .site-branding img,
    .custom-logo {
        margin: 0 auto;
        max-height: 48px;
    }

    .mh-main-nav li a,
    .main-navigation li a {
        font-size: 13px;
    }

    .page .entry-title,
    .single .entry-title,
    .archive-title,
    .page-title {
        padding: 18px 16px;
        font-size: clamp(28px, 8vw, 42px);
    }

    .mh-widget,
    .widget {
        padding: 16px;
        border-radius: 14px;
    }
}

@media (max-width: 520px) {
    .mh-wrapper,
    .mh-container {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }

    .entry-content p,
    .entry-content li {
        font-size: 15px;
    }

    .search-form {
        flex-direction: column;
    }

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