/**
 * Element Games — Common Shortcode Styles
 *
 * Design tokens and shared base classes used across all shortcodes.
 * Override any variable or class in your theme's Additional CSS.
 *
 * Tokens:
 *   --eg-font               base font stack (Rethink Sans)
 *   --eg-font-data          data/label font stack (Space Grotesk)
 *   --eg-color-text         primary text
 *   --eg-color-muted        secondary/muted text
 *   --eg-color-border       standard border color
 *   --eg-color-bg           card/container background
 *   --eg-color-bg-alt       subtle inner background (inputs, info areas)
 *   --eg-color-primary      brand primary (teal — buttons, accents)
 *   --eg-color-primary-dark hover state for primary
 *   --eg-color-navy         brand navy (headings, dark surfaces)
 *   --eg-color-gold         accent gold (high-priority CTAs)
 *   --eg-radius             card border radius
 *   --eg-radius-sm          small border radius (inputs, tags)
 *   --eg-radius-pill        pill / capsule buttons
 *   --eg-padding            standard container padding
 *   --eg-shadow-sm          subtle lift
 *   --eg-shadow-md          medium elevation
 *   --eg-shadow-hover       box-shadow on interactive hover only
 */

@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Typography */
    --eg-font:               'Rethink Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --eg-font-data:          'Space Grotesk', 'Rethink Sans', sans-serif;

    /* Brand palette — dvm360 */
    --eg-color-navy:         #272B67;
    --eg-color-navy-deep:    #292D6A;
    --eg-color-teal:         #00A7AF;
    --eg-color-teal-dark:    #048094;
    --eg-color-teal-btn:     #10ADB4;
    --eg-color-gold:         #FFD984;

    /* Semantic tokens */
    --eg-color-text:         #0F172A;
    --eg-color-muted:        #475569;
    --eg-color-border:       #E5E7EB;
    --eg-color-bg:           #ffffff;
    --eg-color-bg-alt:       #F9FAFB;
    --eg-color-primary:      #00A7AF;
    --eg-color-primary-dark: #048094;

    /* Shape */
    --eg-radius:             16px;
    --eg-radius-sm:          8px;
    --eg-radius-pill:        58px;
    --eg-padding:            30px;

    /* Shadows */
    --eg-shadow-sm:          0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --eg-shadow-md:          0 4px 6px -4px rgba(0, 0, 0, 0.10), 0 10px 15px -3px rgba(0, 0, 0, 0.10);
    --eg-shadow-hover:       0 7.5px 11.25px 0 rgba(41, 45, 106, 0.10), 0 1px 2px 0 rgba(41, 45, 106, 0.05);
}

/* ── Base container ─────────────────────────────────────────────────────────
   Applied to: .poll-container, .results-container, .webapi-auth-tester,
               .game-card (via --eg-* vars), .eg-shortcode-container
   ────────────────────────────────────────────────────────────────────────── */
.eg-container {
    background:    var(--eg-color-bg);
    border:        1px solid var(--eg-color-border);
    border-radius: var(--eg-radius);
    padding:       var(--eg-padding);
    font-family:   var(--eg-font);
    box-sizing:    border-box;
    width:         100%;
    box-shadow:    var(--eg-shadow-sm);
}

/* ── Typography helpers ─────────────────────────────────────────────────── */
.eg-heading {
    font-size:      1.5rem;
    font-weight:    800;
    color:          var(--eg-color-navy-deep, var(--eg-color-text));
    margin:         0 0 20px;
    line-height:    1.15;
    letter-spacing: -0.01em;
    font-family:    var(--eg-font);
}

.eg-subheading {
    font-size:   1.125rem;
    font-weight: 700;
    color:       var(--eg-color-text);
    margin:      0 0 12px;
}

.eg-label {
    font-size:      0.75rem;
    font-family:    var(--eg-font-data);
    font-weight:    700;
    color:          var(--eg-color-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height:    1.4;
}

/* ── Status / feedback messages ─────────────────────────────────────────── */
.eg-message {
    padding:       12px 15px;
    border-radius: var(--eg-radius-sm);
    font-size:     14px;
    line-height:   1.5;
    margin:        10px 0;
}

.eg-message--success {
    background: #d4edda;
    border:     1px solid #c3e6cb;
    color:      #155724;
}

.eg-message--error {
    background: #f8d7da;
    border:     1px solid #f5c6cb;
    color:      #721c24;
}

.eg-message--info {
    background: #d1ecf1;
    border:     1px solid #bee5eb;
    color:      #0c5460;
}

.eg-message--warning {
    background: #fff3cd;
    border:     1px solid #ffc107;
    color:      #856404;
}

/* ── Primary button ─────────────────────────────────────────────────────── */
.eg-btn {
    display:         inline-block;
    padding:         14px 32px;
    background:      var(--eg-color-primary);
    color:           #fff;
    border:          none;
    border-radius:   var(--eg-radius-pill);
    font-size:       0.9375rem;
    font-weight:     800;
    font-family:     var(--eg-font);
    cursor:          pointer;
    text-decoration: none;
    letter-spacing:  0.02em;
    transition:      background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    line-height:     1;
    box-shadow:      0 4px 6px -4px var(--eg-color-teal-btn, #10ADB4),
                     0 10px 15px -3px rgba(16, 173, 180, 0.25);
}

.eg-btn:hover {
    background: var(--eg-color-primary-dark);
    box-shadow: var(--eg-shadow-md);
}

.eg-btn:active {
    transform: translateY(1px);
}

.eg-btn:disabled,
.eg-btn[disabled] {
    background: #cbd5e1;
    box-shadow: none;
    cursor:     not-allowed;
}

.eg-btn--secondary {
    background: var(--eg-color-bg);
    color:      var(--eg-color-muted);
    border:     2px solid #CBD5E1;
    box-shadow: none;
}

.eg-btn--secondary:hover {
    background:   var(--eg-color-bg-alt);
    border-color: #94A3B8;
    box-shadow:   var(--eg-shadow-sm);
}

/* ── Divider ────────────────────────────────────────────────────────────── */
.eg-divider {
    border:     none;
    border-top: 1px solid var(--eg-color-border);
    margin:     20px 0;
}

/* ── Loading state ──────────────────────────────────────────────────────── */
.eg-loading {
    text-align: center;
    padding:    40px;
    color:      var(--eg-color-muted);
    font-size:  14px;
}

/* ── Inner panel (inputs, info boxes, code areas) ───────────────────────── */
.eg-panel {
    background:    var(--eg-color-bg-alt);
    border-radius: var(--eg-radius-sm);
    padding:       15px;
    border:        1px solid var(--eg-color-border);
}
