/* ==========================================================================
   Cosmic Arena Design — Complete Visual Styling
   Design slug: design-cosmic-arena
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font Declarations
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'CosmicarenaHeading';
    src: url('../fonts/montserrat-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CosmicarenaBody';
    src: url('../fonts/opensans-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-cosmic-arena {
    background-color: #131217;
    
    background-image: linear-gradient(rgba(44,246,196,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(44,246,196,0.04) 1px, transparent 1px); background-size: 24px 24px;
}

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

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

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

/* --------------------------------------------------------------------------
   6. Content Typography (scoped with body class)
   -------------------------------------------------------------------------- */
.design-cosmic-arena h1,
.design-cosmic-arena h2,
.design-cosmic-arena h3,
.design-cosmic-arena h4,
.design-cosmic-arena h5 {
    font-family: 'CosmicarenaHeading', Arial, sans-serif;
    color: #ffffff;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.design-cosmic-arena h1 { font-size: 2.2rem; }
.design-cosmic-arena h2 { font-size: 1.6rem; }
.design-cosmic-arena h3 { font-size: 1.4rem; }
.design-cosmic-arena h4 { font-size: 1.2rem; }
.design-cosmic-arena h5 { font-size: 0.95rem; }

.design-cosmic-arena body,
.design-cosmic-arena p,
.design-cosmic-arena li,
.design-cosmic-arena td,
.design-cosmic-arena th {
    font-family: 'CosmicarenaBody', Arial, sans-serif;
    color: #e8e8e8;
    line-height: 1.6;
}

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

/* Links */
.design-cosmic-arena a {
    color: #2cf6c4;
    text-decoration: none;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.design-cosmic-arena a:hover {
    color: #04f6ba;
}

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

.design-cosmic-arena li {
    margin-bottom: 0.4em;
}

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

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

/* --------------------------------------------------------------------------
   7. CTA Button (in header)
   -------------------------------------------------------------------------- */
.coshdr-cta {
    display: none;
    padding: 11px 26px;
    background: #2cf6c4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'CosmicarenaBody', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-left: 12px;
}

.coshdr-cta:hover {
    background: #04f6ba;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transform: none;
}

/* ── Search Bar ────────────────────────────────────────── */
.coshdr-search {
    margin-left: 12px;
    position: relative;
}
.coshdr-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: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.coshdr-search-form:focus-within {
    border-color: #2cf6c4;
}
.coshdr-search-input {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e3e3e3;
    font-family: 'CosmicarenaBody', Arial, sans-serif;
    font-size: 0.85rem;
    width: 160px;
    outline: none;
}
.coshdr-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.coshdr-search-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #e3e3e3;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.coshdr-search-btn:hover {
    color: #2cf6c4;
}


/* --------------------------------------------------------------------------
   Header — Centered Brand
   -------------------------------------------------------------------------- */
.coshdr-wrap {
    background: #0e091f;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.coshdr-brand-row {
    text-align: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(44, 246, 196, 0.2);
}

.coshdr-brand {
    display: inline-block;
}

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

.coshdr-brand img {
    max-height: 50px;
    width: auto;
    display: block;
}

.coshdr-sitename {
    font-family: 'CosmicarenaHeading', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.coshdr-sitename:hover {
    color: #2cf6c4;
}

.coshdr-navrow {
    background: #090613;
    border-bottom: 1px solid #2cf6c4;
}

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

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

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

.coshdr-menu li {
    position: relative;
}

.coshdr-menu > li > a {
    display: block;
    padding: 0 20px;
    line-height: 52px;
    color: #e3e3e3;
    text-decoration: none;
    font-family: 'CosmicarenaBody', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coshdr-menu > li > a:hover,
.coshdr-menu > li.current-menu-item > a {
    color: #2cf6c4;
    background: rgba(44, 246, 196, 0.12);
    border-radius: 4px;
}

/* Dropdown */
.coshdr-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #090613;
    border-top: 2px solid #2cf6c4;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: none;
    z-index: 200;
}

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

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

.coshdr-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(44, 246, 196, 0.12);
}

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

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

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

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

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


/* --------------------------------------------------------------------------
   Tables — Striped Style
   -------------------------------------------------------------------------- */
.design-cosmic-arena .entry-content table,
.design-cosmic-arena .page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    border: 1px solid #404040;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.design-cosmic-arena .entry-content th,
.design-cosmic-arena .page-content th {
    background: #0e091f;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-family: 'CosmicarenaHeading', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.design-cosmic-arena .entry-content td,
.design-cosmic-arena .page-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #404040;
    text-align: left;
}

.design-cosmic-arena .entry-content tr:nth-child(even) td,
.design-cosmic-arena .page-content tr:nth-child(even) td {
    background: #1e1d20;
}

.design-cosmic-arena .entry-content tr:hover td,
.design-cosmic-arena .page-content tr:hover td {
    background: #eefefa;
}


/* --------------------------------------------------------------------------
   Footer — Stacked Two-Row
   -------------------------------------------------------------------------- */
.cosft-wrap {
    background: #0e091f;
    color: #b5b5b5;
    margin-top: 40px;
    border-top: 1px solid #2cf6c4;
}

.cosft-links-row {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

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

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

.cosft-menu a:hover {
    color: #2cf6c4;
}

.cosft-info-row {
    padding: 15px 0;
}

.cosft-info-row .cosft-row-inner {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cosft-copyright {
    margin: 0;
    font-family: 'CosmicarenaBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #b0b0b0;
}

.cosft-small {
    margin: 0;
    font-family: 'CosmicarenaBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #777777;
}


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

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

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

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

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

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

    /* Dropdown on mobile: always visible */
    .coshdr-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 */
    .cosft-inner {
        flex-direction: column;
        text-align: center;
    }

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

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

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

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

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

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

    .design-cosmic-arena p {
        font-size: 0.95rem;
    }

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