/* ========================================
   JZDS Blog - Main Styles
   ======================================== */

:root {
    --jz-lime: #ddff19;
    --jz-teal: #03b4b2;
    --jz-white: #ffffff;
    --jz-black: #000000;
    --jz-dark: #0a0a0a;
    --jz-glass: rgba(255, 255, 255, 0.03);
    --jz-glass-light: rgba(255, 255, 255, 0.05);
    --font-primary: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background: var(--jz-dark);
    color: var(--jz-white);
    line-height: 1.6;
}

/* Hero Blog */
.blog-hero {
    padding: 120px 20px 80px;
    background: transparent;
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--jz-white);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buscador */
.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--jz-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
}

.blog-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: var(--jz-white);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.blog-search input:focus {
    outline: none;
}

.blog-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-search {
    background: var(--jz-lime);
    color: var(--jz-black);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: var(--jz-white);
    transform: scale(1.05);
}

/* Contenido Principal */
.blog-content {
    padding: 80px 20px;
    background: transparent;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 50px;
}

.post-card {
    background: var(--jz-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--jz-teal);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.post-image {
    position: relative;
    height: 280px;
    background: var(--jz-dark-card);
    overflow: hidden;
}

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

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

.post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.05);
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--jz-teal);
    color: var(--jz-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-content {
    padding: 35px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: var(--jz-white);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--jz-lime);
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read-more {
    color: var(--jz-lime);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.btn-read-more:hover {
    gap: 12px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-mini {
    background: rgba(221, 255, 25, 0.1);
    color: var(--jz-lime);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(221, 255, 25, 0.2);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: var(--jz-glass);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    font-size: 1.3rem;
    color: var(--jz-white);
    margin-bottom: 20px;
    font-weight: 800;
}

/* Categorías */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--jz-glass-light);
    color: var(--jz-white);
}

.count {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

/* Tags Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: rgba(3, 180, 178, 0.1);
    color: var(--jz-teal);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(3, 180, 178, 0.2);
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--jz-teal);
    color: var(--jz-white);
}

/* Newsletter */
.widget-newsletter p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 15px;
    background: var(--jz-glass-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--jz-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--jz-teal);
}

.btn-subscribe {
    background: var(--jz-lime);
    color: var(--jz-black);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: var(--jz-white);
    transform: translateY(-2px);
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-pagination {
    background: var(--jz-glass);
    color: var(--jz-white);
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-pagination:hover {
    background: var(--jz-glass-light);
    border-color: var(--jz-teal);
}

.page-number {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: var(--jz-glass);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.no-posts h3 {
    color: var(--jz-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-posts p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        order: 2;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 80px 20px 60px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ========================================
   Single Post Page
   ======================================== */

.post-header {
    padding: 120px 20px 40px;
    background: transparent;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.post-breadcrumb a {
    color: var(--jz-teal);
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: var(--jz-lime);
}

.post-breadcrumb .current {
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-header .post-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--jz-white);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-header .post-excerpt {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* Post Body Content - Enhanced for SEO */
.post-content {
    padding: 40px 20px 80px;
    background: transparent;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    color: var(--jz-white);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Reset para contenido guardado desde editor */
.post-body > * {
    margin-bottom: 16px;
}

/* Títulos - Jerarquía clara para SEO */
.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
    color: var(--jz-white);
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.3;
}

.post-body h1 { font-size: 2.5rem; font-weight: 800; color: var(--jz-lime); }
.post-body h2 { font-size: 2rem; }
.post-body h3 { font-size: 1.5rem; }
.post-body h4 { font-size: 1.25rem; color: var(--jz-teal); }
.post-body h5 { font-size: 1.1rem; }
.post-body h6 { font-size: 1rem; }

/* Párrafos */
.post-body p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Texto enfatizado - Negritas destacadas */
.post-body strong, .post-body b {
    font-weight: 700;
    color: var(--jz-lime);
    background: rgba(221, 255, 25, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.post-body em, .post-body i {
    font-style: italic;
    color: #fff;
}

.post-body u {
    text-decoration: underline;
    text-decoration-color: var(--jz-teal);
}

.post-body s, .post-body strike, .post-body del {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

/* Listas - Bullets y números */
.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.post-body ul { list-style-type: disc; }
.post-body ol { list-style-type: decimal; }

.post-body li {
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 8px;
}

.post-body li::marker { color: var(--jz-teal); }

/* Links */
.post-body a {
    color: var(--jz-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body a:hover { color: var(--jz-lime); }

/* Blockquote - Citas destacadas */
.post-body blockquote {
    border-left: 4px solid var(--jz-teal);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(3, 180, 178, 0.08);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0 8px 8px 0;
}

/* Code */
.post-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--jz-lime);
}

.post-body pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

/* Imágenes */
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

/* Tablas */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.post-body th, .post-body td {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.post-body th {
    background: rgba(3, 180, 178, 0.15);
    font-weight: 600;
    color: var(--jz-teal);
}

/* Divisores */
.post-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 32px 0;
}

/* Bold and strong */
.post-body strong, .post-body b {
    font-weight: 700;
    color: var(--jz-lime);
}

.post-body em, .post-body i {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* Lists */
.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.post-body ul li {
    list-style-type: disc;
}

.post-body ol li {
    list-style-type: decimal;
}

/* Subrayado */
.post-body u {
    text-decoration: underline;
    text-decoration-color: var(--jz-teal);
}

/* Tachado */
.post-body s, .post-body strike {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

.post-body a {
    color: var(--jz-teal);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--jz-lime);
}

.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.post-body blockquote {
    border-left: 4px solid var(--jz-teal);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.post-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

/* Post Tags */
.post-tags {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags .tag {
    background: var(--jz-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--jz-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    background: var(--jz-teal);
    color: var(--jz-black);
    border-color: var(--jz-teal);
}

/* Post Share */
.post-share {
    max-width: 800px;
    margin: 30px auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.post-share a {
    color: var(--jz-teal);
    text-decoration: none;
    font-weight: 500;
}

.post-share a:hover {
    color: var(--jz-lime);
}

/* Related Posts */
.related-posts {
    padding: 60px 20px 80px;
    background: rgba(0, 0, 0, 0.2);
}

.related-posts .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--jz-white);
    text-align: center;
    margin-bottom: 40px;
}
