/* ===========================================================================
   Pub Team Names — page-specific styling.
   Loaded only on /pub-team-names.htm via pages.extra_css_json.

   The page's body uses legacy classes (.content-05.stripes-01, .button,
   .team-name, .text-input, .box-third, .list-01) that the shared template
   does not style, so everything here is additive — it never touches the
   template stylesheet. Colours reuse the theme's :root variables so the page
   tracks any future brand change.
   =========================================================================== */

/* ---- Generator cards -------------------------------------------------- */
/* The four generators each sit in a .content-05.stripes-01 block. */
.content-05.stripes-01 {
    /* Solid theme surface — flips with [data-theme="dark"] so text stays
       legible on both themes. No gradient (it muddied the contrast). */
    background: var(--background-alt, #f9fafb);
    color: var(--text-color, #1f2937);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 1.75rem;
    margin: 1.25rem 0;
    box-shadow: var(--shadow-md, 0 4px 10px rgba(0, 0, 0, 0.06));
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.content-05.stripes-01:hover {
    box-shadow: var(--shadow-lg, 0 8px 20px rgba(0, 0, 0, 0.1));
}
.content-05.stripes-01 h3 {
    margin: 0 0 0.35rem;
    color: var(--secondary-color, #1e40af);
    font-size: 1.3rem;
}
.content-05.stripes-01 > p {
    margin: 0 0 1.1rem;
    color: var(--text-light, #6b7280);
}

/* When viewports are wide, lay the four generators out two-up. They are
   siblings in document flow, so we group them with a flex wrapper added by
   the JS (.ptn-grid). If the JS hasn't run, they simply stack — no harm. */
.ptn-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 1.25rem 0;
}
.ptn-grid .content-05.stripes-01 {
    margin: 0;
}

/* ---- Buttons ---------------------------------------------------------- */
.content-05.stripes-01 .button {
    display: inline-block;
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--secondary-color, #1e40af));
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.content-05.stripes-01 .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    filter: brightness(1.05);
}
.content-05.stripes-01 .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.content-05.stripes-01 .button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

/* ---- Text input ------------------------------------------------------- */
.content-05.stripes-01 .text-input {
    display: block;
    width: min(100%, 360px);
    margin: 0 auto 1rem;
    padding: 0.65rem 1rem;
    font: inherit;
    color: var(--text-color, #1f2937);
    background: var(--background, #fff);
    border: 2px solid var(--border-strong, #d1d5db);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.content-05.stripes-01 .text-input:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---- Result display --------------------------------------------------- */
.team-name {
    min-height: 2.4em;
    margin-top: 1.1rem;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary-color, #2563eb);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}
.team-name:empty {
    min-height: 0;
    margin-top: 0;
}
/* The name text itself (wrapped by the JS so we can animate just the words). */
.team-name .ptn-text {
    display: inline-block;
}
/* Reveal animation, retriggered each generate by toggling the class. */
.team-name.ptn-pop .ptn-text {
    animation: ptn-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ptn-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .team-name.ptn-pop .ptn-text { animation: none; }
}

/* ---- Copy button (injected by JS once a name exists) ------------------ */
.ptn-copy {
    appearance: none;
    border: 1px solid var(--border-strong, #d1d5db);
    background: var(--card-bg, #fff);
    color: var(--text-light, #6b7280);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ptn-copy:hover {
    background: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
    color: #fff;
}
.ptn-copy.ptn-copied {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

/* ---- Printable name lists -------------------------------------------- */
/* The curated lists are .content-03 wrappers each holding three .box-third
   columns of .list-01 items. Turn them into a clean, even chip grid. */
.content-03 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 1rem 0;
}
.content-03 .box-third {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
}
/* The repeated "Pub Team Names" column heading is visual noise — hide it but
   keep it for screen readers / SEO. */
.content-03 .box-third > p:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.content-03 .list-01 {
    list-style: none;
    margin: 0;
    padding: 0;
}
.content-03 .list-01 li {
    margin: 0;
}
.content-03 .list-01 li p {
    margin: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    color: var(--text-color, #1f2937);
    transition: background 0.15s ease, color 0.15s ease;
    cursor: default;
}
.content-03 .list-01 li:nth-child(odd) p {
    background: var(--background-alt, #f9fafb);
}
.content-03 .list-01 li p:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary-color, #1e40af);
}

/* ---- Intro nav pill row ---------------------------------------------- */
.content-02 .nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    margin: 0 0 1rem;
}
.content-02 .nav a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--background-alt, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    text-decoration: none;
    color: var(--secondary-color, #1e40af);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.content-02 .nav a:hover {
    background: var(--primary-color, #2563eb);
    color: #fff;
}
