/**
 * Estilos de Título de Artigos - Blog iNoveFast
 * Diferentes variações visuais para títulos de artigos
 */

/* ========== Estilo Base do Título ========== */
.article-title {
    margin: 2rem 0 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-title h1 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

/* ========== 1. Modern Gradient (Padrão) ========== */
.article-title.modern-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.article-title.modern-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.article-title.modern-gradient h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ========== 2. Classic Professional ========== */
.article-title.classic {
    background: #ffffff;
    color: #1a1a1a;
    border-left: 6px solid #0d6efd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-title.classic h1 {
    color: #1a1a1a;
    font-weight: 700;
}

/* ========== 3. Minimal Clean ========== */
.article-title.minimal {
    background: transparent;
    color: #2c3e50;
    border-bottom: 3px solid #e9ecef;
    padding: 1.5rem 0;
    box-shadow: none;
}

.article-title.minimal h1 {
    color: #2c3e50;
    font-weight: 600;
}

/* ========== 4. Bold Shadow ========== */
.article-title.bold-shadow {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(245, 87, 108, 0.4);
    transform: translateY(0);
}

.article-title.bold-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(245, 87, 108, 0.5);
}

.article-title.bold-shadow h1 {
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
    font-weight: 800;
}

/* ========== 5. Elegant Dark ========== */
.article-title.elegant {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
    border-top: 3px solid #3498db;
}

.article-title.elegant h1 {
    color: #ecf0f1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.article-title.elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
}

/* ========== 6. Colorful Vibrant ========== */
.article-title.colorful {
    background: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(250, 139, 255, 0.4);
    animation: colorful-glow 3s ease-in-out infinite;
}

@keyframes colorful-glow {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(250, 139, 255, 0.4);
    }
    50% {
        box-shadow: 0 12px 35px rgba(43, 210, 255, 0.5);
    }
}

.article-title.colorful h1 {
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    font-weight: 700;
}

/* ========== Estilos Customizados (cores dinâmicas) ========== */
.article-title.custom {
    /* Cores aplicadas dinamicamente via inline style */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
}

/* ========== Meta Info dentro do título ========== */
.article-title .article-meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-title.classic .article-meta,
.article-title.minimal .article-meta {
    border-top-color: rgba(0,0,0,0.1);
}

.article-title .article-meta a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.article-title .article-meta a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ========== Badges dentro do título ========== */
.article-title .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
    font-weight: 500;
    border-radius: 0.5rem;
}

/* Ajustes para badges em títulos escuros */
.article-title.modern-gradient .badge,
.article-title.bold-shadow .badge,
.article-title.colorful .badge,
.article-title.elegant .badge {
    background: rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

/* Ajustes para badges em títulos claros */
.article-title.classic .badge,
.article-title.minimal .badge {
    background: #0d6efd !important;
    color: #ffffff !important;
}

/* ========== Excerpt dentro do título ========== */
.article-title .lead {
    margin-top: 1.25rem;
    opacity: 0.95;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ========== Social Share dentro do título ========== */
.article-title .social-share {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.article-title.classic .social-share,
.article-title.minimal .social-share {
    border-top-color: rgba(0,0,0,0.1);
}

.article-title .social-share .btn {
    border-color: rgba(255,255,255,0.3);
    color: inherit;
}

.article-title .social-share .btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.article-title.classic .social-share .btn,
.article-title.minimal .social-share .btn {
    border-color: rgba(0,0,0,0.2);
    color: #495057;
}

.article-title.classic .social-share .btn:hover,
.article-title.minimal .social-share .btn:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.3);
}

/* ========== Tags dentro do título ========== */
.article-title .article-tags {
    margin-top: 1rem;
}

.article-title .article-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ========== Responsividade ========== */
@media (max-width: 768px) {
    .article-title {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 0.75rem;
    }
    
    .article-title h1 {
        font-size: 1.75rem;
    }
    
    .article-title .lead {
        font-size: 1rem;
    }
    
    .article-title .social-share {
        flex-wrap: wrap;
    }
    
    .article-title .social-share .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .article-title {
        padding: 1rem;
    }
    
    .article-title h1 {
        font-size: 1.5rem;
    }
}

/* ========== Animações de entrada ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-title {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== Efeito hover sutil ========== */
.article-title:not(.minimal) {
    cursor: default;
}

.article-title.modern-gradient:hover,
.article-title.bold-shadow:hover,
.article-title.colorful:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ========== Print styles ========== */
@media print {
    .article-title {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
    
    .article-title .social-share {
        display: none;
    }
}
