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

.playdaz-mobile-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

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

.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;
}

@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%;
    }

    .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;
    }
}
