/* =============================================
   WP CHATURBATE - CLEAN RESPONSIVE CSS
   Matches Newspaper theme + Fully Responsive
   ============================================= */

.chaturbate-search {
    margin: 30px 0 35px;
    text-align: center;
}

.chaturbate-search input[type="text"] {
    padding: 14px 18px;
    width: 100%;
    max-width: 480px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border 0.3s;
}

.chaturbate-search input[type="text"]:focus {
    border-color: #d20000;
    outline: none;
}

.chaturbate-search button {
    padding: 14px 28px;
    font-size: 16px;
    background: #d20000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
}

.chaturbate-search button:hover {
    background: #b00000;
}

/* Cam Grid - Matches Newspaper post style */
.td_block_wrap.chaturbate-block .td_block_inner {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0 -10px;
}

.chaturbatecamitem.td-module-wrap {
    flex: 1 1 320px;
    max-width: 320px;
    margin: 0 !important;
    padding: 0 10px;
    box-sizing: border-box;
}

.chaturbatecamitem .td-module-container {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.chaturbatecamitem:hover .td-module-container {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.chaturbatecamitem .td-image-wrap img {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.chaturbatecamitem:hover .td-image-wrap img {
    transform: scale(1.06);
}

.chaturbatecamitem .td-module-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    margin: 14px 14px 8px;
}

.chaturbatecamitem .td-module-title a {
    color: #222;
}

.chaturbatecamitem:hover .td-module-title a {
    color: #d20000;
}

.chaturbatecamitem .td-excerpt {
    font-size: 13.5px;
    color: #666;
    padding: 0 14px 14px;
    line-height: 1.45;
}

/* Pagination */
.chaturbate_pager,
.page-nav {
    margin: 40px 0 20px;
    text-align: center;
    font-size: 15px;
}

.chaturbate_pager a,
.page-nav a,
.chaturbate_pager span,
.page-nav span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #fff;
    color: #444;
    border-radius: 4px;
    text-decoration: none;
}

.chaturbate_pager a:hover,
.page-nav a:hover {
    background: #d20000;
    color: #fff;
}

.chaturbate_pager .current,
.page-nav .current {
    background: #d20000;
    color: #fff;
    font-weight: bold;
}

/* Responsive Behavior */
@media (max-width: 1024px) {
    .chaturbatecamitem.td-module-wrap {
        flex: 1 1 48%;
        max-width: 48%;
    }
}

@media (max-width: 767px) {
    .chaturbatecamitem.td-module-wrap {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .chaturbate-search input[type="text"] {
        max-width: 100%;
    }
    
    .chaturbate-search button {
        margin-left: 0;
        margin-top: 0px;
        width: 100%;
        max-width: 1400px;
    }
}

/* Single Chat Page Improvements */
.chaturbate-single-chat iframe {
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    margin-bottom: 25px;
}

.chaturbate-single-chat h2 {
    font-size: 26px;
    color: #222;
    margin-bottom: 12px;
}