/*
Theme Name: OGHentai
Author: OGHentai
Description: A simple theme for OGHentai
Version: 1.0
Text Domain: ogh
*/

:root {
    --bg: #1f252f;
    --bg2: #000000;
    --text: #ebebeb;
    --text2: #bbb;
    --hover: #7067eb;
    --btn: #2215dd;
    --link: #74bcff;
}

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

::-webkit-scrollbar {
    scrollbar-width: none;
}

::-webkit-scrollbar-thumb {
    scrollbar-width: none;
}

::-webkit-scrollbar-corner {
    scrollbar-width: none;
}

body {
    background-color: var(--bg2);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.3s ease;
}

video {
    width: 100%;
    height: auto;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--hover);
    text-decoration: underline;
}

a:visited {
    color: #f00;
}

p {
    margin-bottom: 10px;
}

hr {
    border: 1px solid var(--bg2);
    margin: 20px -10px;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transition: margin-right 0.3s ease;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

body:not(.sidebar-hidden) .container {
    margin-right: 300px;
}

body.sidebar-hidden .container {
    margin-right: 0;
}

main.main-content {
    flex: 1;
}

header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg);
    border-bottom: 2px solid var(--bg2);
    gap: 10px;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-right {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--bg2);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
}

a.logo {
    font-size: 24px;
    font-weight: 600;
    margin-right: 10px;
    text-decoration: none;
    color: var(--text);
}

.header-search {
    flex: 1;
}

.search-focused {
    /* Add your focus styles */
    outline: none;
    border: 0;
}

input[type="search"] {
    background: var(--bg2);
    color: var(--text);
    border: none;
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    outline: none;
}

.aside-right {
    width: 300px;
    background: var(--bg);
    border-left: 2px solid var(--bg2);
    padding: 10px;
    overflow-y: auto;
    height: 100vh;
    scrollbar-width: none;
    transition: transform 0.3s ease;
    position: fixed;
    right: 0;
    top: 0;
}


/* Sidebar states */

body.sidebar-hidden .aside-right {
    transform: translateX(100%);
}


/* Mobile styles */

@media (max-width: 768px) {
    .single-header-left img {
        display: none;
    }
    footer.footer {
        flex-direction: column;
        justify-content: center!important;
        gap: 10px;
    }
    .aside-right {
        z-index: 1000;
        transform: translateX(100%);
    }
    body:not(.sidebar-hidden) .container {
        margin-right: 0;
    }
    body.sidebar-open .aside-right {
        transform: translateX(0);
        width: 275px;
    }
	a.sb-cat-item {
		padding: 5px;
	}
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    .taxonomy-links {
        gap: 6px;
    }
    .taxonomy-links a {
        padding: 4px 10px;
        font-size: 12px;
    }
    .taxonomy-label {
        font-size: 12px;
    }
    .trending-menu::-webkit-scrollbar {
        display: none;
    }
    /* Disable submenu on mobile */
    .trending-menu-list .sub-menu {
        display: none !important;
    }
}

footer.footer p {
    margin: 0;
}


/* Trending Menu */

.trending-menu {
    background: var(--bg);
    border-bottom: 2px solid var(--bg2);
    padding: 5px;
}

.trending-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    overflow-x: scroll;
}

.trending-menu-list li {
    position: relative;
}

.trending-menu-list>li>a {
    display: block;
    color: var(--text);
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.trending-menu-list>li>a:hover,
.trending-menu-list>li.current-menu-item>a {
    color: var(--text);
    background: var(--hover);
    border-color: var(--hover);
}


/* Submenu styles */

.trending-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--bg2);
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.trending-menu-list li:hover>.sub-menu {
    display: block;
}

.trending-menu-list .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.trending-menu-list .sub-menu li a:hover {
    background: var(--bg2);
    color: var(--link);
}


/* Breadcrumb styles */

.breadcrumb-container {
    padding: 10px;
    border-bottom: 2px solid var(--bg2);
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 5px;
    overflow-x: scroll;
    white-space: nowrap;
    width: 100%;
    display: -webkit-inline-box;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text2);
    font-weight: bold;
}

