/* Estilos para elementos visuais e gráficos do blog Espectro Azul */

/* Ícones personalizados */
.icon-autism {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('../images/autism-ribbon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    vertical-align: middle;
}

/* Badges e etiquetas */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* Cards com efeitos visuais */
.card-hover-effect {
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Imagens com efeitos */
.img-rounded {
    border-radius: 10px;
}

.img-circle {
    border-radius: 50%;
}

.img-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.img-border {
    border: 3px solid var(--primary-color);
    padding: 3px;
}

/* Efeitos de destaque */
.highlight-box {
    background-color: rgba(74, 144, 226, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.highlight-box-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.highlight-box-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
}

/* Citações estilizadas */
blockquote.styled-quote {
    font-style: italic;
    position: relative;
    padding: 20px 20px 20px 60px;
    margin: 30px 0;
    background-color: var(--light-bg);
    border-radius: 8px;
}

blockquote.styled-quote:before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 80px;
    position: absolute;
    left: 20px;
    top: 10px;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Listas estilizadas */
ul.styled-list {
    list-style: none;
    padding-left: 0;
}

ul.styled-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

ul.styled-list li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Botões com ícones */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    margin-right: 8px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-left {
    animation: slideInFromLeft 0.5s ease-out;
}

@keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInFromRight 0.5s ease-out;
}

/* Tabelas estilizadas */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.styled-table thead tr {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: var(--light-bg);
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color);
}

/* Cartões de perfil */
.profile-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: white;
    transition: transform 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-title {
    color: #666;
    margin-bottom: 15px;
}

.profile-bio {
    margin-bottom: 20px;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
}

.profile-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--light-bg);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--light-bg);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--light-bg);
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--light-bg);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-bg) transparent transparent;
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Responsividade para timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::before {
        left: 60px;
        border: medium solid var(--light-bg);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--light-bg) transparent transparent;
    }
    
    .timeline-left::after, .timeline-right::after {
        left: 19px;
    }
    
    .timeline-right {
        left: 0%;
    }
}
