/* ============================================
   GUIALACERDA - Estilos Principais
   ============================================ */

/* Utility Animations */
.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Card hover effects */
.news-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.news-card:hover .news-card-img {
    transform: scale(1.05);
}
.news-card-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Featured card */
.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.featured-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-card:hover img {
    transform: scale(1.03);
}
.featured-card .overlay {
    transition: opacity 0.3s;
}

/* Category badge pulse */
.cat-badge {
    transition: all 0.3s;
}
.cat-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth image loading */
img {
    transition: opacity 0.3s;
}
img[loading="lazy"] {
    opacity: 0;
}
img.loaded, img:not([loading="lazy"]) {
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb a {
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--cor-principal);
}

/* Article content styles */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--cor-titulos);
}
.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--cor-titulos);
}
.article-content p {
    margin-bottom: 1.25rem;
}
.article-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    width: 100%;
    height: auto;
}
.article-content blockquote {
    border-left: 4px solid var(--cor-principal);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--cor-principal)08;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}
.article-content ul, .article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content a {
    color: var(--cor-principal);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    opacity: 0.8;
}

/* Share buttons */
.share-btn {
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.share-btn:hover {
    transform: scale(1.15);
    color: white !important;
}
.share-btn.facebook:hover { background: #1877F2; }
.share-btn.twitter:hover { background: #1DA1F2; }
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.telegram:hover { background: #0088CC; }
.share-btn.linkedin:hover { background: #0A66C2; }
.share-btn.email:hover { background: #666; }

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
}
.form-input:focus {
    outline: none;
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 3px var(--cor-principal)20;
}
.form-input::placeholder {
    color: #9ca3af;
}

/* Ticker animation for breaking news */
@media (prefers-reduced-motion: reduce) {
    .breaking-news {
        animation: none;
    }
    .animate-slide-up, .animate-fade-in, .slide-in {
        animation: none;
        opacity: 1;
    }
}