.breadcrumb a {
    color: var(--link);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text2);
}

.primary-menu {
    list-style: none;
    padding: 0;
}

.primary-menu li {
    margin-bottom: 5px;
}

.primary-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.primary-menu a:hover {
    background: var(--hover);
    color: white;
}

.menu-arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.sub-menu {
    padding-left: 20px;
    margin-top: 5px;
}


/* footer */

.footer-container {
    padding: 10px;
    border-top: 2px solid var(--bg2);
    text align: center;
}

footer.footer {
    border-top: 2px solid var(--bg2);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

ul#menu-footer {
    display: flex;
    gap: 5px;
}

li.menu-item {
    list-style: none;
}

.menu-footer-container a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.menu-footer-container a:hover {
    background: var(--hover);
    color: white;
}

.footer-left p {
    color: var(--text2)
}

.footer-left a {
    color: var(--link);
}


/* Widget styles */

.widget {
    margin-bottom: 20px;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.widget-title {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 8px;
}

.widget a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.widget a:hover {
    background: var(--hover);
    color: white;
}


/* Entry Header Styles */

.single-header {
    border-bottom: 2px solid var(--bg2);
    padding: 10px;
    display: flex;
}

.single-header-left img {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    border-radius: 5px;
}


/* Series Episodes List */

.series-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px;
    border-bottom: 2px solid var(--bg2);
}

.series-episodes {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ffffff14;
    white-space: nowrap;
    flex: auto;
    min-width: 140px;
    text-align: center;
    justify-content: center;
}

.series-episodes:hover {
    background: var(--bg2);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.series-episodes.current-episode {
    background: var(--bg2);
    color: white;
    cursor: default;
}

.series-episodes.current-episode::before {
    content: '▶ ';
    margin-right: 5px;
}

.single-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-title .has-sub {
    font-size: 16px;
    font-weight: 400;
    color: var(--link);
    background: rgba(15, 139, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.single-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text2);
    margin-bottom: 10px;
    line-height: 1.4;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--text2);
}

.single-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-meta svg {
    vertical-align: middle;
    flex-shrink: 0;
}

.single-meta .cat-links a,
.single-meta .series-links a,
.single-meta .studio-links a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-meta .cat-links a:hover,
.single-meta .series-links a:hover,
.single-meta .studio-links a:hover {
    color: var(--hover);
    text-decoration: underline;
}

.single-meta .duration {
    font-weight: 500;
}

.single-meta .cat-links a {
    color: var(--link);
    text-decoration: none;
}

.single-meta .cat-links a:hover {
    color: var(--hover);
    text-decoration: underline;
}


/* Post loop styles */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
}

.post-thumbnail {
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9 / 13;
    object-fit: cover;
}

.inner-post {
    position: relative;
    aspect-ratio: 9 / 13;
    background: #2b3039;
    overflow: hidden;
}

.ogr-results {
    position: absolute;
    bottom: 10px;
    right: 5px;
}

span.shadow {
    position: absolute;
    background: #333;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 70%) 48%, rgb(0 0 0) 100%);
    width: 100%;
    height: 100px;
    left: 0;
    bottom: -20px;
}

