/**
 * Blog Styles - Custom Design
 * Matches website theme colors and design
 */

/* ========== Blog List Styles ========== */
.jws-blog-page {
    background: #0a0e1a;
    min-height: 100vh;
    padding: 120px 0 60px;
}

.jws-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.post-inner {
    background: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.post-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.post-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-media a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.post-inner:hover .post-media img {
    transform: scale(1.1);
}

.jws_post_content {
    padding: 25px;
}

.post_cat {
    display: inline-block;
    background: #ef4444;
    color: white !important;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.post_cat a {
    color: white !important;
    text-decoration: none;
}

.entry-title {
    margin: 15px 0;
}

.entry-title a {
    color: white;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-decoration: none;
}

.post-inner:hover .entry-title a {
    color: #60a5fa;
}

.jws_post_excerpt {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.jws_post_meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6b7280;
    font-size: 13px;
}

.jws_post_meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jws_post_meta a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jws_post_meta a:hover {
    color: #60a5fa;
}

/* ========== Pagination ========== */
.jws-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 0 20px;
}

.jws-blog-pagination a,
.jws-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #1a1f2e;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jws-blog-pagination a:hover,
.jws-blog-pagination .current {
    background: #3b82f6;
    color: white;
}

/* ========== Single Post Styles ========== */
.jws-single-post {
    background: #0a0e1a;
    min-height: 100vh;
    padding: 100px 0 60px;
}

.jws-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

article.post {
    background: #1a1f2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Single Post Featured Image */
article.post .post-media {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #1a1f2e;
    padding: 20px;
    margin: 0;
}

article.post .post-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.jws-post-info {
    padding: 40px;
}

.jws-post-info .jws_post_meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.jws_post_meta .separator {
    width: 4px;
    height: 4px;
    background: #6b7280;
    border-radius: 50%;
}

.jws_post_meta .entry-date {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.entry_title {
    color: white;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0 25px 0;
}

.post_author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
}

.post_author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid #374151;
}

.post_author span {
    color: #9ca3af;
}

.entry-comment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: #0a0e1a;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.entry-comment:hover {
    background: #3b82f6;
    color: white;
}

.entry_content {
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
    padding: 30px 40px;
}

/* WordPress Content Styles */
.entry_content p {
    margin-bottom: 1.5em;
    color: #e5e7eb;
}

.entry_content h1,
.entry_content h2,
.entry_content h3,
.entry_content h4,
.entry_content h5,
.entry_content h6 {
    color: white;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.entry_content h1 {
    font-size: 2.5em;
}

.entry_content h2 {
    font-size: 2em;
    border-radius: 8px;
    font-style: italic;
}

.entry_content h3 {
    font-size: 1.75em;
}

.entry_content h4 {
    font-size: 1.5em;
}

.entry_content h5 {
    font-size: 1.25em;
}

.entry_content h6 {
    font-size: 1.1em;
}

/* Lists */
.entry_content ul,
.entry_content ol {
    margin: 1.5em 0;
    padding-left: 2em;
    color: #e5e7eb;
}

.entry_content ul {
    list-style-type: disc;
}

.entry_content ol {
    list-style-type: decimal;
}

.entry_content li {
    margin-bottom: 0.75em;
    line-height: 1.8;
}

.entry_content ul ul,
.entry_content ol ol,
.entry_content ul ol,
.entry_content ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.entry_content ul ul {
    list-style-type: circle;
}

.entry_content ul ul ul {
    list-style-type: square;
}

/* Links */
.entry_content a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry_content a:hover {
    color: #93c5fd;
}

/* Blockquotes */
.entry_content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: #0a0e1a;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-style: italic;
    color: #d1d5db;
}

.entry_content blockquote p {
    margin-bottom: 0.5em;
}

.entry_content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.entry_content code {
    background: #0a0e1a;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #fbbf24;
}

.entry_content pre {
    background: #0a0e1a;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.entry_content pre code {
    background: transparent;
    padding: 0;
    color: #e5e7eb;
}

/* Images */
.entry_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.entry_content figure {
    margin: 2em 0;
}

.entry_content figcaption {
    text-align: center;
    font-size: 0.9em;
    color: #9ca3af;
    margin-top: 0.5em;
    font-style: italic;
}

/* Tables */
.entry_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #0a0e1a;
    border-radius: 8px;
    overflow: hidden;
}

.entry_content th,
.entry_content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #374151;
}

.entry_content th {
    background: #1e293b;
    color: white;
    font-weight: 600;
}

.entry_content tr:last-child td {
    border-bottom: none;
}

/* Horizontal Rule */
.entry_content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #374151, transparent);
    margin: 3em 0;
}

/* Strong and Emphasis */
.entry_content strong,
.entry_content b {
    color: white;
    font-weight: 700;
}

.entry_content em,
.entry_content i {
    font-style: italic;
}

/* WordPress Alignment Classes */
.entry_content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.entry_content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.entry_content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress Galleries */
.entry_content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.entry_content .gallery-item {
    margin: 0;
}

.entry_content .gallery-caption {
    font-size: 0.85em;
    color: #9ca3af;
    margin-top: 0.5em;
}

article footer {
    padding: 30px 40px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.post-tags a {
    background: #0a0e1a;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #3b82f6;
    color: white;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.nav-post {
    background: #0a0e1a;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-post:hover {
    background: #1e293b;
    transform: translateX(-3px);
}

.nav-post.next:hover {
    transform: translateX(3px);
}

.nav-label {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-to-blog:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .jws-blog-grid {
        grid-template-columns: 1fr;
    }

    .entry_title {
        font-size: 28px;
    }

    .jws-post-info,
    .entry_content,
    article footer {
        padding: 25px;
    }

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

    article.post .post-media {
        height: auto;
    }
}