/*
Theme Name: Bashell XN
Theme URI: https://bashell.com
Description: An ultra-dense, lightweight, high-contrast adult tube theme designed for maximum content visibility and speed.
Version: 1.1.0
Author: b4sh311
Text Domain: bashell-xn
*/

:root {
    --bg-main: #000000;
    --bg-header: #06192e; /* XNXX Deep Navy Blue */
    --bg-nav: #0b2746; /* XNXX Nav Blue */
    --bg-card: #080808;
    --text-main: #c4c4c4;
    --text-title: #ffffff;
    --text-muted: #888888;
    --accent: #1760b0; /* XNXX Action Blue */
    --accent-hover: #217bef;
    --border: #1a1a1a;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.4;
    font-size: 13px;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--accent);
}

/* Header */
.site-header {
    background-color: var(--bg-header);
    color: var(--white);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.site-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
}
.site-logo:hover {
    color: var(--white);
}

.search-form {
    display: flex;
    max-width: 400px;
    width: 100%;
    margin-left: 20px;
}

.search-input {
    flex-grow: 1;
    padding: 7px 10px;
    border: 1px solid #0b2746;
    border-radius: 2px 0 0 2px;
    outline: none;
    background: #ffffff;
    color: #000;
}

.search-btn {
    padding: 7px 15px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-weight: bold;
}
.search-btn:hover {
    background-color: var(--accent-hover);
}

/* Navigation */
.site-navigation {
    background: var(--bg-nav);
    padding: 10px 20px;
    border-bottom: 2px solid #051324;
}
.primary-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 13px;
    flex-wrap: wrap;
}
.primary-menu li a {
    color: #a4c9eb;
}
.primary-menu li a:hover {
    color: var(--white);
}
.primary-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 13px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
    .search-form {
        max-width: 200px;
    }
    .site-navigation {
        display: none;
        position: absolute;
        width: 100%;
        z-index: 99;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .site-navigation.toggled {
        display: block;
    }
    .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    .primary-menu li {
        border-bottom: 1px solid #ddd;
    }
    .primary-menu li a {
        display: block;
        padding: 10px 0;
    }
}

/* Main Container */
.container {
    max-width: 1600px; /* Very wide for dense grids */
    margin: 20px auto;
    padding: 0 15px;
}

/* Video Grid - Ultra Dense */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

@media (max-width: 1400px) {
    .video-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
    .video-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
    .video-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Video Item */
.video-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.video-item:hover .video-thumb img {
    opacity: 0.8;
}

/* Badges / Overlays */
.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 2px;
    font-weight: bold;
}

.video-hd {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e50914; /* Red HD badge */
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
}
.video-cat-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 5;
}

/* Video Meta */
.video-meta {
    padding: 8px;
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 5px;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Single View (Theater Mode) */
.single-container {
    background: var(--bg-header); /* Dark background for player */
    padding: 20px 0;
    margin-bottom: 20px;
}

.single-player-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
}

.single-title {
    color: var(--white);
    max-width: 1200px;
    margin: 15px auto 0 auto;
    padding: 0 15px;
    font-size: 22px;
}

.single-stats {
    color: #aaa;
    max-width: 1200px;
    margin: 5px auto;
    padding: 0 15px;
    font-size: 13px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* Page Template (Privacy Policy, etc) */
.page-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.page-content h2, .page-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}
.page-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.page-content ul, .page-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
.footer-menu li a {
    color: var(--white);
    font-size: 13px;
}
.footer-menu li a:hover {
    color: var(--accent);
}

/* Footer */
.site-footer {
    background: var(--bg-header);
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-size: 12px;
    margin-top: 40px;
}

/* Responsive Video Overrides */
.single-player-wrapper iframe,
.single-player-wrapper video,
.single-player-wrapper object,
.single-player-wrapper embed,
.wp-block-embed__wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.single-player-wrapper .wp-block-embed__wrapper,
.single-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.single-player-wrapper .wp-block-embed__wrapper {
    padding-bottom: 0; /* Let parent handle it if nested */
    height: 100%;
}

/* Tag Pills */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.tag-cloud a {
    display: inline-block;
    background: #111111;
    color: #aaaaaa;
    padding: 6px 14px;
    border-radius: 20px; /* Pill shape */
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #333333;
    transition: all 0.2s ease;
}
.tag-cloud a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Advanced Pagination */
.xn-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin: 30px 0;
}
.xn-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #aaaaaa;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #222222;
    border-radius: 4px;
    transition: all 0.2s;
}
.xn-pagination .page-numbers:hover {
    background: var(--bg-header);
    color: var(--white);
    border-color: var(--bg-header);
}
.xn-pagination .page-numbers.current {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    pointer-events: none;
}