span.post-duration {
    position: absolute;
    left: 5px;
    bottom: 10px;
    background: #6b728045;
    padding: 1px 8px;
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

h3.post-title {
    font-size: 16px;
    display: block;
    width: 100%;
    font-weight: 400;
    transition: all .25s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

a.post-item {
    background: #2b3039;
    border-radius: 9px;
    color: var(--text);
    overflow: hidden;
}

a.post-item:visited {
    background: var(--bg2);
}


/*Single-page */

.page-area {
    padding: 10px;
}


/* Pagination Container */

nav.pagination-nav {
    margin: 20px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagenum {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: auto;
    color: var(--text2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

a.pagenum:visited {
    color: var(--text);
}

.pagenum:hover {
    color: var(--text);
    background: var(--hover);
    border-color: var(--hover);
    transform: translateY(-2px);
}

.pagination-current {
    color: white;
    background: var(--hover);
    border: 1px solid var(--btn);
    font-weight: 600;
}

@media (max-width: 480px) {
    .posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .pagination-prev,
    .pagination-next {
        display: none;
    }
}


/* Entry Content */

.entry-content {
    padding: 10px;
    line-height: 1.8;
    border-bottom: 2px solid var(--bg2);
}

.entry-content p {
    line-height: 1.4;
    font-weight: 300;
    color: var(--text2);
}


/* Entry Footer */

.entry-footer {
    padding: 10px;
    border-bottom: 2px solid var(--bg2);
}

.taxonomy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.taxonomy-links:last-child {
    margin-bottom: 0;
}

.taxonomy-label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    background: #000000;
    width: min(100px, 100%);
}

.taxonomy-links a {
    color: var(--text);
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: auto;
    text-align: center;
}

.taxonomy-links a:hover {
    background: var(--hover) !important;
    border-color: var(--hover) !important;
    color: var(--text) !important;
}


/* Sidebar Taxonomy List */
.sb-cat-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 -10px;
}

a.sb-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    color: var(--text);
    border: 1px solid #000;
    border-collapse: collapse;
}

a.sb-cat-item:hover {
    background: var(--hover)!important;
}

.sb-cat-post-count {
    font-size: 10px;
    font-weight: 600;
    padding: 7px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    line-height: 1;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}
a.cid-1 {
    color: #ff0000;
}
a.cid-12 {
    color: #65e76a;
}
a.cid-23 {
    color: #FFEB3B;
}

a.cid-44 {
    color: #FF5722;
}
a.cid-165 {
    color: #E91E63;
}
a.cid-24 {
    color: #00e2ff;
}
a.cid-16 {
    color: #aeff00;
}
/* Post Navigation */

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin: 20px 0;
    background: var(--bg);
    border-radius: 8px;
}

.post-navigation a {
    flex: 1;
    padding: 15px;
    background: var(--bg2);
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.post-navigation a:hover {
    background: var(--hover);
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}


/* Content Area */

article {
    background: var(--bg);
    overflow: hidden;
}


/* Archive Header */

.archive-header {
    padding: 10px;
    background: var(--bg);
    border-bottom: 2px solid var(--bg2);
}

.archive-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.archive-title svg {
    color: var(--link);
    flex-shrink: 0;
}

.archive-description {
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 15px;
}

.archive-description p {
    margin-bottom: 10px;
}

.archive-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text2);
}

.archive-count {
    background: var(--bg2);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
}


/* No Results */

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
}

.no-results p {
    color: var(--text2);
    font-size: 16px;
}

@media (min-width:1400px) {
    .aside-right {
        width: 350px;
    }
    body:not(.sidebar-hidden) .container {
        margin-right: 350px;
    }
}


/* Taxonomy Header */

.taxo-area {
    padding: 10px;
}

.taxonomy-header h1 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: var(--color-text-primary);
}


/* Model Search */

.model-search {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.model-search input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 0;
    border-radius: 8px;
    background: var(--bg2);
    color: var(--text);
}

.model-search input:focus {
    outline: none;
    border-color: var(--color-primary);
}


/* Alphabet Filter */

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 1rem 0;
    justify-content: center;
}

.letter-btn {
    padding: 8px 12px;
    border: none;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter-btn:hover {
    background: var(--hover);
    color: var(--color-text-inverse);
}

.letter-btn.active {
    background: var(--hover);
    color: var(--color-text-inverse);
}


/* Updated Taxonomy Grid Styles */

.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.taxonomy-card {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.taxonomy-card:hover {
    transform: translateY(-3px);
    background: var(--bg2);
}

.taxonomy-link {
    text-decoration: none;
    color: var(--text);
    padding: 15px;
    display: block;
}

.taxonomy-info h2 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: var(--text);
}

.taxonomy-count {
    font-size: 14px;
    color: var(--text2);
}