/* Control panel and game server pages: hero with screenshot, brand marks, cards. */

.wp-block-group.arp-panel-hero {
    max-width: 1180px;
    margin: -2.5rem auto 3.5rem;
    padding: 0 1rem !important;
}

.arp-panel-hero__cols {
    gap: 3rem !important;
    align-items: center;
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 1rem;
    box-sizing: border-box;
}

.arp-panel-hero__text > p:first-of-type:not(.arp-panel-tm) {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.arp-panel-hero__text .wp-block-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.25rem;
}

.arp-panel-hero__text .wp-block-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
}

.arp-panel-hero__text .wp-block-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 1rem;
    height: 0.55rem;
    border-left: 3px solid var(--brand-primary);
    border-bottom: 3px solid var(--brand-primary);
    transform: rotate(-45deg);
}

.arp-panel-hero__text .wp-block-buttons {
    margin-top: 1.5rem;
    gap: 0.75rem;
}

/* Brand mark shown above the intro text. The light pill keeps every logo legible in both themes. */
.arp-panel-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem 0.55rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.arp-panel-brand__tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #475569;
}

.arp-panel-logo {
    display: block;
    height: 24px;
    width: auto;
}

.arp-panel-logo--lg {
    height: 40px;
}

.arp-panel-logo--sm {
    height: 22px;
}

.arp-panel-logo--wordmark.arp-panel-logo--md {
    height: 22px;
}

.arp-panel-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--brand);
    line-height: 1;
}

.arp-panel-wordmark--lg {
    font-size: 2.4rem;
}

.arp-panel-wordmark--sm {
    font-size: 1.05rem;
}

.arp-panel-icon {
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
}

.arp-panel-brand .arp-panel-wordmark,
.arp-panel-chip .arp-panel-wordmark,
.arp-panel-grid__item .arp-panel-wordmark,
.arp-panel-tile__mark .arp-panel-wordmark {
    color: var(--brand) !important;
}

/* Screenshots sit in a simple browser frame so they read as real software. */
.wp-block-image.arp-panel-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45), 0 12px 24px -12px rgba(15, 23, 42, 0.3);
    padding-top: 28px;
    position: relative;
}

.wp-block-image.arp-panel-shot::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 15px 0 0 #fbbf24, 30px 0 0 #34d399;
}

.wp-block-image.arp-panel-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.wp-block-image.arp-panel-shot figcaption {
    margin: 0;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    background: #0f172a;
    text-align: left;
}

/* Brand tile for panels without a screenshot yet. */
.arp-panel-tile {
    border-radius: 18px;
    padding: 2.5rem 2.25rem;
    background:
        radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 60%),
        var(--bg-card, #ffffff);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border-color, #e2e8f0));
    box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--brand) 55%, transparent);
}

.arp-panel-tile__mark {
    display: inline-flex;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.arp-panel-tile__sub {
    margin: 1.25rem 0 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.arp-panel-tile__list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.arp-panel-tile__list li::before,
.arp-panel-tile__list li::marker {
    content: none !important;
    display: none !important;
}

.arp-panel-tile__list li {
    list-style: none !important;
    font-weight: 600;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: var(--bg-surface, #f1f5f9);
    color: var(--text-secondary);
    border-left: 4px solid var(--brand);
}

/* Side-by-side "What is" section. */
.arp-panel-what .arp-panel-split {
    gap: 3rem !important;
    align-items: center;
}

/* Hub hero: grid of panels. */
.arp-panel-grid {
    border-radius: 18px;
    padding: 1.75rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
}

.arp-panel-grid__title {
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.arp-panel-grid__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.arp-panel-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 84px;
    padding: 0.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-top: 4px solid var(--brand);
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.arp-panel-grid__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.arp-panel-grid__item:hover,
.arp-panel-grid__item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}

a.arp-panel-grid__item .arp-panel-wordmark {
    color: var(--brand) !important;
}

.arp-panel-grid__desc {
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
}

/* Game hub hero: two overlapping screenshots. */
.arp-panel-stack {
    position: relative;
    padding: 0 0 3.5rem 2.5rem;
}

.arp-panel-stack .arp-panel-stack__back {
    opacity: 0.92;
    transform: scale(0.94);
    transform-origin: top right;
}

.arp-panel-stack .arp-panel-stack__front {
    position: absolute !important;
    left: 0;
    bottom: 0;
    width: 74%;
}

/* "Choose your panel" cards. */
.arp-panel-card {
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.5rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
}

.arp-panel-card .arp-panel-thumb {
    margin-bottom: 1rem;
    border-radius: 10px;
    padding-top: 20px;
}

.arp-panel-card .arp-panel-thumb img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

.arp-panel-card .arp-panel-thumb::before {
    top: 7px;
    left: 10px;
    width: 7px;
    height: 7px;
    box-shadow: 11px 0 0 #fbbf24, 22px 0 0 #34d399;
}

.arp-panel-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-top: 4px solid var(--brand);
}

.arp-panel-chip .arp-panel-logo--sm {
    height: 30px;
}

.arp-panel-chip .arp-panel-wordmark--sm {
    font-size: 1.6rem;
}

.arp-panel-tm {
    max-width: 1180px;
    margin: 3rem auto 1rem !important;
    padding: 0 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

[data-theme="dark"] .arp-panel-card,
[data-theme="dark"] .arp-panel-grid {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .arp-panel-tile__list li {
    background: var(--bg-surface);
}

@media (max-width: 900px) {
    .arp-panel-hero__cols,
    .arp-panel-what .arp-panel-split {
        gap: 2rem !important;
    }

    .arp-panel-hero__cols > .wp-block-column,
    .arp-panel-split > .wp-block-column {
        flex-basis: 100% !important;
    }

    .arp-panel-stack {
        padding: 0 0 2.5rem 1.25rem;
    }

    .arp-panel-tile {
        padding: 1.75rem 1.5rem;
    }

    .arp-panel-wordmark--lg {
        font-size: 1.9rem;
    }
}
