/*
Theme Name: Mastiwala
Theme URI: https://mastiwala.com
Author: Mastiwala
Author URI: https://mastiwala.com
Description: A lightweight video streaming WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mastiwala
Tags: video-streaming, dark-theme, custom-colors, custom-menu, featured-images
*/

:root {
    --accent: #2c58ec;
    --accent-hover: #0083ff;
    --dark-main: #070d25;
    --dark-overlay: #1a2037;
    --dark-hover: #242b47;
    --text-white: #fff;
    --text-main: #9ba5c5;
}


/* Reset and Base Styles */

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

body {
    background-color: var(--dark-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.4;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
    font-weight: 500;
}


/* Container */

.container {
    padding: 0 10px;
}


/* Header Styles */

.site-header {
    background-color: var(--dark-overlay);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-weight: 500;
}

.site-title a {
    color: var(--text-white);
    font-size: 1.5rem;
}

.main-navigation {
    margin-left: auto;
    margin-right: 2rem;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.primary-menu a {
    color: var(--text-main);
    font-weight: 500;
}

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

.search-form {
    border-radius: 8px;
    align-items: center;
    display: flex;
    padding: 0 15px;
    white-space: nowrap;
    background: var(--dark-hover);
    transition: 0.4s ease;
}

.search-form:hover {
    cursor: pointer;
}

.search-form:focus-within,
.search-form:hover {
    background: var(--dark-hover);
}

.search-form span {
    color: var(--text-main);
}

.search-form input {
    background: none;
    outline: none;
    border: none;
    width: 100%;
    margin-left: 15px;
    font-size: 1rem;
    color: var(--text-white);
    height: 40px;
}

.search-form input::placeholder {
    color: var(--text-main);
}


/* Posts Grid */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .5rem;
    margin: 1rem auto;
}

.video-card {
    position: relative;
    transition: transform 0.2s;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-card:hover {
    transform: translateY(-2px);
}

.video-card .episode-link {
    display: block;
    position: relative;
}

.video-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

a.post-card-link {
    height: 100%;
    width: 100%;
    display: block;
}

.video-card h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: .5rem;
    background: linear-gradient(transparent, rgb(0, 0, 0));
    color: #fff;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.duration {
    position: absolute;
    z-index: 5;
    right: 5px;
    bottom: 5px;
    font-size: 12px;
    color: #fff;
    background: #0000006b;
    padding: 3px 7px;
    border-radius: 3px;
    backdrop-filter: blur(10px);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ffffff;
    font-weight: lighter;
}

.play-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}


/* Footer */

.site-footer {
    border-top: 1px solid var(--dark-hover);
    padding: 1rem;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: inline-block;
}

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

.site-info {
    text-align: center;
    font-size: 0.9rem;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header-inner {
        gap: .5rem;
        text-align: center;
    }
    .main-navigation {
        margin: 1rem 0;
    }
    .primary-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .site-header {
        padding: 10px 0;
    }
    .footer-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .footer-menu a {
        padding: 0.3rem 0;
        font-size: 0.85rem;
    }
    .site-info {
        font-size: 0.85rem;
    }
    .single-main {
        flex-direction: column;
    }
}


/* Video Content Styles */

.video-content {
    background-color: var(--dark-main);
    border-radius: 8px;
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-content video {
    width: 100%;
    height: 100%;
    user-select: none;
    outline: none;
    /* Remove default outline */
}


/* Custom focus styles */

.video-content video:focus-visible {
    outline: 0;
}


/* Remove outline on click (mouse users) but keep for keyboard */

.video-content video:focus:not(:focus-visible) {
    outline: none;
}


/* Single Post Styles */

.single-main {
    display: flex;
}

.single-left {
    flex: 65%;
}

.single-right {
    flex: 35%;
}

.video-container {
    padding: 10px;
}

.video-container h1 {
    color: var(--text-white);
    font-size: 1.4em;
    line-height: 1.3;
    font-weight: 500;
}

.taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 1rem;
}

