/* -----------------------------------------------------------------------
   WP Stripchat — Cam Grid Layout
   Styled to match bold black/white theme
----------------------------------------------------------------------- */

.stripchat_camgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Individual cam card — no border, clean */
.stripchat_camitem {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #222;
    line-height: 1.3;
    box-sizing: border-box;
    transition: box-shadow 0.15s ease;
}

.stripchat_camitem:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: #aaa;
}

/* Thumbnail — 4:3 ratio */
.stripchat_camthumb {
    position: relative;
    width: 100%;
    padding-bottom: 75% !important;
    height: 0;
    overflow: hidden;
    background: #111;
}

.stripchat_camthumb img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* LIVE badge */
.stripchat_camlive {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: #000;
    border-radius: 0;
    padding: 2px 6px;
    line-height: 1.4;
    z-index: 1;
}

.stripchat_camlive span {
    color: #fff !important;
    font-size: 10px !important;
    font-weight: bold !important;
    text-shadow: none !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Info below thumbnail */
.stripchat_caminfo {
    padding: 8px 10px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #e0e0e0;
}

.stripchat_caminfo a {
    font-weight: bold;
    color: #000 !important;
    text-decoration: none !important;
    font-size: 13px;
}

.stripchat_caminfo a:hover {
    text-decoration: underline !important;
}

.stripchat_viewers {
    font-size: 11px;
    color: #555;
    font-weight: normal;
    margin-top: 2px;
}

/* Pager */
.stripchat_pager {
    margin-top: 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    grid-column: 1 / -1;
}

.stripchat_pager_item,
.stripchat_pager_item_current {
    display: inline-block;
    margin: 2px;
    padding: 5px 10px;
    border: 2px solid #000;
    border-radius: 0;
    text-decoration: none;
    color: #000;
    background: #fff;
    font-weight: bold;
}

.stripchat_pager_item:hover {
    background: #000;
    color: #fff;
}

.stripchat_pager_item_current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.stripchat_pager_ellipsis {
    display: inline-block;
    padding: 5px 4px;
    font-weight: bold;
    color: #000;
}

/* Error */
.stripchat_error {
    color: red;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

/* Overlay */
.stripchat_shadow {
    background-color: #111;
    opacity: 0.65;
    filter: alpha(opacity=65);
    position: fixed;
    z-index: 9001;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0; padding: 0;
}

.stripchat_popup {
    position: fixed;
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    z-index: 9002;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 90vh;
    border: 2px solid #000;
    border-radius: 0;
}

.stripchat_close {
    text-align: right;
    margin-bottom: 8px;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .stripchat_camgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
    .stripchat_camgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
