/**
 * HumanizePress Blog Styles
 * This file is loaded ONLY on blog, archive, category, and single post pages
 * It will NOT affect the homepage or other custom pages
 */

/* ========================================
   BLOG LAYOUT & CONTAINERS
   ======================================== */

/* Main content area for blog pages */
.blog .site-content,
.archive .site-content,
.category .site-content,
.tag .site-content,
.single-post .site-content,
.search .site-content {
    padding: 20px 20px;
    min-height: 100vh;
    background: transparent;
}

/* Container max width */
.blog .container,
.archive .container,
.category .container,
.tag .container,
.single-post .container,
.search .container {
    max-width: 1200px;
    margin: 0 auto;
}

.comment-content {
    padding-top: 20px !important; 
    padding-bottom: 0 !important;
    margin-top:0px !important;
}

/* ========================================
   BLOG PAGE HEADER
   ======================================== */

.blog-page-header,
.page-header,
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 80px 30px 60px;
    background: linear-gradient(135deg,
        rgba(147, 51, 234, 0.15) 0%,
        rgba(167, 139, 250, 0.05) 50%,
        rgba(17, 24, 39, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.blog-page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.blog-page-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #a78bfa, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}

.blog-page-description {
    color: #d1d5db;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.page-header .page-title,
.archive-header .archive-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #a78bfa, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.2;
}

.archive-description {
    color: #d1d5db;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   CATEGORY FILTER BAR
   ======================================== */

.category-filter {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.category-list li {
    margin: 0;
}

.category-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 25px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-list a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.2), transparent);
    transition: left 0.5s;
}

.category-list a:hover::before {
    left: 100%;
}

.category-list a:hover,
.category-list .active a {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(139, 92, 246, 0.2));
    border-color: #9333ea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(147, 51, 234, 0.3);
}

.category-list .active a {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
}

.category-list .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
}

.category-list .active .count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ========================================
   FEATURED POST SECTION
   ======================================== */

.featured-post-section {
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05) 0%, transparent 100%);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(17, 24, 39, 0.6);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(147, 51, 234, 0.2);
    transition: all 0.3s;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

.featured-post-image {
    height: 400px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.1);
}

.featured-post-content {
    padding: 40px;
}

.featured-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.featured-post-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-post-title a {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(to right, #fff, #fff);
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s;
}

.featured-post-title a:hover {
    background-size: 100% 2px;
}

.featured-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #9ca3af;
    font-size: 0.95rem;
}

.featured-post-excerpt {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ========================================
   BLOG POST GRID LAYOUT
   ======================================== */

.blog-posts-container {
    padding: 40px 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.blog main.site-main,
.archive main.site-main,
.category main.site-main,
.tag main.site-main,
.search main.site-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

/* ========================================
   BLOG POST CARD STYLES - MODERN DESIGN
   ======================================== */

.blog-post-card,
.blog article.post,
.blog article.type-post,
.archive article.post,
.archive article.type-post,
.category article.post,
.category article.type-post,
.tag article.post,
.tag article.type-post,
.search article.post,
.search article.type-post {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7) 0%, rgba(31, 41, 55, 0.5) 100%);
    border: 1px solid rgba(147, 51, 234, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.blog-post-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #a78bfa, #9333ea);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.blog-post-card:hover::before {
    opacity: 1;
}

.blog-post-card:hover,
.blog article.post:hover,
.blog article.type-post:hover,
.archive article.post:hover,
.archive article.type-post:hover,
.category article.post:hover,
.category article.type-post:hover,
.tag article.post:hover,
.tag article.type-post:hover,
.search article.post:hover,
.search article.type-post:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(147, 51, 234, 0.4);
    border-color: rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.6) 100%);
}

/* Featured Image Container */
.post-image,
.post-thumbnail,
article .attachment-post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.post-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #000000);
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

article.post:hover .post-image-container img,
article.type-post:hover .post-image-container img {
    transform: scale(1.08);
}

/* Post Content Wrapper */
.post-content,
.blog .inside-article,
.archive .inside-article,
.category .inside-article,
.tag .inside-article,
.search .inside-article {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Post Categories */
.blog .entry-meta.cat-links,
.archive .entry-meta.cat-links,
.category .entry-meta.cat-links,
.tag .entry-meta.cat-links,
.search .entry-meta.cat-links {
    margin-bottom: 15px;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(147, 51, 234, 0.15);
    color: #a78bfa;
    border-radius: 25px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cat-links a:hover,
.tags-links a:hover {
    background: rgba(147, 51, 234, 0.25);
    border-color: #9333ea;
    color: #c4b5fd;
    transform: translateY(-2px);
}

/* Post Title */
.blog .entry-title,
.archive .entry-title,
.category .entry-title,
.tag .entry-title,
.search .entry-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.blog .entry-title a,
.archive .entry-title a,
.category .entry-title a,
.tag .entry-title a,
.search .entry-title a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover,
.category .entry-title a:hover,
.tag .entry-title a:hover,
.search .entry-title a:hover {
    background: linear-gradient(to right, #a78bfa, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Post Excerpt */
.blog .entry-summary,
.archive .entry-summary,
.category .entry-summary,
.tag .entry-summary,
.search .entry-summary {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Post Meta (Date & Author) */
.blog .entry-meta,
.archive .entry-meta,
.category .entry-meta,
.tag .entry-meta,
.search .entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9ca3af;
    font-size: 0.9rem;
    padding-top: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(31, 41, 55, 0.5);
}

.posted-on a,
.author a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.posted-on a:hover,
.author a:hover {
    color: #a78bfa;
}

/* Read More Link */
.read-more-link,
a.read-more,
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(to right, #a78bfa, #9333ea);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: 20px;
}

.read-more-link:hover,
a.read-more:hover,
.more-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3);
}

/* ========================================
   NO POSTS FOUND
   ======================================== */

.no-posts-found {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.6) 0%, rgba(31, 41, 55, 0.4) 100%);
    border-radius: 20px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    margin: 40px auto;
    max-width: 600px;
}