.taxonomy-list a {
    flex: auto;
    background: var(--dark-overlay);
    color: #fff;
    text-align: center;
    border-radius: 3px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taxonomy-list a:hover {
    background: var(--accent);
}

.taxonomy-list a:before {
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

a.tag-link:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M11.172 2a3 3 0 0 1 2.121.879l7.71 7.71a3.41 3.41 0 0 1 0 4.822l-5.592 5.592a3.41 3.41 0 0 1-4.822 0l-7.71-7.71A3 3 0 0 1 2 11.172V6a4 4 0 0 1 4-4zM7.5 5.5a2 2 0 0 0-1.995 1.85L5.5 7.5a2 2 0 1 0 2-2'/%3E%3C/svg%3E");
}

a.cat-link:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z'/%3E%3C/svg%3E");
}

a.model-link:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4'/%3E%3C/svg%3E");
}

a.series-link:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8.51 2h6.98c.232 0 .41 0 .566.015c1.108.109 2.015.775 2.4 1.672H5.544c.385-.897 1.292-1.563 2.4-1.672C8.098 2 8.276 2 8.51 2m-2.2 2.723c-1.39 0-2.53.84-2.91 1.954l-.024.07c.398-.12.813-.2 1.232-.253c1.08-.139 2.446-.139 4.032-.139h6.892c1.586 0 2.951 0 4.032.139c.42.054.834.132 1.232.253l-.023-.07c-.38-1.114-1.52-1.954-2.911-1.954z'/%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M15.328 7.542H8.672c-3.374 0-5.062 0-6.01.987s-.725 2.511-.278 5.56l.422 2.892c.35 2.391.525 3.587 1.422 4.303c.898.716 2.22.716 4.867.716h5.81c2.646 0 3.97 0 4.867-.716s1.072-1.912 1.422-4.303l.422-2.891c.447-3.05.67-4.574-.278-5.561s-2.636-.987-6.01-.987m-.747 8.252c.559-.346.559-1.242 0-1.588l-3.371-2.09c-.543-.337-1.21.101-1.21.794v4.18c0 .693.667 1.13 1.21.794z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.related-content {
    margin: 0 10px;
}


/*Taxonomy Styles*/

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

.taxonomy-card {
    background: var(--dark-overlay);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

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

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

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

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

.taxo-search input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid var(--dark-hover);
    border-radius: 8px;
    background: var(--dark-overlay);
    color: var(--text-white);
}

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


/* 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(--dark-overlay);
    color: var(--text-white);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.letter-btn.active {
    background: var(--accent);
    color: var(--text-white);
}


/*Home Content Styles*/

.hbtns {
    margin-bottom: 15px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

a.hbtn {
    color: var(--text-white);
    background: var(--dark-overlay);
    padding: 5px 20px;
    border-radius: 5px;
}

a.hbtn:hover {
    background: var(--accent);
}

.home-content p {
    color: var(--text-main);
    margin-bottom: 10px;
}

.home-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
    padding: 10px;
}

span#typewriter {
    color: var(--accent);
}

h2#typewriter-heading {
    font-size: 1.5rem;
}

#typewriter::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}


/* No Results Styles */

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--dark-overlay);
    border-radius: 8px;
    margin: 1rem 0;
}

.no-results .material-symbols-rounded {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: block;
}

.no-results h2 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.no-results p {
    color: var(--text-main);
    font-size: 0.9rem;
}


/* Video Meta Styles */

.video-meta {
    background-color: var(--dark-main);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 0.875rem;
}

.duration-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6l-4 2-1-2 3-1V7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}


/* Post Navigation */

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--dark-overlay);
    border-radius: 8px;
}

.nav-previous,
.nav-next {
    flex: 0 0 48%;
}

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

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.post-navigation a {
    color: var(--text-white);
    font-weight: 500;
}

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


/* Comments */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-hover);
}

.comments-title {
    color: var(--text-white);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background-color: var(--dark-main);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author {
    color: var(--text-white);
    font-weight: 500;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--text-main);
    margin-top: 0.5rem;
}

.comment-content {
    color: var(--text-main);
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--dark-main);
    border: 1px solid var(--dark-hover);
    border-radius: 4px;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.comment-form input[type="submit"] {
    background-color: var(--accent);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--accent-hover);
}


