/*
Theme Name: PlayLicensed Landing
Theme URI: https://example.com/
Author: Bigwinboard
Description: Minimal dark landing page theme for logo, text, and bonus offers. Classic theme with header/footer widgets and flexible sidebar.
Version: 1.2.7
Text Domain: playlicensed-landing
*/

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05060a;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Layout shell */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: radial-gradient(circle at top left, #1f2937, #020308 55%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0rem;
}

.site-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;   /* stack logo + widgets */
    align-items: center;      /* center horizontally */
    justify-content: center;
    gap: 0.75rem;
}

.site-branding {
    text-align: center;
}

.site-branding .custom-logo {
    display: block;
    margin: 0 auto;
    max-width: 220px;   /* maximum logo width on desktop */
    width: 100%;        /* scale down if container is smaller */
    height: auto;       /* keep correct proportions */
}

.site-branding-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-branding-tagline {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-top: 0.15rem;
}

.site-header-widgets {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Main content layout */

.site-content {
    max-width: 1120px;
    width: 100%;
    margin: 1.75rem auto 2.5rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.site-main {
    flex: 1 1 auto;
}

/* Main landing widget area (one column) */

.landing-main-widgets {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.above-entry-widgets {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

/* Sidebar */

.site-sidebar {
    flex: 0 0 320px;
}

.site-sidebar-inner {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1rem;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
}

.sidebar-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/*
 * bwb-tournament single template: outputs .mh-wrapper directly under .site-content (no .site-main).
 * With flex-direction: row, a lone child defaults to flex-grow: 0 and stays content-width — stretch it
 * so the play grid uses the same width band as normal posts (main + sidebar layout unchanged).
 */
.site-content > .mh-wrapper {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    align-self: stretch;
}

/* Tournament play CPT: default 1120px is tight for game + sidebar rail — use a wider content band only here */
body.single-bwb_tournament_play .site-content {
    max-width: min(100%, 1440px);
}

/*
 * Widgets above the tournament: same markup classes as the homepage (.site-main + .landing-main-widgets)
 * and the same width as the homepage main column (1120 shell − padding − 320px sidebar − flex gap).
 */
@media (min-width: 900px) {
    .site-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .site-main {
        flex: 1 1 auto;
    }

    body.single-bwb_tournament_play:not(.mh-right-sb):not(.mh-left-sb) .mh-wrapper article > .site-main.bwb-tournament-above-main {
        flex: 0 1 auto;
        max-width: calc(1120px - 2rem - 320px - 1.75rem);
        width: 100%;
        min-width: 0;
    }

    .sidebar-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Cards & content */

.post-card {
    background: radial-gradient(circle at top, #020617 0, #020617 55%, #020308 100%);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.75);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.post-card-inner {
    position: relative;
    z-index: 1;
}

.entry-title {
    font-size: 1.8rem;
    margin: 0 0 0.75rem;
    letter-spacing: 0.03em;
}

.entry-content {
    font-size: 0.98rem;
    color: #e5e7eb;
}

.entry-content p {
    margin: 0 0 0.9rem;
}

/* Links */

.entry-content a,
.entry-content a:visited,
.widget a,
.widget a:visited {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.entry-content a:hover,
.widget a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Bonus/CTA blocks inside content */

.entry-content .cta-block,
.widget .cta-block {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(59, 130, 246, 0.1));
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
}

/* Widgets */

.widget {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.widget-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 0.9rem;
}

/* Footer */

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    background: radial-gradient(circle at bottom right, #020617, #000000 65%);
    padding: 1.5rem 1rem 1.75rem;
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch; /* allow footer widgets grid to span full width */
}

.site-footer-widgets {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.footer-meta {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

/* Responsive */

@media (min-width: 700px) {
    .site-footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        align-items: center;   /* keep logo centered on mobile */
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .post-card {
        padding: 1.35rem 1.15rem;
    }
}

/* Utility */

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: 2.25rem;
}

/* Keep bonus buttons looking like buttons (no underline) */

.bwb-bonus-button,
.bwb-bonus-button:hover {
    text-decoration: none !important;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 0.5rem 1.5rem; /* vertical, horizontal spacing */
    text-align: center;
}

.footer-links .navzlink {
    display: inline-block;
    font-size: 0.85rem;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    row-gap: 0.9rem;     /* vertical space between rows */
    column-gap: 1.2rem;  /* horizontal space between logos */
}

.footer-badges a {
    display: inline-flex;
    align-items: center;
}

/* Base size for all footer logos */
.footer-badges img {
    display: block;
    width: auto;
    object-fit: contain;
    max-height: 20px;
}

/* Taller logos */
.footer-badges img.footer-logo--tall {
    max-height: 28px;
}

/* Very wide / flat logos */
.footer-badges img.footer-logo--wide {
    max-height: 16px;
}

/* Extra small badges */
.footer-badges img.footer-logo--small {
    max-height: 14px;
}

/* Optional: tweak sizes on very small screens */
@media (max-width: 480px) {
    .footer-badges img {
        max-height: 22px;
    }

    .footer-badges img.footer-logo--tall {
        max-height: 26px;
    }

    .footer-badges img.footer-logo--wide {
        max-height: 18px;
    }

    .footer-badges img.footer-logo--small {
        max-height: 14px;
    }
}

/* Don’t underline badge logos on hover */
.footer-badges a:hover {
    text-decoration: none !important;
}

/* =========================================
   Free Play Tournament Banner (Original Red Version – Fixed)
   ========================================= */

.pl-tournament-banner {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 38px 28px;
    background: radial-gradient(circle at 20% 20%, #1a1a1a 0%, #0c0c0c 65%);
    border: 0px solid rgba(255, 60, 60, 0.12);
box-shadow:
    0 18px 50px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255, 60, 60, 0.05) inset;
    box-shadow: 0 18px 50px rgba(0,0,0,0.7);
    text-align: center;
    margin: 0;
}

/* Subtle animated glow */
.pl-tournament-banner::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255,0,0,0.25),
        transparent,
        rgba(255,120,0,0.2),
        transparent
    );
    animation: plSpinGlow 8s linear infinite;
    opacity: 0.08;
    pointer-events: none;
}

@keyframes plSpinGlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Logo */
.pl-tournament-logo {
    margin: 0 auto 26px auto;
    position: relative;
    z-index: 2;
}

.pl-tournament-logo img {
    display: block;
    height: 92px;
    width: auto;
    margin: 0 auto;
}

/* Text */
.pl-tournament-text {
    position: relative;
    z-index: 2;
    max-width: 720px;   /* prevents ugly wide stretching */
    margin: 0 auto;
}

.pl-tournament-text h2 {
    font-size: 24px;
    margin: 10px 0 14px 0;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* This makes $2000 PRIZE red */
.pl-tournament-text h2 span {
    color: #ff2d2d;
}

.pl-tournament-text p {
    font-size: 15px;
    color: #8a8a8a;
    line-height: 1.2;
    margin: 0 0 28px 0;
}

/* Button */
.pl-tournament-banner a.pl-tournament-button,
.pl-tournament-banner a.pl-tournament-button:hover,
.pl-tournament-banner a.pl-tournament-button:focus,
.pl-tournament-banner a.pl-tournament-button:active,
.pl-tournament-banner a.pl-tournament-button:visited {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.pl-tournament-banner a.pl-tournament-button {
    display: inline-block;
    padding: 18px 44px;
    background: linear-gradient(90deg, #ff2d2d, #ff7a00);
    color: #fff !important;
    font-weight: 900;
    font-size: 16px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 0 25px rgba(255,45,45,0.7);
    position: relative;
    z-index: 2;
}

.pl-tournament-banner a.pl-tournament-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255,45,45,1);
}

/* Mobile */
@media (max-width: 768px) {

    .pl-tournament-banner {
        padding: 32px 20px;
    }

    .pl-tournament-logo img {
        height: 110px;
    }

    .pl-tournament-text h2 {
        font-size: 20px;
    }

    .pl-tournament-banner a.pl-tournament-button {
        width: 100%;
        padding: 18px 0;
    }
}

/* =========================================
   Tournament Banner – Desktop FINAL FIX
   ========================================= */

@media (min-width: 769px) {

    .pl-tournament-banner {
        display: flex;
        align-items: center;              /* vertical alignment */
        gap: 50px;
        text-align: left;
    }

    /* Logo left */
    .pl-tournament-logo {
        margin: 0;
        flex: 0 0 auto;
    }

    .pl-tournament-logo img {
        margin: 0;
        height: 92px;
        width: auto;
    }

    /* Text block center */
    .pl-tournament-text {
        flex: 1;
        margin: 0;
        max-width: none;
    }

    .pl-tournament-text h2 {
        margin: 0 0 8px 0;
        white-space: nowrap;              /* prevent heading wrap */
    }

    .pl-tournament-text p {
        margin: 0;
    }

    /* Button right */
    .pl-tournament-banner a.pl-tournament-button {
        margin: 0;
        white-space: nowrap;              /* prevent button wrap */
        flex-shrink: 0;                   /* don’t compress */
    }

}