/* ===== QQS BLOG STYLES ===== */

/* Blog Hero Section */
.qqs-blog-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, #111827 0%, #1a365d 50%, #111827 100%);
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.qqs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 182, 231, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.qqs-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.qqs-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.qqs-hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.qqs-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.qqs-breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qqs-breadcrumb a:hover {
    color: #93c5fd;
}

.qqs-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Blog Main Layout */
.qqs-blog-main {
    padding: 4rem 0;
    background: #f8fafc;
    min-height: 80vh;
}

.qqs-blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Posts Container */
.qqs-posts-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.qqs-posts-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qqs-posts-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

.qqs-posts-count {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Posts Grid */
.qqs-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Post Card */
.qqs-post-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.qqs-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(78, 182, 231, 0.3);
}

.qqs-post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
}

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

.qqs-post-card:hover .qqs-post-img {
    transform: scale(1.1);
}

.qqs-default-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
}

.qqs-post-meta-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
}

.qqs-post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.qqs-post-category {
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qqs-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.qqs-post-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.qqs-post-title a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qqs-post-title a:hover {
    color: #4eb6e7;
}

.qqs-post-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.qqs-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.qqs-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qqs-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.qqs-author-name {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.qqs-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4eb6e7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.qqs-read-more:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

/* No Posts State */
.qqs-no-posts {
    padding: 4rem 2rem;
    text-align: center;
    color: #6b7280;
}

.qqs-no-posts-icon {
    margin: 0 auto 1.5rem;
    color: #d1d5db;
}

.qqs-no-posts h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 1rem;
}

.qqs-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4eb6e7;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.qqs-back-home:hover {
    color: #3b82f6;
    transform: translateX(-5px);
}

/* Pagination */
.qqs-pagination {
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
}

.qqs-pagination-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.qqs-pagination-nav a,
.qqs-pagination-nav span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    justify-content: center;
}

.qqs-pagination-nav a {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.qqs-pagination-nav a:hover {
    background: #4eb6e7;
    color: white;
    border-color: #4eb6e7;
    transform: translateY(-2px);
}

.qqs-pagination-nav .current {
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
    border: 1px solid #4eb6e7;
}

/* Blog Sidebar */
.qqs-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.qqs-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.qqs-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.5rem;
    position: relative;
}

.qqs-widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    border-radius: 2px;
}

/* Search Widget */
.qqs-search-input-group {
    position: relative;
    display: flex;
}

.qqs-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.qqs-search-input:focus {
    border-color: #4eb6e7;
    box-shadow: 0 0 0 3px rgba(78, 182, 231, 0.1);
}

.qqs-search-button {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    border: none;
    border-radius: 0 12px 12px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qqs-search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(78, 182, 231, 0.3);
}

/* Categories Widget */
.qqs-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qqs-category-item {
    margin-bottom: 0.5rem;
}

.qqs-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.qqs-category-link:hover {
    background: linear-gradient(135deg, rgba(78, 182, 231, 0.1), rgba(59, 130, 246, 0.1));
    color: #4eb6e7;
    border-color: rgba(78, 182, 231, 0.2);
    transform: translateX(5px);
}

.qqs-category-name {
    font-weight: 500;
}

.qqs-category-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qqs-category-link:hover .qqs-category-count {
    background: #4eb6e7;
    color: white;
}

