/**
 * Single Post Styles
 * Estilos para entradas individuales del blog
 */

/* ===========================================
   LAYOUT PRINCIPAL
   =========================================== */

.single-post-page {
    padding: 120px 0 80px;
    background: var(--color-background);
    min-height: 100vh;
}

.single-post-page .container {
    max-width: 900px;
}

/* ===========================================
   ARTÍCULO
   =========================================== */

.single-article {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* ===========================================
   HEADER
   =========================================== */

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-meta svg {
    flex-shrink: 0;
}

.entry-meta a {
    color: var(--color-text-light);
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--color-primary);
}

/* ===========================================
   IMAGEN DESTACADA
   =========================================== */

.post-thumbnail {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   CONTENIDO
   =========================================== */

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: var(--color-text);
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}

.entry-content h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--color-background);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    border-radius: var(--border-radius);
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--color-primary-dark);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content code {
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
}

/* ===========================================
   FOOTER DEL POST
   =========================================== */

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Tags */
.post-tags {
    margin-bottom: 2rem;
}

.tags-label {
    display: inline-block;
    font-weight: 600;
    color: var(--color-text);
    margin-right: 0.5rem;
}

.post-tags a {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin: 0.25rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Share Buttons */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--color-text);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-buttons a svg {
    fill: var(--color-primary);
    transition: fill 0.3s ease;
}

.share-buttons a:hover svg {
    fill: var(--color-white);
}

/* ===========================================
   POST NAVIGATION
   =========================================== */

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-navigation a {
    display: block;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ===========================================
   COMMENTS
   =========================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: var(--border-radius);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    .single-post-page {
        padding: 100px 0 60px;
    }
    
    .single-article {
        padding: 2rem 1.5rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .entry-meta {
        font-size: 0.875rem;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.5rem;
    }
    
    .single-article {
        padding: 1.5rem 1rem;
    }
    
    .share-buttons a {
        width: 40px;
        height: 40px;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
    .entry-footer,
    .post-navigation,
    .comments-area {
        display: none;
    }
    
    .single-article {
        box-shadow: none;
        padding: 0;
    }
}