/*
 * SportEntry mobile utilities
 *
 * Shared mobile-first helpers for EYRA/SportEntry public and registration views.
 * These classes are intentionally generic and page-agnostic.
 */

.playdaz-mobile-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.playdaz-public-page,
body.playdaz-public-page #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.playdaz-mobile-shell *,
.playdaz-public-footer * {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.playdaz-stack-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.playdaz-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.playdaz-actions .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
    overflow-y: visible;
}

.playdaz-mobile-shell .list-group,
.playdaz-mobile-shell .list-group-item {
    max-width: 100%;
    min-width: 0;
}

.playdaz-mobile-shell .list-group-item {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.playdaz-wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.playdaz-scroll-x {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.playdaz-card-table {
    width: 100%;
}

.playdaz-safe-bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.playdaz-fixed-bottom-action {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.playdaz-text-sm {
    font-size: 0.875rem;
    line-height: 1.35;
}

.playdaz-text-xs {
    font-size: 0.75rem;
    line-height: 1.3;
}

.playdaz-public-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 2rem;
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.875rem;
    line-height: 1.4;
    border-top: 1px solid rgba(0, 0, 0, 0.075);
    overflow-x: hidden;
    box-sizing: border-box;
}

.playdaz-public-footer .container,
.playdaz-public-footer .container-fluid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 1rem;
    padding-left: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

.playdaz-public-footer a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .playdaz-stack-sm {
        flex-direction: column;
        align-items: stretch;
    }

    .playdaz-actions-full-sm > .btn,
    .playdaz-actions-full-sm > button,
    .playdaz-actions-full-sm > a,
    .playdaz-actions-full-sm > input[type="button"],
    .playdaz-actions-full-sm > input[type="submit"] {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .playdaz-card-table,
    .playdaz-card-table thead,
    .playdaz-card-table tbody,
    .playdaz-card-table tr,
    .playdaz-card-table th,
    .playdaz-card-table td {
        display: block;
        width: 100%;
    }

    .playdaz-card-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .playdaz-card-table tbody tr {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.125);
        border-radius: 0.375rem;
    }

    .playdaz-card-table tbody td,
    .playdaz-card-table tbody th {
        padding: 0.35rem 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