/* Recent Posts Widget */
.qqs-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qqs-recent-post {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.qqs-recent-post:hover {
    background: white;
    border-color: rgba(78, 182, 231, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qqs-recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.qqs-recent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qqs-recent-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
}

.qqs-recent-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.qqs-recent-post-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.qqs-recent-post-title a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qqs-recent-post-title a:hover {
    color: #4eb6e7;
}

.qqs-recent-post-date {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Newsletter Widget */
.qqs-newsletter-widget {
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
    text-align: center;
}

.qqs-newsletter-widget .qqs-widget-title {
    color: white;
}

.qqs-newsletter-widget .qqs-widget-title::after {
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    transform: translateX(-50%);
}

.qqs-newsletter-icon {
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.qqs-newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.qqs-newsletter-description {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.qqs-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qqs-newsletter-input {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.qqs-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.qqs-newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.qqs-newsletter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.qqs-newsletter-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

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

/* Post Hero */
.qqs-post-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #1a365d 50%, #111827 100%);
}

.qqs-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.qqs-post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.qqs-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qqs-post-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.qqs-post-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.qqs-post-breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
}

.qqs-post-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.qqs-post-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.qqs-post-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.qqs-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.qqs-post-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qqs-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.qqs-author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.qqs-author-name {
    font-weight: 600;
    color: white;
}

.qqs-post-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.qqs-post-stats {
    display: flex;
    gap: 1.5rem;
}

.qqs-reading-time,
.qqs-post-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Post Main Content */
.qqs-post-main {
    padding: 4rem 0;
    background: #f8fafc;
}

.qqs-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.qqs-post-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qqs-post-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.qqs-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qqs-post-body {
    padding: 3rem;
    line-height: 1.8;
    color: #374151;
}

.qqs-post-body h2 {
    color: #1a365d;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 20px;
}

.qqs-post-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    border-radius: 2px;
}

.qqs-post-body h3 {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.qqs-post-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.qqs-post-body ul,
.qqs-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.qqs-post-body li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.qqs-post-body blockquote {
    background: #f8fafc;
    border-left: 4px solid #4eb6e7;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.qqs-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.qqs-post-body a {
    color: #4eb6e7;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.qqs-post-body a:hover {
    color: #3b82f6;
}

/* Page Links */
.qqs-page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.qqs-page-links-title {
    font-weight: 600;
    margin-right: 1rem;
    color: #374151;
}

.qqs-page-number {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    background: white;
    color: #4eb6e7;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.qqs-page-number:hover {
    background: #4eb6e7;
    color: white;
}

/* Tags */
.qqs-post-tags {
    padding: 2rem 3rem 0;
    border-top: 1px solid #e5e7eb;
}

.qqs-tags-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.qqs-tags-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qqs-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.qqs-tag:hover {
    background: #4eb6e7;
    color: white;
    border-color: #4eb6e7;
    transform: translateY(-2px);
}

/* Social Share */
.qqs-post-share {
    padding: 2rem 3rem;
    border-top: 1px solid #e5e7eb;
}

.qqs-share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.qqs-share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.qqs-share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.qqs-facebook {
    background: #1877f2;
    color: white;
}

.qqs-twitter {
    background: #1da1f2;
    color: white;
}

.qqs-linkedin {
    background: #0077b5;
    color: white;
}

.qqs-whatsapp {
    background: #25d366;
    color: white;
}

.qqs-copy-link {
    background: #6b7280;
    color: white;
}

.qqs-share-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Post Sidebar */
.qqs-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Author Widget */
.qqs-author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.qqs-author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
}

.qqs-author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

.qqs-author-bio {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.qqs-author-social {
    display: flex;
    gap: 0.75rem;
}

.qqs-author-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qqs-author-social-link:hover {
    background: #4eb6e7;
    color: white;
    transform: translateY(-2px);
}

/* Table of Contents */
.qqs-toc-content {
    max-height: 400px;
    overflow-y: auto;
}

.qqs-toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.qqs-toc-content a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.qqs-toc-content a:hover {
    background: #f3f4f6;
    color: #4eb6e7;
}

.qqs-toc-content .qqs-toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Related Posts */
.qqs-related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qqs-related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.qqs-related-post:hover {
    background: white;
    border-color: rgba(78, 182, 231, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qqs-related-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.qqs-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qqs-related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
}

.qqs-related-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.qqs-related-post-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.qqs-related-post-title a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qqs-related-post-title a:hover {
    color: #4eb6e7;
}

.qqs-related-post-date {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Post Navigation */
.qqs-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.qqs-nav-item {
    display: flex;
}

.qqs-nav-prev {
    justify-content: flex-start;
}

.qqs-nav-next {
    justify-content: flex-end;
}

.qqs-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    max-width: 300px;
}

.qqs-nav-link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #4eb6e7;
    transform: translateY(-2px);
}

.qqs-nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.qqs-nav-title {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.qqs-nav-link:hover .qqs-nav-title {
    color: #4eb6e7;
}

/* Comments Section */
.qqs-comments-section {
    margin-top: 3rem;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qqs-comments-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.qqs-comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

/* Comment Form */
.qqs-comment-form {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.qqs-form-group {
    margin-bottom: 1.5rem;
}

.qqs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.qqs-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.qqs-form-group input,
.qqs-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.qqs-form-group input:focus,
.qqs-form-group textarea:focus {
    outline: none;
    border-color: #4eb6e7;
    box-shadow: 0 0 0 3px rgba(78, 182, 231, 0.1);
}

.qqs-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: #ef4444;
}

.qqs-comment-submit {
    background: linear-gradient(135deg, #4eb6e7, #3b82f6);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.qqs-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 182, 231, 0.3);
}

/* Comments List */
.qqs-comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.qqs-comment:hover {
    border-left-color: #4eb6e7;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.qqs-comment-body {
    display: flex;
    gap: 1rem;
}

.qqs-comment-avatar {
    flex-shrink: 0;
}

.qqs-avatar {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.qqs-comment-content {
    flex: 1;
}

.qqs-comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.qqs-comment-author {
    font-weight: 600;
    color: #1a365d;
}

.qqs-comment-date a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
}

.qqs-comment-date a:hover {
    color: #4eb6e7;
}

.qqs-comment-awaiting-moderation {
    color: #f59e0b;
    font-size: 0.9rem;
}

.qqs-comment-text {
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
}

.qqs-comment-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.qqs-comment-actions a:hover {
    color: #4eb6e7;
}

/* Nested Comments */
.children {
    margin-top: 1.5rem;
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid #e5e7eb;
}

/* Archive Pages */
.qqs-archive-header {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qqs-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
}

.qqs-archive-description {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Search Results */
.qqs-search-results-header {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qqs-search-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.qqs-search-query {
    color: #4eb6e7;
    font-weight: 600;
}

.qqs-search-results-count {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Loading States */
.qqs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
}

.qqs-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #4eb6e7;
    border-radius: 50%;
    animation: qqs-spin 1s linear infinite;
}

@keyframes qqs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.qqs-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.qqs-message-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.qqs-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.qqs-message-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .qqs-blog-layout,
    .qqs-post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .qqs-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .qqs-hero-title,
    .qqs-post-hero-title {
        font-size: 2.5rem;
    }
    
    .qqs-post-navigation {
        grid-template-columns: 1fr;
    }
    
    .qqs-nav-prev,
    .qqs-nav-next {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .qqs-blog-main,
    .qqs-post-main {
        padding: 2rem 0;
    }
    
    .qqs-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .qqs-posts-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .qqs-post-body {
        padding: 2rem;
    }
    
    .qqs-post-share,
    .qqs-post-tags {
        padding: 1.5rem 2rem;
    }
    
    .qqs-share-buttons {
        justify-content: center;
    }
    
    .qqs-hero-title,
    .qqs-post-hero-title {
        font-size: 2rem;
    }
    
    .qqs-post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .qqs-form-row {
        grid-template-columns: 1fr;
    }
    
    .children {
        margin-left: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .qqs-hero-title,
    .qqs-post-hero-title {
        font-size: 1.8rem;
    }
    
    .qqs-hero-description {
        font-size: 1rem;
    }
    
    .qqs-post-body {
        padding: 1.5rem;
    }
    
    .qqs-comments-section {
        padding: 2rem;
    }
    
    .qqs-comment-form {
        padding: 1.5rem;
    }
    
    .qqs-share-buttons {
        gap: 0.5rem;
    }
    
    .qqs-share-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .qqs-nav-link {
        padding: 1rem;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    .qqs-blog-sidebar,
    .qqs-post-sidebar,
    .qqs-post-share,
    .qqs-post-navigation,
    .qqs-comments-section {
        display: none;
    }
    
    .qqs-blog-layout,
    .qqs-post-layout {
        grid-template-columns: 1fr;
    }
    
    .qqs-post-body {
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .qqs-post-card,
    .qqs-widget,
    .qqs-post-content {
        border: 2px solid #000;
    }
    
    .qqs-post-card:hover {
        border-color: #4eb6e7;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}