/* Article Page Styles */

.article-page {
    padding: 20px 0 50px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span:last-child {
    color: var(--text-color);
    font-weight: 500;
}

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.article-main {
    background: var(--white);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.article-category a {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.meta-left .separator {
    color: #ddd;
}

.meta-left .author {
    font-weight: 600;
    color: var(--text-color);
}

.meta-right .share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

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

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

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-summary {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #555;
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
    border-radius: 4px;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 35px 0 20px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

/* Stili per immagini nell'editor */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content figure {
    margin: 25px 0;
}

.article-content figure img {
    margin: 0;
}

.article-content figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* Tabelle dall'editor */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-content table th,
.article-content table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--secondary-color);
}

.article-content table tr:hover {
    background: #f8f9fa;
}

/* Link nell'editor */
.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content a:hover {
    color: #c0392b;
}

.article-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.share-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.share-bottom strong {
    color: var(--text-color);
}

.share-bottom a {
    color: #666;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-bottom a:hover {
    background: var(--primary-color);
    color: white;
}

.related-articles {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-image {
    height: 140px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 15px;
}

.related-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 8px;
}

.related-content h4:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 12px;
    color: #999;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-article {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-article h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 6px;
}

.sidebar-article h4:hover {
    color: var(--primary-color);
}

.sidebar-date {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 968px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-main {
        padding: 25px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .share-bottom {
        flex-wrap: wrap;
    }
}

/* ====================================
   ESPACIOS PUBLICITARIOS
   ==================================== */

.ad-space {
    margin: 35px 0;
    padding: 25px 0;
    text-align: center;
}

.ad-space-top {
    border-bottom: 1px solid #eee;
    margin-top: 25px;
}

.ad-space-middle {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 40px 0;
}

.ad-space-bottom {
    border-top: 1px solid #eee;
    margin-bottom: 30px;
}

.ad-label {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.ad-placeholder {
    background: #f8f8f8;
    padding: 30px 40px;
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 8px;
    max-width: 728px;
    width: 100%;
}

.ad-placeholder p {
    margin: 5px 0;
    color: #999;
    font-size: 14px;
}

/* Responsive ads */
@media (max-width: 768px) {
    .ad-space {
        margin: 25px -20px;
        padding: 20px 0;
    }
    
    .ad-placeholder {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 0;
    }
}

