/* style.css - MingusWorld Public Styles 1/22/26 */

:root {
    --yellow: #ffffa2;
    --blue: #00005b;
    --light-blue: #93dcff;
/*    --red-yes: #c20000; */
    --red-yes: #9c0000;
    --black: #000000;
    --white: #ffffff;
}

/* Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000000 !important;
    color: #ffffff;  /* Safety net: white fallback if any text ever lands directly on black */
}

/* Container for desktop centering & max-width */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Ticker */
#ticker {
    background: var(--yellow);
    color: var(--blue);
    padding: 10px 15px;
    font-size: 1.14em;
    text-align: center;
    font-weight: bold;
    border-radius: 12px;
}

/* Banner */
#banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Main Area */
#main {
    background: var(--light-blue);
    padding: 25px 15px;
    text-align: center;
    border-radius: 12px;
}

#affirmation {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: var(--black);
}

#yes-button {
    background: var(--red-yes);
    color: var(--white);
    font-size: 3em;
    font-weight: bold;
    padding: 30px 60px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin: 25px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

#yes-button:hover {
    background: #a00000;
}

#resonance {
    font-size: 1.4em;
    margin: 20px 0 0 0;   /* top 20px (keep), right 0, bottom 0 (remove), left 0 */
    color: var(--black);
    text-align: center;
}

/* Tip Section */
#tip {
    background: var(--blue);
    color: var(--white);
    padding: 30px 15px;   
    text-align: center;
    font-size: 1.4em;
    border-radius: 12px;
}

#tip img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* All Affirmations Section - YOUR EXACT TUNED BLOCK RESTORED HERE */
#all-affs {
    background: var(--yellow);
    margin: 0 0 0 !important; /* Reduced from 30px to 20px to better match the visual gap above tip */
    padding: 1.5em 1em;
    color: var(--black);
    border-radius: 12px;
}
#all-affs .tap-more-heading {
    text-align: center;
    color: var(--blue);
    font-style: italic;
    font-size: 1.68em;
    margin: 0 0 0.8em;
    line-height: 1.3;
}
#all-affs h3 {
    text-align: center;
    color: #000000;
    margin: 0 0 1em;
    font-size: 1.4em;
}
#all-affs .scroll-box {
    max-height: 300px;
    height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}
#all-affs .aff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9em 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
#all-affs .aff-text {
    flex: 1;
    padding-right: 1em;
    line-height: 1.4;
}
#all-affs .aff-taps {
    text-align: right;
    font-weight: bold;
    color: #000000;
    padding-right: 1em;
}
#all-affs .mini-yes {
    width: 70px;
    min-height: 44px;
    padding: 0.5em;
    background: var(--red-yes);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
}
#all-affs .mini-yes:hover {
    opacity: 0.92;
}

/* Social Sharing */
#share {
    background: var(--red-yes);
    margin: 0;
    padding: 1.25em 0;          /* ← increased from 1em (or 0.8em) → ~19–20px top/bottom instead of ~16px or ~13px; adds subtle height */
    text-align: center;
    border-radius: 12px;
}

#share a {
    display: inline-block;
    margin: 0 0.75em;           /* ← reduced from 1em / 0.8em → ~11–12px left/right per link; total gap between icons shrinks by ~8–10px per pair */
}

#share img {
    width: 50px;
    height: 50px;
    vertical-align: middle;
}

/* Support */
#support {
    background: var(--light-blue);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border-radius: 12px;
}

.support-item a {
    font-size: 2em;
    font-weight: bold;
    color: var(--black);
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--blue);
    color: var(--yellow);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

footer button {
    background: var(--yellow);
    color: var(--black);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
}

footer button:focus {
    outline: 5px solid var(--white);
    outline-offset: 0;
}

/* Shared Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,91,0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.popup-content {
    background: var(--light-blue);
    padding: 25px 15px;
    max-width: min(600px, 85vw);
    margin: 0 auto;
    border-radius: 15px;
    text-align: left;
    color: var(--black);
}

.popup-content button {
    background: var(--yellow);
    color: var(--blue);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto 0 auto;  /* centers horizontally with auto left/right */
    display: block;            /* makes it a block so auto margins work for centering */
}

.popup-content button:focus {
    outline: 4px solid var(--black);
    outline-offset: 0;
}

/* Audio & Toast */
audio { display: none; }

.toast {
    position: fixed;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 1.5rem 2.5rem;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s;
    font-size: 1.625rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 1000;
    text-align: center;
    line-height: 1.4;
    color: var(--blue);
    white-space: nowrap;
}

.toast.show { opacity: 1; }

/* Responsive - Mobile adjustments (unchanged) */
@media (max-width: 768px) {
    #affirmation { font-size: 1.8em; }
    #yes-button { font-size: 2.5em; padding: 20px 40px; }
}

