/* Article Page Specific Styles */

/* Importando variáveis de cor do styles.css */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-color: #333;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

.full-article {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out forwards;
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 15px 0;
    color: var(--text-color);
    animation: slideInRight 0.5s ease-out forwards;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-feature-image {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-feature-image:hover img {
    transform: scale(1.03);
}

.article-content-full {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.article-content-full p {
    margin-bottom: 20px;
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
}

.article-content-full h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

.article-content-full h2:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.article-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    padding: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    background-color: #f9f9f9;
}

/* Blockquote Style */
blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    font-style: italic;
    position: relative;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0 8px 8px 0;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
}

blockquote p {
    position: relative;
    z-index: 1;
}

blockquote cite {
    display: block;
    font-style: normal;
    font-weight: bold;
    margin-top: 10px;
    color: #555;
}

/* Specifications Table Style */
.article-specs {
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.article-specs h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.article-specs table {
    width: 100%;
    border-collapse: collapse;
}

.article-specs th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.article-specs th:first-child {
    border-top-left-radius: 5px;
}

.article-specs th:last-child {
    border-top-right-radius: 5px;
}

.article-specs td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.article-specs tr:last-child td {
    border-bottom: none;
}

.article-specs tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.article-specs tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.article-tags {
    margin: 40px 0 20px;
}

.article-tags h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.article-tags a {
    display: inline-block;
    background-color: #f1f5f9;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.share-article {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-article h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    color: #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-buttons a:hover {
    transform: translateY(-5px);
}

.social-buttons a.facebook:hover {
    background-color: #3b5999;
    color: white;
}

.social-buttons a.twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.social-buttons a.whatsapp:hover {
    background-color: #25d366;
    color: white;
}

.social-buttons a.telegram:hover {
    background-color: #0088cc;
    color: white;
}

.social-buttons a.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.related-articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Aplicando animações para diferentes elementos */
.article-content-full p:nth-child(1) { animation-delay: 0.1s; }
.article-content-full p:nth-child(2) { animation-delay: 0.2s; }
.article-content-full p:nth-child(3) { animation-delay: 0.3s; }
.article-content-full p:nth-child(4) { animation-delay: 0.4s; }
.article-content-full p:nth-child(5) { animation-delay: 0.5s; }

.article-content-full h2 {
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .full-article {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-image-gallery {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 15px;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content-full {
        padding: 15px;
    }
    
    .share-article, .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-article h3, .article-tags h3 {
        margin-bottom: 10px;
    }
} 