/* =========================================================
   Jowybean Shared Base Styles
   Loaded by public, admin, and beta sections
   ========================================================= */

/* ---------- Global / Base ---------- */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(to bottom, #b484f4, #86e0a3);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    color: #000;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1,
h2,
h3,
p {
    text-align: center;
}

hr {
    max-width: 900px;
    margin: 25px auto;
    border: none;
    border-top: 1px solid #ccc;
}

img {
    max-width: 100%;
}

ul {
    display: inline-block;
    text-align: left;
    margin: 0;
    padding-left: 40px;
    list-style: disc;
}

ul li {
    margin-bottom: 0.5em;
}

/* ---------- Banner / Footer ---------- */
.banner-image {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: fill;
}

.footer {
    margin-top: 40px;
    padding: 15px;
    background-color: rgba(147, 112, 219, 0.8);
    color: white;
    text-align: center;
}

.footer a {
    color: white;
    font-weight: bold;
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.footer-left {
    justify-self: start;
}

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

.footer-right {
    justify-self: end;
    margin: 0;
}

.footer-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #9146ff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.footer-btn:hover {
    opacity: 0.85;
}

.page-content {
    flex: 1;
}

/* ---------- Layout Helpers ---------- */
.content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
}

.container {
    max-width: 500px;
    margin: auto;
    padding: 25px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.container * {
    box-sizing: border-box;
}

.container h3 {
    text-align: center;
}

/* ---------- Forms ---------- */
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="url"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================
   Shared Action Buttons
   ========================================== */

button,
input[type="submit"],
input[type="button"],
.btn,
.buy-btn,
.footer-btn,
.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    min-height: 42px;
    padding: 10px 18px;

    border: 1px solid transparent;
    border-radius: 8px;

    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

/* Default primary controls */

button,
input[type="submit"],
input[type="button"],
.btn,
.buy-btn {
    background: #9146ff;
    color: #ffffff;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover,
.buy-btn:hover {
    background: #7130c5;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Semantic overrides */

.btn--secondary {
    background: #ffffff;
    color: #7130c5;
    border-color: rgba(113, 48, 197, 0.32);
}

.btn--secondary:hover {
    background: #f4edff;
    color: #7130c5;
    border-color: #9146ff;
}

.btn--success {
    background: #218838;
    color: #ffffff;
}

.btn--success:hover {
    background: #19692c;
}

.btn--danger {
    background: #c93636;
    color: #ffffff;
}

.btn--danger:hover {
    background: #a82424;
}

.btn--warning {
    background: #f0b429;
    color: #2d2833;
}

.btn--warning:hover {
    background: #d99a00;
    color: #2d2833;
}

.btn--ghost {
    background: transparent;
    color: #7130c5;
    border-color: rgba(113, 48, 197, 0.28);
}

.btn--ghost:hover {
    background: #f4edff;
    color: #7130c5;
}

/* Focus and disabled states */

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
.btn:focus-visible,
.buy-btn:focus-visible,
.footer-btn:focus-visible,
.mini-btn:focus-visible {
    outline: 3px solid rgba(145, 70, 255, 0.4);
    outline-offset: 3px;
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.btn:disabled,
[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Sizes */

.btn--small,
.mini-btn {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.85rem;
}

.btn--full,
.full-width-button {
    width: 100%;
}

input[type="submit"] {
    width: 100%;
    margin-top: 20px;
}

/* ---------- Cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 15px;
}

.card-body h3,
.card h3 {
    margin: 10px 0 5px;
}

.card-body h3 {
    margin-top: 0;
}

.card-body p {
    margin-bottom: 10px;
}

.card-body a,
.card a {
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}

.card-body a:hover,
.card a:hover {
    text-decoration: underline;
}

.card img {
    max-width: 150px;
    margin-bottom: 10px;
}

/* ---------- Tables ---------- */
table,
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th,
td,
.styled-table th,
.styled-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

th,
.styled-table th {
    background: #f2f2f2;
}

.styled-table {
    margin: 20px 0;
    font-size: 16px;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    text-align: left;
}

.styled-table th.active {
    background-color: #d1f0d1;
}

.styled-table th a {
    color: inherit;
    font-weight: bold;
    text-decoration: none;
}

/* ---------- Messages ---------- */
.message {
    margin-top: 20px;
    color: green;
    text-align: center;
    font-weight: bold;
}

.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

/* ---------- Badges / Mini Buttons ---------- */
.status-badge,
.feedback-status,
.mini-btn {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    margin: 2px;
}

.status-new {
    background: #fff3cd;
    color: #856404;
}

.status-reviewed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-planned {
    background: #e2d9f3;
    color: #4b2e83;
}

.status-fixed {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #e2e3e5;
    color: #383d41;
}

.mini-btn:hover {
    opacity: 0.85;
}

/* ---------- Show Status ---------- */

.status-upcoming {
    background: #d4edda;
    color: #155724;
}

.status-today {
    background: #fff3cd;
    color: #856404;
}

.status-past {
    background: #f8d7da;
    color: #721c24;
}

.status-tbd {
    background: #e2e3e5;
    color: #383d41;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .banner-image {
        height: auto;
    }

    .content {
        margin: 20px 10px;
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-self: center;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;

    padding: 10px 16px;

    background: #ffffff;
    color: #3d245f;

    border: 3px solid #9146ff;
    border-radius: 8px;

    font-weight: 700;
    text-decoration: none;

    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.countdown-visual {
    display: contents;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}