/* Desktop optimizations - min-width for larger screens */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    #banner img {
        border-radius: 12px;
    }

    #main {
        padding: 50px 60px;
    }

    #affirmation {
        font-size: 3.2em;
        line-height: 1.3;
    }

    #yes-button {
        font-size: 4em;
        padding: 50px 100px;
        border-radius: 30px;
    }

    #resonance {
        font-size: 2em;
    }

    #tip {
        padding: 50px 80px;
        font-size: 2em;
    }

    #all-affs {
        padding: 3em 4em;
        margin: 50px 0;
        border-radius: 12px;
    }

    #all-affs .tap-more-heading {
        font-size: 2.2em;
        margin-bottom: 1em;
    }

    #all-affs h3 {
        font-size: 2em;
    }

    #all-affs .scroll-box {
        max-height: 500px;
    }

    #all-affs .aff-row {
        padding: 1.4em 0;
        font-size: 1.4em;
        border-bottom: 1px solid rgba(0,0,0,0.15);
    }

    #all-affs .aff-text {
        padding-right: 2em;
    }

    #all-affs .aff-taps {
        min-width: 140px;
        font-size: 1.2em;
    }

    #all-affs .mini-yes {
        width: 110px;
        height: 54px;
        font-size: 1.1em;
        border-radius: 8px;
    }

    #share {
        padding: 2.5em 0;
    }

    #share img {
        width: 80px;
        height: 80px;
        margin: 0 1.5em;
    }

    #support {
        padding: 30px 60px;  /* reduce top/bottom from 50px to 30px — cuts excess vertical space */
        flex-direction: row;
        justify-content: center;
        gap: 60px;
    }

    .support-item a {
        font-size: 3em;
    }

    footer {
        padding: 24px 50px 30px 50px;  /* was 30px 50px; top/bottom 30px (tighter), sides 50px (keeps centering) */
        font-size: 1.2em;
    }

    .footer-buttons {
        margin-top: 0;  /* ensures no extra top margin pushes buttons down */
    }
}

/* Half-screen / tablet-ish desktop (optional fine-tuning) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    #affirmation {
        font-size: 2.8em;
    }

    #yes-button {
        font-size: 3.5em;
        padding: 40px 80px;
    }

    #all-affs {
        padding: 2em 3em;
    }

    #all-affs .scroll-box {
        max-height: 400px;
    }
}

/* Keyboard focus - custom colors for each button type, no shadow */

/* Main YES button (red on light-blue bg) */
#yes-button:focus {
    outline: 6px solid var(--blue);
    outline-offset: 0;
}

/* Mini YES buttons (red on yellow bg) */
.mini-yes:focus {
    outline: 4px solid var(--blue);
    outline-offset: 0;
}

/* Privacy Policy button (yellow on dark blue bg) */
#privacy-button:focus {
    outline: 5px solid var(--white);
    outline-offset: 0;
}

/* Privacy button close (yellow on light blue bg) */
#privacy-close:focus {
    outline: 4px solid var(--black);
    outline-offset: 0;
}

/* Share links (images on red bg) */
#share a:focus {
    outline: 4px solid var(--white);
    outline-offset: 5px;
}

/* Support links (text on light-blue bg) */
.support-item a:focus {
    outline: 4px solid var(--black);
    outline-offset: 3px;
}

/* Invisible Headers */
.visually-hidden {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     border: 0;
     white-space: nowrap;
     clip-path: inset(50%);
}

/* PWA Install Prompt Section */
.pwa-install-container {
  margin: 0;
  padding: 20px 15px;
  background: var(--red-yes);
  border-radius: 12px;
  text-align: center;
  /* border removed as requested */
}

.pwa-install-inner {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

/* Match footer button appearance exactly */
#install-app-btn,
#info-btn,
#dismiss-install-btn {
  background: var(--yellow);
  color: var(--black);
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.4em;
  font-weight: bold;
  cursor: pointer;
  min-width: 80px;          /* prevents shrinking too narrow on wrap */
  min-height: 44px;
  transition: background 0.2s ease;
}

#install-app-btn:focus,
#info-btn:focus,
#dismiss-install-btn:focus {
  outline: 5px solid var(--white);
  outline-offset: 0;
}

/* NO forced column or width:100% — let wrap handle small screens like footer */
.hidden {
  display: none !important;
}

/* PWA Install Prompt Section - Android/general */
.pwa-install-container {
    margin: 0;
    padding: 20px 15px;
    background: var(--red-yes);
    border-radius: 12px;
    text-align: center;
}

.pwa-install-inner {
    display: flex;
    justify-content: center;
    gap: 1.2em;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

#install-app-btn,
#info-btn,
#dismiss-install-btn {
    background: var(--yellow);
    color: var(--black);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    min-width: 80px;
    min-height: 44px;
    transition: background 0.2s ease;
}

/* Consistent subtle hover for ALL yellow buttons */
footer button:hover,
#install-app-btn:hover,
#info-btn:hover,
#dismiss-install-btn:hover {
    background: #ffff80 !important;
}