/*
Theme Name: Verses
Theme URI: https://themepure.net/wp/Verses
Author: Uttam Aron
Author URI: https://uttamaron.com/
Description: Verses is a high-performance, sophisticated WordPress theme engineered specifically for literary enthusiasts, creative writers, and digital magazines. Built with a focus on editorial excellence, it offers dedicated architectures for Poetry, Short Stories, and Periodicals. Empowered by the Kirki Customizer Framework, Verses provides an intuitive, high-fidelity design environment, enabling the creation of world-class literary communities with unmatched typographic precision and responsive elegance.
Tags: literature, poetry, magazine, blog, writers, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, translation-ready, wide-blocks
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verses
Domain Path: /languages
*/

/* WordPress core styles */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.wp-caption {
    margin-bottom: 1.5em;
    text-align: center;
    padding-top: 5px;
}

.wp-caption img {
    border: 0 none;
    padding: 0;
    margin: 0;
}

.wp-caption p.wp-caption-text {
    font-size: 0.85em;
    margin: 0.8075em 0;
}

/* ==========================================================================
   Verses No-Thumbnail Placeholder Card (Title & Author Fallback - Pure White)
   ========================================================================== */
.verses-no-thumb-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 140px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 18px 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #f1f3f5 !important;
    border-radius: inherit;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    text-decoration: none !important;
}

/* Card corner radii match */
.post-card .verses-no-thumb-card,
.card .verses-no-thumb-card,
.post-image .verses-no-thumb-card,
.archive-card .verses-no-thumb-card {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: none !important;
}

/* Home cards exact 200px height match */
.card .verses-no-thumb-card {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    border-radius: 10px 10px 0 0 !important;
}

/* Archive post-image container */
.post-image .verses-no-thumb-card {
    height: 175px !important;
    min-height: 175px !important;
    max-height: 175px !important;
}

/* Compact thumbnails (popular posts, footer, recent sidebars) */
.popular-post .verses-no-thumb-card,
.mini-post-thumb.verses-no-thumb-card,
.verses-no-thumb-card.size-thumbnail {
    min-height: 60px !important;
    height: 60px !important;
    width: 60px !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Inner content alignment */
.verses-no-thumb-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Title typography */
.verses-no-thumb-title {
    font-family: inherit !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

/* Author typography */
.verses-no-thumb-author {
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #64748b !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.verses-no-thumb-author::before {
    content: "✍ ";
    font-size: 12px;
    opacity: 0.85;
    color: #b45309;
}

/* Small thumbnail variant adjustments */
.popular-post .verses-no-thumb-card .verses-no-thumb-title,
.mini-post-thumb .verses-no-thumb-card .verses-no-thumb-title,
.verses-no-thumb-card.size-thumbnail .verses-no-thumb-title {
    font-size: 10px !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}

.popular-post .verses-no-thumb-card .verses-no-thumb-author,
.mini-post-thumb .verses-no-thumb-card .verses-no-thumb-author,
.verses-no-thumb-card.size-thumbnail .verses-no-thumb-author {
    font-size: 8.5px !important;
}

.popular-post .verses-no-thumb-card .verses-no-thumb-inner,
.verses-no-thumb-card.size-thumbnail .verses-no-thumb-inner {
    gap: 2px !important;
}

/* Card hover states */
.card:hover .verses-no-thumb-card,
.post-card:hover .verses-no-thumb-card,
.archive-card:hover .verses-no-thumb-card,
.verses-no-thumb-card:hover {
    background-color: #fafbfc !important;
}

.card:hover .verses-no-thumb-title,
.post-card:hover .verses-no-thumb-title,
.archive-card:hover .verses-no-thumb-title {
    color: #0f172a !important;
}

/* ==========================================================================
   Horizontal Drag-to-Scroll for Category Pills (.categories)
   ========================================================================== */
.site-wrapper-archive .categories,
.categories {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.site-wrapper-archive .categories.is-dragging,
.categories.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.site-wrapper-archive .categories.is-dragging *,
.categories.is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* ==========================================================================
   Verses Native Thumbnail Zoom & Full-Size Lightbox
   ========================================================================== */
.poem-featured-image-premium img,
.post-featured-image img,
.post-featured-image-left img,
.poem-featured-image img,
.single-post-thumbnail img,
.wp-post-image:not(.avatar) {
    cursor: zoom-in;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.poem-featured-image-premium:hover img,
.post-featured-image:hover img {
    transform: scale(1.012);
}

.verses-thumb-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.verses-thumb-lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.verses-thumb-lightbox-top {
    position: absolute;
    top: 18px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.verses-thumb-lightbox-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #f8fafc;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
}

.verses-thumb-lightbox-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.verses-thumb-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg) scale(1.08);
}

.verses-thumb-lightbox-stage {
    max-width: 94vw;
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

.verses-thumb-lightbox-img {
    max-width: 94vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.verses-thumb-lightbox-overlay.is-active .verses-thumb-lightbox-img {
    transform: scale(1);
}

.verses-thumb-lightbox-caption {
    margin-top: 14px;
    color: #e2e8f0;
    font-size: 15px;
    font-family: inherit;
    text-align: center;
    max-width: 800px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Global Verses Compact Toast Notification (Auto-Dismiss) */
.verses-share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e1e24;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    z-index: 999999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.verses-share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.verses-share-toast i {
    color: #22c55e;
    font-size: 15px;
}


