/* ============================================
   BLOG STYLES - Araxá Rodeio Show 2026
   Estilos para posts, archive e typografia
   ============================================ */

/* ============================================
   CONTAINER NARROW (for content)
   ============================================ */

.container-narrow {
    max-width: 800px;
}

/* ============================================
   SINGLE POST HEADER
   ============================================ */

.ars-post-header {
    padding: calc(var(--header-height, 80px) + 3rem) 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, #EDE7E3 100%);
}

.ars-post-categories {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ars-category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.ars-category-badge:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
}

.ars-post-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--heading-color);
    margin: 0 0 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.ars-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ars-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ars-meta-item i {
    color: var(--primary-red);
}

/* ============================================
   FEATURED IMAGE
   ============================================ */

.ars-post-featured-image {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    transform: translateY(-30px);
}

.ars-post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   POST CONTENT - Typography
   ============================================ */

.ars-post-content {
    padding: 2rem 0 4rem;
}

.ars-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.ars-post-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--heading-color);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-yellow);
}

.ars-post-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--heading-color);
    margin: 2rem 0 0.8rem;
}

.ars-post-content h4 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.ars-post-content strong,
.ars-post-content b {
    font-weight: 700;
    color: var(--text-primary);
}

.ars-post-content em,
.ars-post-content i:not([class]) {
    font-style: italic;
}

.ars-post-content a {
    color: var(--primary-red);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.ars-post-content a:hover {
    color: var(--accent-orange);
}

.ars-post-content ul,
.ars-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.ars-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.ars-post-content ul li::marker {
    color: var(--primary-red);
}

.ars-post-content ol li::marker {
    color: var(--primary-red);
    font-weight: 700;
}

/* Blockquote */
.ars-post-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 2rem 2rem 2rem 3rem;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3E0 100%);
    border-left: 5px solid var(--accent-yellow);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.ars-post-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-orange);
    opacity: 0.5;
    line-height: 1;
}

.ars-post-content blockquote p {
    margin: 0;
}

.ars-post-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Code */
.ars-post-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--primary-red);
}

.ars-post-content pre {
    background: #1A0F0A;
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.ars-post-content pre code {
    background: none;
    padding: 0;
    color: #fff;
}

/* Images in content */
.ars-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.ars-post-content figure {
    margin: 2rem 0;
}

.ars-post-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Tables */
.ars-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.ars-post-content th,
.ars-post-content td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ars-post-content th {
    background: var(--bg-color);
    font-weight: 700;
    color: var(--heading-color);
}

.ars-post-content tr:hover td {
    background: #fafafa;
}

/* Horizontal Rule */
.ars-post-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-orange), var(--accent-yellow));
    margin: 3rem 0;
    border-radius: 2px;
}

/* ============================================
   POST TAGS
   ============================================ */

.ars-post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.ars-tags-label {
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.ars-tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.ars-tag:hover {
    background: var(--primary-red);
    color: #fff;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */

.ars-post-share {
    padding: 2rem 0;
    background: var(--bg-color);
}

.ars-post-share .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ars-share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.ars-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.ars-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ars-share-facebook {
    background: #1877F2;
}

.ars-share-twitter {
    background: #1DA1F2;
}

.ars-share-whatsapp {
    background: #25D366;
}

.ars-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   AUTHOR BOX
   ============================================ */

.ars-author-box {
    padding: 3rem 0;
    background: #fff;
}

.ars-author-inner {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-red);
}

.ars-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.ars-author-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--heading-color);
    margin: 0 0 0.5rem;
}

.ars-author-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   POST NAVIGATION
   ============================================ */

.ars-post-navigation {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.ars-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .ars-nav-links {
        grid-template-columns: 1fr;
    }
}

.ars-nav-link {
    display: block;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.ars-nav-link:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-3px);
}

.ars-nav-link:hover .ars-nav-label,
.ars-nav-link:hover .ars-nav-title {
    color: #fff;
}

.ars-nav-prev {
    text-align: left;
}

.ars-nav-next {
    text-align: right;
}

.ars-nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.ars-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

/* ============================================
   RELATED POSTS
   ============================================ */

.ars-related-posts {
    padding: 4rem 0;
    background: var(--bg-color);
}

.ars-related-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 2rem;
}

.ars-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .ars-related-grid {
        grid-template-columns: 1fr;
    }
}

.ars-related-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.ars-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.ars-related-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ars-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ars-related-card:hover .ars-related-thumb img {
    transform: scale(1.1);
}

.ars-related-info {
    padding: 1.5rem;
}

.ars-related-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--heading-color);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.ars-related-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.ars-comments-section {
    padding: 4rem 0;
    background: #fff;
}

.ars-comments-section .comments-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 2rem;
}

/* ============================================
   ARCHIVE / BLOG LISTING
   ============================================ */

.ars-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .ars-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ars-blog-grid {
        grid-template-columns: 1fr;
    }
}

.ars-post-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--transition-bounce);
}

.ars-post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.ars-post-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ars-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ars-post-card:hover .ars-post-card-thumb img {
    transform: scale(1.1);
}

.ars-post-card-content {
    padding: 1.5rem;
}

.ars-post-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--heading-color);
    margin: 0 0 0.8rem;
    line-height: 1.3;
}

.ars-post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ars-post-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
}

.ars-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.ars-read-more:hover {
    color: var(--accent-orange);
    gap: 0.8rem;
}