.no-posts-found h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #a78bfa, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-posts-found p {
    color: #d1d5db;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-posts-found .button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.no-posts-found .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

/* ========================================
   PAGINATION
   ======================================== */

.blog-pagination,
.pagination,
.nav-links,
.paging-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 60px 0;
    padding: 30px 0;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 12px 18px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(31, 41, 55, 0.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.page-numbers:hover,
.nav-links a:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.2);
}

.page-numbers.current,
.nav-links .current {
    background: linear-gradient(to right, #a78bfa, #9333ea);
    border-color: #9333ea;
    color: white;
}

/* ========================================
   SINGLE POST STYLES
   ======================================== */

.single-post article.post {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(31, 41, 55, 0.8);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* Single Post Header */
.single-post .entry-header {
    padding: 50px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(167, 139, 250, 0.03));
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
    text-align: center;
}

.single-post .entry-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.2;
}

.single-post .entry-meta {
    justify-content: center;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Single Post Featured Image */
.single-post .post-thumbnail {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

/* Single Post Content */
.single-post .entry-content {
    padding: 50px;
    color: #d1d5db;
    font-size: 1.15rem;
    line-height: 1.8;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
    color: #ffffff;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
}

.single-post .entry-content h2 {
    font-size: 2.2rem;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(147, 51, 234, 0.3);
}

.single-post .entry-content h3 {
    font-size: 1.7rem;
}

.single-post .entry-content p {
    margin-bottom: 24px;
}

.single-post .entry-content a {
    color: #a78bfa;
    text-decoration: underline;
    transition: color 0.3s;
}

.single-post .entry-content a:hover {
    color: #c4b5fd;
}

/* Blockquotes */
.single-post .entry-content blockquote {
    margin: 35px 0;
    padding: 25px 30px;
    background: rgba(147, 51, 234, 0.08);
    border-left: 4px solid #9333ea;
    font-style: italic;
    color: #d1d5db;
    border-radius: 8px;
}

/* Code Blocks */
.single-post .entry-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(31, 41, 55, 0.8);
    border-radius: 10px;
    padding: 25px;
    overflow-x: auto;
    margin: 30px 0;
}

.single-post .entry-content code {
    background: rgba(147, 51, 234, 0.15);
    color: #a78bfa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;
}

.single-post .entry-content pre code {
    background: none;
    color: #d1d5db;
    padding: 0;
}

/* Lists */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 25px 0 25px 30px;
}

.single-post .entry-content ul li,
.single-post .entry-content ol li {
    margin-bottom: 12px;
    color: #d1d5db;
}

/* Images */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px 0;
}

/* Post Footer */
.single-post .entry-footer {
    padding: 40px 50px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(31, 41, 55, 0.5);
}

/* Post Navigation */
.post-navigation {
    margin: 50px 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation a {
    display: block;
    padding: 25px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(31, 41, 55, 0.8);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.post-navigation a:hover {
    border-color: #9333ea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.2);
}

.post-navigation .post-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.post-navigation .meta-nav {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

/* ========================================
   COMMENTS SECTION - REDDIT STYLE
   ======================================== */

.comments-area {
    margin-top: 50px;
    padding: 0;
    background: transparent;
    border: none;
}

.comments-title,
.comment-reply-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

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

/* Individual Comments - Modern Creative Design */
.comment {
    margin-bottom: 16px;
    padding: 0;
    border: none;
    position: relative;
}

.comment-body {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.5) 0%, rgba(31, 41, 55, 0.3) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(147, 51, 234, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent on hover */
.comment-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.05), transparent);
    transition: left 0.6s ease;
}

.comment-body:hover::before {
    left: 100%;
}

.comment-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
}

/* Comment Header - Modern Horizontal Layout */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    
}

/* Avatar with gradient border */
.comment-meta .avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #9333ea, #c084fc) border-box;
}

/* Author info container */
.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

