/* xxxtik-style homepage overrides for JustPornVids */

/* General page background + font */
body {
    background-color: #050505;
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

/* Wrapper for the custom home layout */
.xxxtik-home {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

/* === SEARCH BAR === */
.xxxtik-search-bar {
    margin-bottom: 20px;
}

.xxxtik-search-form {
    display: flex;
    align-items: center;
    background: #121212;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 0 0 1px #222;
}

.xxxtik-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-size: 16px;
    outline: none;
}

.xxxtik-search-input::placeholder {
    color: #777;
}

.xxxtik-search-button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #ff0040;
    position: relative;
}

.xxxtik-search-button::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.xxxtik-search-button::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transform: translate(7px, 7px) rotate(45deg);
}

/* === TAGS BAR (uses existing .list.searches markup) === */
.xxxtik-tags-bar {
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
}

/* Hide any default section header from the widget if present */
.xxxtik-tags-bar > section > header {
    display: none;
}

/* Make the tag list row-like and scrollable */
.xxxtik-tags-bar .list.searches {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual tag pill */
.xxxtik-tags-bar .list.searches li a {
    display: inline-block;
    padding: 6px 12px;
    background: #171717;
    border-radius: 999px;
    color: #ddd;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

/* "More" link in the widget */
.xxxtik-tags-bar .list.searches li a.more {
    background: #ff0040;
    color: #fff;
}

/* Existing hover change (red → purple-ish) */
.xxxtik-tags-bar .list.searches li a:hover {
    background: #2f0185;
    color: #fff;
}

/* === FEED / GRID === */

/* Kill the "Hot Videos" header from widget.random_videos */
.xxxtik-feed > section > header {
    display: none;
}

/* Masonry-style layout using columns */
.xxxtik-feed .thumbs-list {
    column-count: 5;
    column-gap: 16px;
}

/* Individual card (article.thumb from template.content_item.php) */
.xxxtik-feed .thumb {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Link + figure (thumb image / preview) */
.xxxtik-feed .thumb > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Title: keep, but small and overlaid at bottom like a caption */
.xxxtik-feed .thumb h3 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    max-height: 48px;
    overflow: hidden;
}

/* Make sure figures fill width & keep rounded corners */
.xxxtik-feed .thumb figure {
    margin: 0;
    width: 100%;
    display: block;
}

/* If your template uses <img> inside figure */
.xxxtik-feed .thumb figure img,
.xxxtik-feed .thumb figure video {
    width: 100%;
    display: block;
}

/* Footer meta (views, duration, etc.) */
.xxxtik-feed .thumb footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 11px;
    color: #bbb;
    background: #101010;
    position: relative;
    z-index: 2;
}

/* Make the meta bits subtle but legible */
.xxxtik-feed .thumb footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hover effect – lift card a bit */
.xxxtik-feed .thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

/* === RESPONSIVE GRID BREAKPOINTS === */
@media (max-width: 1600px) {
    .xxxtik-feed .thumbs-list { column-count: 4; }
}

@media (max-width: 1300px) {
    .xxxtik-feed .thumbs-list { column-count: 3; }
}

@media (max-width: 900px) {
    .xxxtik-home {
        padding: 16px 10px 32px;
    }
    .xxxtik-feed .thumbs-list { column-count: 2; }
}

@media (max-width: 600px) {
    .xxxtik-feed .thumbs-list { column-count: 1; }
}
