/*
Theme Name: Truyện Full Audio
*/

html, body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.entry-content img {
    height: auto;
}

.entry-content * {
    line-height: 1.75rem;
    margin-bottom: 0.5rem;
    max-width: 100%;
}

.entry-content h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.entry-content h4 {
    font-size: 1.15rem;
    font-weight: 500;
}

.entry-content ul {
    list-style: disc;
    margin-left: 0.75rem;
}

.entry-content a {
    color: rgb(0 177 255);
}

#advanced-settings {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#advanced-settings.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#advanced-settings .grid.grid-cols-3 button {
    transition: all 0.2s ease;
}

#advanced-settings .grid.grid-cols-3 button.active {
    background-color: rgb(14, 165, 233) !important;
    border-color: rgb(14, 165, 233) !important;
    color: white !important;
}

#advanced-settings .flex.gap-2 {
    transition: all 0.2s ease;
    padding: 2px;
}

#advanced-settings .flex.gap-2:has(input:focus) {
    outline: none;
    box-shadow: none;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.pagination .current {
    background-color: #0ea5e9;
    color: white;
}

.pagination a.page-numbers:not(.prev):not(.next) {
    color: rgb(51 65 85);
}

.dark .pagination a.page-numbers:not(.prev):not(.next) {
    color: rgb(203 213 225);
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: white;
    border: 1px solid rgb(226 232 240);
}

.dark .pagination .prev,
.dark .pagination .next {
    background-color: rgb(30 41 59);
    border-color: rgb(51 65 85);
}

.pagination a.page-numbers:not(.dots):hover {
    background-color: rgb(241 245 249);
}

.dark .pagination a.page-numbers:not(.dots):hover {
    background-color: rgb(51 65 85);
}

.pagination .dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: rgb(148 163 184);
}

.dark .pagination .dots {
    color: rgb(100 116 139);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reader Themes */
#reader-scroll-container.theme-sepia {
    background-color: #f4ecd8 !important;
    color: #5b4636 !important;
}

#reader-scroll-container.theme-gray {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
}

html.dark #reader-scroll-container.theme-gray {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

#reader-scroll-container.theme-dark {
    background-color: #121212 !important;
    color: #e2e8f0 !important;
}

#reader-scroll-container.theme-night {
    background-color: #1a1510 !important;
    color: #e6d9b9 !important;
}

/* Zen Mode (Full Screen) helpers */
body.zen-mode {
    overflow: hidden !important;
}

body.zen-mode header,
body.zen-mode aside,
body.zen-mode .breadcrumb,
body.zen-mode #comments,
body.zen-mode footer {
    display: none !important;
}

body.zen-mode main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.zen-mode #reader-section {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
}

body.zen-mode #reader-scroll-container {
    height: auto !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive & Utility Enhancements across Mobile / Tablet / Desktop */
.group:focus-within .group-focus-within\:w-64 {
    width: 16rem;
}

@media (min-width: 1280px) {
    .xl\:w-56 {
        width: 14rem;
    }
}

@media (max-width: 639px) {
    #notice-transfer-banner .container {
        font-size: 11px;
        line-height: 1.4;
    }
}

.comment-reply-link {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.875rem;
}
.comment-reply-link:hover {
    text-decoration: underline;
}

#cancel-comment-reply-link {
    color: #ef4444;
    font-weight: 500;
    text-decoration: none;
}

.custom-comment-list .children {
    margin-left: 30px;
    border-left: 2px solid #f1f5f9;
    padding-left: 20px;
    margin-top: 20px;
}
.dark .custom-comment-list .children {
    border-color: #334155;
}
@media (max-width: 640px) {
    .custom-comment-list .children {
        margin-left: 10px;
        padding-left: 10px;
    }
}