/* Username styling - larger and bolder */
.comment-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author .fn {
    background: linear-gradient(135deg, #a78bfa, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.comment-author .fn a {
    color: inherit;
    text-decoration: none;
}

.comment-author .fn:hover,
.comment-author .fn a:hover {
    transform: translateX(2px);
}

/* Verified badge (optional) */
.comment-author::after {
    content: "✓";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
    margin-left: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.comment-author.verified::after {
    opacity: 1;
}

/* Time with modern styling */
.comment-metadata {
    color: #6b7280;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.comment-metadata::before {
    content: "🕐";
    font-size: 0.7rem;
    opacity: 0.5;
}

.comment-metadata a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: #9ca3af;
}

.comment-metadata time {
    color: inherit;
}

/* Edit link - modern style */
.edit-link {
    position: absolute;
    right: 20px;
    top: 20px;
}

.comment-edit-link {
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    opacity: 0;
}

.comment-body:hover .comment-edit-link {
    opacity: 1;
}

.comment-edit-link:hover {
    background: rgba(147, 51, 234, 0.1);
    color: #a78bfa;
}

/* Comment Content - Minimal padding */
.comment-content {
    padding-left: 0;
    color: #e5e7eb;
    position: relative;
}

.comment-content p {
    line-height: 1.7;
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: #d1d5db;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Modern Action Buttons Container */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* Reply button - Modern Glassmorphism Style */
.comment-content .reply {
    margin-top: 0;
    padding-left: 0;
    display: inline-block;
}

.reply a,
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(147, 51, 234, 0.08);
    backdrop-filter: blur(10px);
    color: #a78bfa;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.reply a::before,
.comment-reply-link::before {
    content: "💬";
    font-size: 0.85rem;
}

.reply a:hover,
.comment-reply-link:hover {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

/* Like/Vote buttons (decorative) */
.comment-actions {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.comment-actions::before {
    content: "👍";
    font-size: 0.9rem;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-actions:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

/* Reaction count (decorative) */
.comment-actions::after {
    content: "12";
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Nested Comments - Modern Thread Design */
.children {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 20px;
    margin-top: 16px;
    position: relative;
}

/* Modern thread indicator with gradient */
.children::before {
    content: "";
    position: absolute;
    left: -10px;
    top: -8px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(147, 51, 234, 0.4) 0%,
        rgba(147, 51, 234, 0.2) 50%,
        rgba(147, 51, 234, 0.05) 100%
    );
    border-radius: 2px;
    transition: all 0.3s;
}

/* Thread connector dot */
.children .comment::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 28px;
    width: 4px;
    height: 4px;
    background: #9333ea;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.children .comment:hover::before {
    opacity: 1;
}

/* Interactive thread line on hover */
.children:hover::before {
    background: linear-gradient(180deg,
        rgba(147, 51, 234, 0.6) 0%,
        rgba(147, 51, 234, 0.3) 100%
    );
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

/* Depth-based styling with subtle differences */
.depth-2 .comment-body {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.45) 0%, rgba(31, 41, 55, 0.25) 100%);
    transform: scale(0.98);
}

.depth-3 .comment-body {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.4) 0%, rgba(31, 41, 55, 0.2) 100%);
    transform: scale(0.97);
}

.depth-4 .comment-body {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.35) 0%, rgba(31, 41, 55, 0.15) 100%);
    transform: scale(0.96);
}

.depth-5 .comment-body {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.3) 0%, rgba(31, 41, 55, 0.1) 100%);
    transform: scale(0.95);
}

/* Nested comment avatars get smaller */
.depth-2 .comment-meta .avatar {
    width: 36px;
    height: 36px;
}

.depth-3 .comment-meta .avatar {
    width: 32px;
    height: 32px;
}

.depth-4 .comment-meta .avatar,
.depth-5 .comment-meta .avatar {
    width: 28px;
    height: 28px;
}

