/* ==========================================================================
   Royal Rush Design — Complete Visual Styling
   Design slug: design-royal-rush
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font Declarations
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'RoyalrushHeading';
    src: url('../fonts/archivoblack-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RoyalrushBody';
    src: url('../fonts/merriweathersans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. GP Remnant Safety Rule (ONLY allowed !important usage)
   -------------------------------------------------------------------------- */
.site-header,
.main-navigation,
.site-footer,
.site-info,
.top-bar {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. Body / Page Background
   -------------------------------------------------------------------------- */
.design-royal-rush {
    background-color: #ffffff;
    
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cdefs%3E%3Cstyle%3Epath%7Bfill%3Anone%3Bstroke%3Argba%2855%2C182%2C251%2C0.03%29%3Bstroke-width%3A1%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M40%2010%20Q60%2030%2080%2020%20T120%2030%20T160%2020%22%2F%3E%3Cpath%20d%3D%22M20%2050%20Q50%2070%2080%2055%20T140%2065%20T180%2050%22%2F%3E%3Cpath%20d%3D%22M10%2090%20Q40%20110%2070%2095%20T130%20105%20T190%2085%22%2F%3E%3Cpath%20d%3D%22M30%20130%20Q60%20150%2090%20135%20T150%20145%20T180%20130%22%2F%3E%3Cpath%20d%3D%22M15%20170%20Q45%20190%2075%20175%20T135%20185%20T175%20170%22%2F%3E%3C%2Fsvg%3E"); background-size: 200px 200px;
}

/* --------------------------------------------------------------------------
   4. Skip Link
   -------------------------------------------------------------------------- */
.royhdr-skip {
    position: absolute;
    top: -100%;
    left: 0;
    background: #37b6fb;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 14px;
    text-decoration: none;
}

.royhdr-skip:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   5. Content Area
   -------------------------------------------------------------------------- */
.royhdr-site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 20px 60px;
    min-height: 50vh;
}

/* --------------------------------------------------------------------------
   6. Content Typography (scoped with body class)
   -------------------------------------------------------------------------- */
.design-royal-rush h1,
.design-royal-rush h2,
.design-royal-rush h3,
.design-royal-rush h4,
.design-royal-rush h5 {
    font-family: 'RoyalrushHeading', Arial, sans-serif;
    color: #0c1327;
    line-height: 1.25;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.design-royal-rush h1 { font-size: 2.1rem; }
.design-royal-rush h2 { font-size: 1.7rem; }
.design-royal-rush h3 { font-size: 1.3rem; }
.design-royal-rush h4 { font-size: 1.2rem; }
.design-royal-rush h5 { font-size: 0.95rem; }

.design-royal-rush body,
.design-royal-rush p,
.design-royal-rush li,
.design-royal-rush td,
.design-royal-rush th {
    font-family: 'RoyalrushBody', Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
}

.design-royal-rush p {
    margin-bottom: 1.2em;
    font-size: 17px;
}

/* Links */
.design-royal-rush a {
    color: #37b6fb;
    text-decoration: none;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.design-royal-rush a:hover {
    color: #0aa9ff;
}

/* Lists */
.design-royal-rush ul,
.design-royal-rush ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.design-royal-rush li {
    margin-bottom: 0.4em;
}

/* Images */
.design-royal-rush .entry-content img,
.design-royal-rush .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Dividers */
.design-royal-rush hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

/* --------------------------------------------------------------------------
   7. CTA Button (in header)
   -------------------------------------------------------------------------- */
.royhdr-cta {
    display: none;
    padding: 12px 32px;
    background: #37b6fb;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: 'RoyalrushBody', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-left: 12px;
}

.royhdr-cta:hover {
    background: #0aa9ff;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ── Search Bar ────────────────────────────────────────── */
.royhdr-search {
    margin-left: 12px;
    position: relative;
}
.royhdr-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.royhdr-search-form:focus-within {
    border-color: #37b6fb;
}
.royhdr-search-input {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e0e0e0;
    font-family: 'RoyalrushBody', Arial, sans-serif;
    font-size: 0.85rem;
    width: 160px;
    outline: none;
}
.royhdr-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.royhdr-search-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.royhdr-search-btn:hover {
    color: #37b6fb;
}


/* --------------------------------------------------------------------------
   Header — Split (Top Bar + Nav Bar)
   -------------------------------------------------------------------------- */
.royhdr-topbar {
    background: #37b6fb;
    padding: 0;
}

.royhdr-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 20px;
    text-align: right;
}

.royhdr-topbar-text {
    font-family: 'RoyalrushBody', Arial, sans-serif;
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.royhdr-wrap {
    background: #0c1327;
    padding: 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.royhdr-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
}

.royhdr-brand {
    flex-shrink: 0;
}

.royhdr-brand a {
    text-decoration: none;
}

.royhdr-brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

.royhdr-sitename {
    font-family: 'RoyalrushHeading', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.royhdr-sitename:hover {
    color: #37b6fb;
}

/* Navigation */
.royhdr-nav {
    display: flex;
    align-items: center;
}

.royhdr-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.royhdr-menu li {
    position: relative;
}

.royhdr-menu > li > a {
    display: block;
    padding: 0 16px;
    line-height: 60px;
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'RoyalrushBody', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.royhdr-menu > li > a:hover,
.royhdr-menu > li.current-menu-item > a {
    color: #ffffff;
    background: rgba(55, 182, 251, 0.18);
    border-radius: 10px;
}

/* Dropdown */
.royhdr-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #070b17;
    border-top: 2px solid #37b6fb;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    display: none;
    z-index: 200;
}

.royhdr-menu li:hover > .sub-menu {
    display: block;
}

.royhdr-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #c8c8c8;
    text-decoration: none;
    font-family: 'RoyalrushBody', Arial, sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
}

.royhdr-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(55, 182, 251, 0.18);
}

/* Mobile Menu Toggle (hidden on desktop) */
.royhdr-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 150;
}

.royhdr-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s, opacity 0.3s;
}