/* Mobile Menu Styles */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--dark-hover);
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    position: relative;
    transition: background-color 0.3s ease;
    margin: 0 auto;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    transition: transform 0.3s ease;
    left: 0;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] {
    background-color: var(--dark-hover);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.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;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-overlay);
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-navigation.active {
        transform: translateX(0);
        left: 0;
    }
    .primary-menu li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .main-navigation.active .primary-menu li {
        opacity: 1;
        transform: translateY(0);
    }
    .primary-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.5rem;
        color: var(--text-white);
    }
    .header-inner {
        position: relative;
    }
    .search-form-header {
        margin-top: 1rem;
        width: 100%;
    }
}


/* Search Results Styles */

.page-header {
    margin: 1rem 0;
}

.page-title {
    font-size: 1.4rem;
    color: var(--text-white);
}

.page-title span {
    color: var(--accent);
}

.taxonomy-section {
    margin-bottom: 1rem;
}

.taxonomy-section h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.taxonomy-section .taxonomy-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.search-results .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}


/* Pagination Styles */

.navigation.pagination {
    margin: 1rem 0;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border-radius: 8px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text-main);
    background: var(--dark-hover);
    border-radius: 4px;
    min-width: 35px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: var(--accent);
    color: var(--text-white);
}

.page-numbers:hover:not(.current) {
    background: var(--accent);
    color: var(--text-white);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.4rem;
    }
    .taxonomy-results h2,
    .search-results h2 {
        font-size: 1.2rem;
    }
    .taxonomy-section h3 {
        font-size: 1.1rem;
    }
    .search-results .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    .nav-links {
        gap: 3px;
        padding: 3px;
    }
    .page-numbers {
        padding: 6px 10px;
        min-width: 30px;
        font-size: 14px;
    }
}


/* Search Results Styles */

.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.taxonomy-card {
    background: var(--dark-overlay);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

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

.taxonomy-info h4 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: var(--text-white);
}

.term-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.tax-type {
    color: var(--accent);
    font-weight: 500;
}

.taxonomy-count {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .taxonomy-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .taxonomy-info h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
}


/* Page Content Styles */

.page-content {
    max-width: 800px;
    margin: 1px auto;
    padding: 1rem;
    background: var(--dark-overlay);
}

.entry-content {
    color: var(--text-main);
    line-height: 1.6;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-white);
    margin: 2rem 0 1rem;
}

.entry-content h2 {
    font-size: 1.5rem;
}

.entry-content h3 {
    font-size: 1.3rem;
}

.entry-content h4 {
    font-size: 1.1rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content figure {
    margin: 1.5rem 0;
}

.entry-content figcaption {
    color: var(--text-main);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-white);
}

.entry-content pre {
    background: var(--dark-overlay);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content code {
    background: var(--dark-overlay);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.page-links {
    margin: 1.5rem 0;
    color: var(--text-main);
}

.page-links a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0 0.2rem;
    background: var(--dark-overlay);
    border-radius: 4px;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: var(--accent);
    color: var(--text-white);
}


/* Comments Section */

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-hover);
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem 1rem;
    }
    .entry-content h2 {
        font-size: 1.3rem;
    }
    .entry-content h3 {
        font-size: 1.2rem;
    }
    .entry-content h4 {
        font-size: 1rem;
    }
    .entry-content blockquote {
        margin: 1rem 0;
        padding-left: 0.8rem;
    }
}


/* Taxonomy Widget Styles */

.taxonomy-widget {
    padding-left: 1rem;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-hover);
}

.art-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.art-list li {
    margin-bottom: 0.5rem;
    background: var(--dark-overlay);
    border-radius: 5px;
}

.art-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.art-list a:hover {
    background: var(--dark-hover);
    color: var(--text-white);
}

.art-list .count {
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.8;
}

.art-list a:hover .count {
    color: var(--text-white);
    opacity: 1;
}

@media (max-width: 768px) {
    .taxonomy-widget {
        padding: 0;
    }
    .widget-title {
        font-size: 1rem;
    }
    .art-list a {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
}


/* Thumbnail Loading Placeholder */

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: var(--dark-overlay);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff20' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Add loading animation */

.thumbnail-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}


/* Remove loading effect once image is loaded */

.thumbnail-wrapper img.loaded {
    opacity: 1;
}

.thumbnail-wrapper.loaded {
    background-image: none;
}

.thumbnail-wrapper.loaded::after {
    display: none;
}

.fluid_video_wrapper {
    width: 100% !important;
    height: 100% !important;
}