/* Comment Edit Link */
.comment-edit-link {
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.comment-edit-link:hover {
    background: rgba(147, 51, 234, 0.1);
    color: #a78bfa;
}

/* Comment Form - Reddit Style */
.comment-respond {
    background: rgba(17, 24, 39, 0.4);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid rgba(147, 51, 234, 0.15);
}

.comment-reply-title {
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.comment-form {
    margin: 0;
}

.comment-form p {
    margin-bottom: 12px;
}

.comment-form label {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Comment textarea first - Reddit style */
.comment-form-comment {
    margin-bottom: 16px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    min-height: 100px;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
}

.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-form textarea:focus {
    outline: none;
    border-color: #9333ea;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

/* Stack the input fields vertically - Reddit style */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form input[type="url"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: #9333ea;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

/* Optional fields note */
.comment-form-url label::after {
    content: " (optional)";
    color: #6b7280;
    font-size: 0.8rem;
}

/* Submit button area - Reddit style */
.form-submit {
    margin: 20px 0 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-form .submit {
    padding: 8px 20px;
    background: #9333ea;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
}

.comment-form .submit:hover {
    background: #a855f7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.comment-form .submit:active {
    transform: translateY(0);
}

/* Markdown support note - Reddit style */
.comment-form-comment::after {
    content: "Markdown supported";
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 6px;
}

/* Cookie consent checkbox */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #9333ea;
}

.comment-form-cookies-consent label {
    display: inline;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Cancel reply link */
#cancel-comment-reply-link {
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.2s;
}

#cancel-comment-reply-link:hover {
    color: #ef4444;
}

/* Logged in as */
.logged-in-as {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.logged-in-as a {
    color: #a78bfa;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* Comment notes */
.comment-notes {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* No comments yet */
.no-comments {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    background: rgba(17, 24, 39, 0.3);
    border-radius: 12px;
    margin: 30px 0;
}

/* Pingbacks and Trackbacks */
.pingback .comment-body,
.trackback .comment-body {
    background: rgba(17, 24, 39, 0.2);
    padding: 12px;
    font-size: 0.9rem;
}

.pingback .comment-body::before,
.trackback .comment-body::before {
    content: "🔗";
    margin-right: 8px;
}

/* Comment awaiting moderation */
.comment-awaiting-moderation {
    color: #fbbf24;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
    border-left: 3px solid #fbbf24;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */

/* Main sidebar containers */
.blog .sidebar,
.archive .sidebar,
.category .sidebar,
.tag .sidebar,
.single-post .sidebar,
.search .sidebar,
.blog .widget-area,
.archive .widget-area,
.category .widget-area,
.tag .widget-area,
.single-post .widget-area,
.search .widget-area {
    background: transparent !important;
}

/* Inside sidebar wrapper */
.blog .inside-right-sidebar,
.archive .inside-right-sidebar,
.category .inside-right-sidebar,
.tag .inside-right-sidebar,
.single-post .inside-right-sidebar,
.search .inside-right-sidebar,
.blog .inside-left-sidebar,
.archive .inside-left-sidebar,
.category .inside-left-sidebar,
.tag .inside-left-sidebar,
.single-post .inside-left-sidebar,
.search .inside-left-sidebar {
    background: rgba(17, 24, 39, 0.4);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(147, 51, 234, 0.15);
    backdrop-filter: blur(10px);
}

/* Individual widgets */
.blog .widget,
.archive .widget,
.category .widget,
.tag .widget,
.single-post .widget,
.search .widget {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.blog .widget:hover,
.archive .widget:hover,
.category .widget:hover,
.tag .widget:hover,
.single-post .widget:hover,
.search .widget:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
}

.blog .widget:last-child,
.archive .widget:last-child,
.category .widget:last-child,
.tag .widget:last-child,
.single-post .widget:last-child,
.search .widget:last-child {
    margin-bottom: 0;
}

/* Widget titles */
.blog .widget-title,
.archive .widget-title,
.category .widget-title,
.tag .widget-title,
.single-post .widget-title,
.search .widget-title,
.blog .wp-block-heading,
.archive .wp-block-heading,
.category .wp-block-heading,
.tag .wp-block-heading,
.single-post .wp-block-heading,
.search .wp-block-heading {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #9333ea, transparent) 1;
    position: relative;
}

/* Search Widget Styling - Modern Single Input with Icon */
.blog .widget_search form,
.archive .widget_search form,
.category .widget_search form,
.tag .widget_search form,
.single-post .widget_search form,
.search .widget_search form,
.blog .wp-block-search,
.archive .wp-block-search,
.category .wp-block-search,
.tag .wp-block-search,
.single-post .wp-block-search,
.search .wp-block-search {
    position: relative;
    width: 100%;
}

.blog .wp-block-search__label,
.archive .wp-block-search__label,
.category .wp-block-search__label,
.tag .wp-block-search__label,
.single-post .wp-block-search__label,
.search .wp-block-search__label {
    display: none;
}

.blog .wp-block-search__inside-wrapper,
.archive .wp-block-search__inside-wrapper,
.category .wp-block-search__inside-wrapper,
.tag .wp-block-search__inside-wrapper,
.single-post .wp-block-search__inside-wrapper,
.search .wp-block-search__inside-wrapper {
    position: relative;
    width: 100%;
}

.blog .widget_search input[type="search"],
.archive .widget_search input[type="search"],
.category .widget_search input[type="search"],
.tag .widget_search input[type="search"],
.single-post .widget_search input[type="search"],
.search .widget_search input[type="search"],
.blog .wp-block-search__input,
.archive .wp-block-search__input,
.category .wp-block-search__input,
.tag .wp-block-search__input,
.single-post .wp-block-search__input,
.search .wp-block-search__input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: #ffffff;
    padding: 12px 45px 12px 16px; /* Extra padding on right for icon */
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog .widget_search input[type="search"]:focus,
.archive .widget_search input[type="search"]:focus,
.category .widget_search input[type="search"]:focus,
.tag .widget_search input[type="search"]:focus,
.single-post .widget_search input[type="search"]:focus,
.search .widget_search input[type="search"]:focus,
.blog .wp-block-search__input:focus,
.archive .wp-block-search__input:focus,
.category .wp-block-search__input:focus,
.tag .wp-block-search__input:focus,
.single-post .wp-block-search__input:focus,
.search .wp-block-search__input:focus {
    outline: none;
    border-color: #9333ea;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.blog .widget_search input[type="search"]::placeholder,
.archive .widget_search input[type="search"]::placeholder,
.category .widget_search input[type="search"]::placeholder,
.tag .widget_search input[type="search"]::placeholder,
.single-post .widget_search input[type="search"]::placeholder,
.search .widget_search input[type="search"]::placeholder,
.blog .wp-block-search__input::placeholder,
.archive .wp-block-search__input::placeholder,
.category .wp-block-search__input::placeholder,
.tag .wp-block-search__input::placeholder,
.single-post .wp-block-search__input::placeholder,
.search .wp-block-search__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Style the search button as an icon inside the input */
.blog .widget_search button,
.archive .widget_search button,
.category .widget_search button,
.tag .widget_search button,
.single-post .widget_search button,
.search .widget_search button,
.blog .wp-block-search__button,
.archive .wp-block-search__button,
.category .wp-block-search__button,
.tag .wp-block-search__button,
.single-post .wp-block-search__button,
.search .wp-block-search__button {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 0;
    overflow: hidden;
}

/* Add magnifying glass icon using CSS */
.blog .wp-block-search__button::before,
.archive .wp-block-search__button::before,
.category .wp-block-search__button::before,
.tag .wp-block-search__button::before,
.single-post .wp-block-search__button::before,
.search .wp-block-search__button::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-3px, -3px);
}

.blog .wp-block-search__button::after,
.archive .wp-block-search__button::after,
.category .wp-block-search__button::after,
.tag .wp-block-search__button::after,
.single-post .wp-block-search__button::after,
.search .wp-block-search__button::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    background: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) translate(6px, 6px);
}

.blog .widget_search button:hover,
.archive .widget_search button:hover,
.category .widget_search button:hover,
.tag .widget_search button:hover,
.single-post .widget_search button:hover,
.search .widget_search button:hover,
.blog .wp-block-search__button:hover,
.archive .wp-block-search__button:hover,
.category .wp-block-search__button:hover,
.tag .wp-block-search__button:hover,
.single-post .wp-block-search__button:hover,
.search .wp-block-search__button:hover {
    background: rgba(147, 51, 234, 0.2);
    color: #c4b5fd;
    transform: translateY(-50%) scale(1.1);
}

/* Hide button text */
.blog .wp-block-search__button,
.archive .wp-block-search__button,
.category .wp-block-search__button,
.tag .wp-block-search__button,
.single-post .wp-block-search__button,
.search .wp-block-search__button {
    text-indent: -9999px;
}

/* Alternative SVG icon approach (will work if theme supports it) */
.blog .wp-block-search__button svg,
.archive .wp-block-search__button svg,
.category .wp-block-search__button svg,
.tag .wp-block-search__button svg,
.single-post .wp-block-search__button svg,
.search .wp-block-search__button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Focus state for accessibility */
.blog .wp-block-search__button:focus,
.archive .wp-block-search__button:focus,
.category .wp-block-search__button:focus,
.tag .wp-block-search__button:focus,
.single-post .wp-block-search__button:focus,
.search .wp-block-search__button:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

/* Recent Posts Widget */
.blog .wp-block-latest-posts,
.archive .wp-block-latest-posts,
.category .wp-block-latest-posts,
.tag .wp-block-latest-posts,
.single-post .wp-block-latest-posts,
.search .wp-block-latest-posts,
.blog .widget_recent_entries ul,
.archive .widget_recent_entries ul,
.category .widget_recent_entries ul,
.tag .widget_recent_entries ul,
.single-post .widget_recent_entries ul,
.search .widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog .wp-block-latest-posts li,
.archive .wp-block-latest-posts li,
.category .wp-block-latest-posts li,
.tag .wp-block-latest-posts li,
.single-post .wp-block-latest-posts li,
.search .wp-block-latest-posts li,
.blog .widget_recent_entries li,
.archive .widget_recent_entries li,
.category .widget_recent_entries li,
.tag .widget_recent_entries li,
.single-post .widget_recent_entries li,
.search .widget_recent_entries li {
    margin-bottom: 15px;
    padding: 12px 0 12px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.blog .wp-block-latest-posts li::before,
.archive .wp-block-latest-posts li::before,
.category .wp-block-latest-posts li::before,
.tag .wp-block-latest-posts li::before,
.single-post .wp-block-latest-posts li::before,
.search .wp-block-latest-posts li::before,
.blog .widget_recent_entries li::before,
.archive .widget_recent_entries li::before,
.category .widget_recent_entries li::before,
.tag .widget_recent_entries li::before,
.single-post .widget_recent_entries li::before,
.search .widget_recent_entries li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #9333ea;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.blog .wp-block-latest-posts li:hover,
.archive .wp-block-latest-posts li:hover,
.category .wp-block-latest-posts li:hover,
.tag .wp-block-latest-posts li:hover,
.single-post .wp-block-latest-posts li:hover,
.search .wp-block-latest-posts li:hover,
.blog .widget_recent_entries li:hover,
.archive .widget_recent_entries li:hover,
.category .widget_recent_entries li:hover,
.tag .widget_recent_entries li:hover,
.single-post .widget_recent_entries li:hover,
.search .widget_recent_entries li:hover {
    padding-left: 30px;
    border-left-color: #9333ea;
    background: rgba(147, 51, 234, 0.05);
}

.blog .wp-block-latest-posts li:hover::before,
.archive .wp-block-latest-posts li:hover::before,
.category .wp-block-latest-posts li:hover::before,
.tag .wp-block-latest-posts li:hover::before,
.single-post .wp-block-latest-posts li:hover::before,
.search .wp-block-latest-posts li:hover::before,
.blog .widget_recent_entries li:hover::before,
.archive .widget_recent_entries li:hover::before,
.category .widget_recent_entries li:hover::before,
.tag .widget_recent_entries li:hover::before,
.single-post .widget_recent_entries li:hover::before,
.search .widget_recent_entries li:hover::before {
    opacity: 1;
    left: 8px;
}

.blog .wp-block-latest-posts__post-title,
.archive .wp-block-latest-posts__post-title,
.category .wp-block-latest-posts__post-title,
.tag .wp-block-latest-posts__post-title,
.single-post .wp-block-latest-posts__post-title,
.search .wp-block-latest-posts__post-title,
.blog .widget_recent_entries a,
.archive .widget_recent_entries a,
.category .widget_recent_entries a,
.tag .widget_recent_entries a,
.single-post .widget_recent_entries a,
.search .widget_recent_entries a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    transition: all 0.3s ease;
}

.blog .wp-block-latest-posts__post-title:hover,
.archive .wp-block-latest-posts__post-title:hover,
.category .wp-block-latest-posts__post-title:hover,
.tag .wp-block-latest-posts__post-title:hover,
.single-post .wp-block-latest-posts__post-title:hover,
.search .wp-block-latest-posts__post-title:hover,
.blog .widget_recent_entries a:hover,
.archive .widget_recent_entries a:hover,
.category .widget_recent_entries a:hover,
.tag .widget_recent_entries a:hover,
.single-post .widget_recent_entries a:hover,
.search .widget_recent_entries a:hover {
    color: #a78bfa;
}

/* Recent Comments Widget */
.blog .wp-block-latest-comments,
.archive .wp-block-latest-comments,
.category .wp-block-latest-comments,
.tag .wp-block-latest-comments,
.single-post .wp-block-latest-comments,
.search .wp-block-latest-comments,
.blog .widget_recent_comments ul,
.archive .widget_recent_comments ul,
.category .widget_recent_comments ul,
.tag .widget_recent_comments ul,
.single-post .widget_recent_comments ul,
.search .widget_recent_comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog .wp-block-latest-comments__comment,
.archive .wp-block-latest-comments__comment,
.category .wp-block-latest-comments__comment,
.tag .wp-block-latest-comments__comment,
.single-post .wp-block-latest-comments__comment,
.search .wp-block-latest-comments__comment,
.blog .widget_recent_comments li,
.archive .widget_recent_comments li,
.category .widget_recent_comments li,
.tag .widget_recent_comments li,
.single-post .widget_recent_comments li,
.search .widget_recent_comments li {
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid #9333ea;
    transition: all 0.3s ease;
}

.blog .wp-block-latest-comments__comment:hover,
.archive .wp-block-latest-comments__comment:hover,
.category .wp-block-latest-comments__comment:hover,
.tag .wp-block-latest-comments__comment:hover,
.single-post .wp-block-latest-comments__comment:hover,
.search .wp-block-latest-comments__comment:hover,
.blog .widget_recent_comments li:hover,
.archive .widget_recent_comments li:hover,
.category .widget_recent_comments li:hover,
.tag .widget_recent_comments li:hover,
.single-post .widget_recent_comments li:hover,
.search .widget_recent_comments li:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(5px);
    border-left-width: 5px;
}

.blog .wp-block-latest-comments__comment-meta,
.archive .wp-block-latest-comments__comment-meta,
.category .wp-block-latest-comments__comment-meta,
.tag .wp-block-latest-comments__comment-meta,
.single-post .wp-block-latest-comments__comment-meta,
.search .wp-block-latest-comments__comment-meta {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.4;
}

.blog .wp-block-latest-comments__comment-author,
.archive .wp-block-latest-comments__comment-author,
.category .wp-block-latest-comments__comment-author,
.tag .wp-block-latest-comments__comment-author,
.single-post .wp-block-latest-comments__comment-author,
.search .wp-block-latest-comments__comment-author,
.blog .widget_recent_comments .comment-author-link,
.archive .widget_recent_comments .comment-author-link,
.category .widget_recent_comments .comment-author-link,
.tag .widget_recent_comments .comment-author-link,
.single-post .widget_recent_comments .comment-author-link,
.search .widget_recent_comments .comment-author-link {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog .wp-block-latest-comments__comment-author:hover,
.archive .wp-block-latest-comments__comment-author:hover,
.category .wp-block-latest-comments__comment-author:hover,
.tag .wp-block-latest-comments__comment-author:hover,
.single-post .wp-block-latest-comments__comment-author:hover,
.search .wp-block-latest-comments__comment-author:hover,
.blog .widget_recent_comments .comment-author-link:hover,
.archive .widget_recent_comments .comment-author-link:hover,
.category .widget_recent_comments .comment-author-link:hover,
.tag .widget_recent_comments .comment-author-link:hover,
.single-post .widget_recent_comments .comment-author-link:hover,
.search .widget_recent_comments .comment-author-link:hover {
    color: #c4b5fd;
}

.blog .wp-block-latest-comments__comment-link,
.archive .wp-block-latest-comments__comment-link,
.category .wp-block-latest-comments__comment-link,
.tag .wp-block-latest-comments__comment-link,
.single-post .wp-block-latest-comments__comment-link,
.search .wp-block-latest-comments__comment-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.blog .wp-block-latest-comments__comment-link:hover,
.archive .wp-block-latest-comments__comment-link:hover,
.category .wp-block-latest-comments__comment-link:hover,
.tag .wp-block-latest-comments__comment-link:hover,
.single-post .wp-block-latest-comments__comment-link:hover,
.search .wp-block-latest-comments__comment-link:hover {
    color: #d1d5db;
}

/* Categories Widget */
.blog .widget_categories ul,
.archive .widget_categories ul,
.category .widget_categories ul,
.tag .widget_categories ul,
.single-post .widget_categories ul,
.search .widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog .widget_categories li,
.archive .widget_categories li,
.category .widget_categories li,
.tag .widget_categories li,
.single-post .widget_categories li,
.search .widget_categories li {
    margin-bottom: 12px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.blog .widget_categories li:hover,
.archive .widget_categories li:hover,
.category .widget_categories li:hover,
.tag .widget_categories li:hover,
.single-post .widget_categories li:hover,
.search .widget_categories li:hover {
    background: rgba(147, 51, 234, 0.1);
    transform: translateX(5px);
}

.blog .widget_categories a,
.archive .widget_categories a,
.category .widget_categories a,
.tag .widget_categories a,
.single-post .widget_categories a,
.search .widget_categories a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.blog .widget_categories a:hover,
.archive .widget_categories a:hover,
.category .widget_categories a:hover,
.tag .widget_categories a:hover,
.single-post .widget_categories a:hover,
.search .widget_categories a:hover {
    color: #a78bfa;
}

/* Post count in categories */
.blog .widget_categories .count,
.archive .widget_categories .count,
.category .widget_categories .count,
.tag .widget_categories .count,
.single-post .widget_categories .count,
.search .widget_categories .count {
    background: rgba(147, 51, 234, 0.2);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tag Cloud Widget */
.blog .tagcloud a,
.archive .tagcloud a,
.category .tagcloud a,
.tag .tagcloud a,
.single-post .tagcloud a,
.search .tagcloud a,
.blog .wp-block-tag-cloud a,
.archive .wp-block-tag-cloud a,
.category .wp-block-tag-cloud a,
.tag .wp-block-tag-cloud a,
.single-post .wp-block-tag-cloud a,
.search .wp-block-tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 6px 10px 0;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.blog .tagcloud a:hover,
.archive .tagcloud a:hover,
.category .tagcloud a:hover,
.tag .tagcloud a:hover,
.single-post .tagcloud a:hover,
.search .tagcloud a:hover,
.blog .wp-block-tag-cloud a:hover,
.archive .wp-block-tag-cloud a:hover,
.category .wp-block-tag-cloud a:hover,
.tag .wp-block-tag-cloud a:hover,
.single-post .wp-block-tag-cloud a:hover,
.search .wp-block-tag-cloud a:hover {
    background: rgba(147, 51, 234, 0.3);
    border-color: #9333ea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

/* Archives Widget */
.blog .widget_archive ul,
.archive .widget_archive ul,
.category .widget_archive ul,
.tag .widget_archive ul,
.single-post .widget_archive ul,
.search .widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog .widget_archive li,
.archive .widget_archive li,
.category .widget_archive li,
.tag .widget_archive li,
.single-post .widget_archive li,
.search .widget_archive li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
    transition: all 0.3s ease;
}

.blog .widget_archive li:hover,
.archive .widget_archive li:hover,
.category .widget_archive li:hover,
.tag .widget_archive li:hover,
.single-post .widget_archive li:hover,
.search .widget_archive li:hover {
    padding-left: 10px;
}

.blog .widget_archive a,
.archive .widget_archive a,
.category .widget_archive a,
.tag .widget_archive a,
.single-post .widget_archive a,
.search .widget_archive a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog .widget_archive a:hover,
.archive .widget_archive a:hover,
.category .widget_archive a:hover,
.tag .widget_archive a:hover,
.single-post .widget_archive a:hover,
.search .widget_archive a:hover {
    color: #a78bfa;
}

/* Calendar Widget */
.blog .widget_calendar table,
.archive .widget_calendar table,
.category .widget_calendar table,
.tag .widget_calendar table,
.single-post .widget_calendar table,
.search .widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.blog .widget_calendar caption,
.archive .widget_calendar caption,
.category .widget_calendar caption,
.tag .widget_calendar caption,
.single-post .widget_calendar caption,
.search .widget_calendar caption {
    padding: 10px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 8px 8px 0 0;
}

.blog .widget_calendar th,
.archive .widget_calendar th,
.category .widget_calendar th,
.tag .widget_calendar th,
.single-post .widget_calendar th,
.search .widget_calendar th {
    padding: 8px;
    color: #a78bfa;
    font-weight: 600;
    text-align: center;
}

.blog .widget_calendar td,
.archive .widget_calendar td,
.category .widget_calendar td,
.tag .widget_calendar td,
.single-post .widget_calendar td,
.search .widget_calendar td {
    padding: 8px;
    text-align: center;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.blog .widget_calendar td:hover,
.archive .widget_calendar td:hover,
.category .widget_calendar td:hover,
.tag .widget_calendar td:hover,
.single-post .widget_calendar td:hover,
.search .widget_calendar td:hover {
    background: rgba(147, 51, 234, 0.1);
    color: #ffffff;
}

.blog .widget_calendar #today,
.archive .widget_calendar #today,
.category .widget_calendar #today,
.tag .widget_calendar #today,
.single-post .widget_calendar #today,
.search .widget_calendar #today {
    background: rgba(147, 51, 234, 0.3);
    color: #ffffff;
    font-weight: 600;
    border-radius: 50%;
}

/* Text Widget */
.blog .widget_text .textwidget,
.archive .widget_text .textwidget,
.category .widget_text .textwidget,
.tag .widget_text .textwidget,
.single-post .widget_text .textwidget,
.search .widget_text .textwidget {
    color: #d1d5db;
    line-height: 1.6;
}

.blog .widget_text .textwidget p,
.archive .widget_text .textwidget p,
.category .widget_text .textwidget p,
.tag .widget_text .textwidget p,
.single-post .widget_text .textwidget p,
.search .widget_text .textwidget p {
    margin-bottom: 15px;
}

.blog .widget_text .textwidget a,
.archive .widget_text .textwidget a,
.category .widget_text .textwidget a,
.tag .widget_text .textwidget a,
.single-post .widget_text .textwidget a,
.search .widget_text .textwidget a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog .widget_text .textwidget a:hover,
.archive .widget_text .textwidget a:hover,
.category .widget_text .textwidget a:hover,
.tag .widget_text .textwidget a:hover,
.single-post .widget_text .textwidget a:hover,
.search .widget_text .textwidget a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .blog-posts-grid,
    .blog main.site-main,
    .archive main.site-main,
    .category main.site-main,
    .tag main.site-main {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        height: 300px;
    }

    .category-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .category-list::-webkit-scrollbar {
        height: 4px;
    }

    .category-list::-webkit-scrollbar-thumb {
        background: rgba(147, 51, 234, 0.3);
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    /* Headers */
    .page-header .page-title,
    .archive-header .archive-title {
        font-size: 2.5rem;
    }

    .single-post .entry-title {
        font-size: 2rem;
    }

    /* Grid Layout */
    .blog main.site-main,
    .archive main.site-main,
    .category main.site-main,
    .tag main.site-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Single Post */
    .single-post .entry-header {
        padding: 30px 20px;
    }

    .single-post .entry-content {
        padding: 30px 20px;
        font-size: 1.05rem;
    }

    /* Comments */
    .comments-area {
        padding: 30px 20px;
    }

    .comment-body {
        flex-direction: column;
    }

    /* Post Navigation */
    .post-navigation .nav-links {
        flex-direction: column;
    }

    /* Sidebar */
    .sidebar .widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* Headers */
    .page-header,
    .archive-header {
        padding: 40px 20px;
    }

    .page-header .page-title,
    .archive-header .archive-title {
        font-size: 2rem;
    }

    /* Post Cards */
    .blog .inside-article,
    .archive .inside-article,
    .category .inside-article,
    .tag .inside-article {
        padding: 20px;
    }

    .blog .entry-title,
    .archive .entry-title,
    .category .entry-title,
    .tag .entry-title {
        font-size: 1.5rem;
    }

    /* Single Post */
    .single-post .entry-content h2 {
        font-size: 1.7rem;
    }

    .single-post .entry-content h3 {
        font-size: 1.4rem;
    }
}

/* ========================================
   GENERATEPRESS SPECIFIC OVERRIDES
   ======================================== */

/* Back to Top Button */
.generate-back-to-top {
    background: linear-gradient(to right, #a78bfa, #9333ea) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3) !important;
}

.generate-back-to-top:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4) !important;
}

/* Remove GeneratePress background colors */
.sidebar,
.widget-area,
.footer-widgets {
    background: transparent !important;
}