.royhdr-toggle[aria-expanded="true"] .royhdr-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.royhdr-toggle[aria-expanded="true"] .royhdr-toggle-bar:nth-child(2) {
    opacity: 0;
}

.royhdr-toggle[aria-expanded="true"] .royhdr-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* --------------------------------------------------------------------------
   Tables — Card Style (rounded, elevated)
   -------------------------------------------------------------------------- */
.design-royal-rush .entry-content table,
.design-royal-rush .page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.design-royal-rush .entry-content th,
.design-royal-rush .page-content th {
    background: #0c1327;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-family: 'RoyalrushHeading', Arial, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
}

.design-royal-rush .entry-content td,
.design-royal-rush .page-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}

.design-royal-rush .entry-content tr:last-child td,
.design-royal-rush .page-content tr:last-child td {
    border-bottom: none;
}

.design-royal-rush .entry-content tr:nth-child(even) td,
.design-royal-rush .page-content tr:nth-child(even) td {
    background: #f8f8f8;
}

.design-royal-rush .entry-content tr:hover td,
.design-royal-rush .page-content tr:hover td {
    background: #eff9ff;
}


/* --------------------------------------------------------------------------
   Footer — Minimal Single Line
   -------------------------------------------------------------------------- */
.royft-wrap {
    background: #0c1327;
    color: #b5b5b5;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 4px solid #37b6fb;
}

.royft-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.royft-line {
    margin: 0 0 8px;
    font-family: 'RoyalrushBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #999999;
}

.royft-nav {
    margin-top: 8px;
}

.royft-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.royft-menu a {
    color: #b5b5b5;
    text-decoration: none;
    font-family: 'RoyalrushBody', Arial, sans-serif;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.royft-menu a:hover {
    color: #37b6fb;
}


/* --------------------------------------------------------------------------
   Responsive — Tablet (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Show hamburger */
    .royhdr-toggle {
        display: flex;
    }

    /* Hide desktop nav, show when toggled */
    .royhdr-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #070b17;
        border-top: 2px solid #37b6fb;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 200;
    }

    .royhdr-nav.is-open {
        display: block;
    }

    .royhdr-menu {
        flex-direction: column;
        padding: 10px 0;
    }

    .royhdr-menu > li > a {
        line-height: 1.4;
        padding: 12px 20px;
    }

    .royhdr-search {
        margin: 0;
        padding: 10px 20px;
    }
    .royhdr-search-input {
        width: 100%;
    }

    /* Dropdown on mobile: always visible */
    .royhdr-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0, 0, 0, 0.15);
        padding-left: 15px;
        display: block;
        transform: none;
    }

    /* Footer adjustments */
    .royft-inner {
        flex-direction: column;
        text-align: center;
    }

    .royft-menu {
        justify-content: center;
    }

    /* Content */
    .royhdr-site-content {
        padding: 25px 15px 40px;
    }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .royhdr-inner {
        height: 60px;
        padding: 0 15px;
    }

    .royhdr-sitename {
        font-size: 1.15rem;
    }

    .royhdr-brand img {
        max-height: 35px;
    }

    .design-royal-rush h1 { font-size: 1.6rem; }
    .design-royal-rush h2 { font-size: 1.35rem; }
    .design-royal-rush h3 { font-size: 1.15rem; }

    .design-royal-rush p {
        font-size: 0.95rem;
    }

    .royhdr-site-content {
        padding: 20px 12px 30px;
    }
}
