/* 
 * CSS específico para a página "Aconteceu na VS²"
 * VS2 Theme - Aconteceu Styles
 */

/* Introdução da página aconteceu */
.page-intro {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e1e1e1;
}

.page-intro p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

/* Container principal dos eventos */
.aconteceu-container {
    margin-top: 20px;
}

/* Introdução com contador */
.aconteceu-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.aconteceu-count {
    margin: 0;
    font-size: 1.1em;
    color: #555;
}

.aconteceu-count strong {
    color: #0073aa;
    font-size: 1.2em;
}

/* Grid de eventos */
.aconteceu-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item individual do evento */
.aconteceu-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 80px;
    position: relative;
}

.aconteceu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.aconteceu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.02) 0%, rgba(255, 102, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.aconteceu-item:hover::before {
    opacity: 1;
}

/* Número do evento */
.aconteceu-numero {
    flex: 0 0 80px;
    height: 80px;
    background: linear-gradient(135deg, #0073aa 0%, #005a8a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    border-right: 1px solid #e1e1e1;
    position: relative;
    z-index: 1;
}

.aconteceu-item:nth-child(even) .aconteceu-numero {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
}

/* Conteúdo do evento */
.aconteceu-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* Título do evento */
.aconteceu-titulo {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

.aconteceu-titulo a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.aconteceu-titulo a:hover {
    color: #0073aa;
}

.aconteceu-item:hover .aconteceu-titulo a {
    color: #0073aa;
}

/* Meta informações do evento */
.aconteceu-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.aconteceu-data {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* Paginação dos eventos */
.aconteceu-pagination {
    text-align: center;
    margin: 30px 0 20px 0;
    padding: 20px 0;
    border-top: 2px solid #e1e1e1;
}

.aconteceu-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid #e1e1e1;
}

.aconteceu-pagination .page-numbers:hover,
.aconteceu-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.aconteceu-pagination .page-numbers.prev,
.aconteceu-pagination .page-numbers.next {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

.aconteceu-pagination .page-numbers.prev:hover,
.aconteceu-pagination .page-numbers.next:hover {
    background: #e55a00;
    border-color: #e55a00;
}

/* Estado sem eventos */
.no-aconteceu {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 12px;
    border: 2px dashed #ddd;
    color: #666;
}

.no-aconteceu-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-aconteceu h3 {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.5em;
}

.no-aconteceu p {
    margin-bottom: 25px;
    font-size: 1.05em;
    color: #777;
}

/* Instruções para adicionar eventos */
.aconteceu-instructions {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    margin: 25px auto 0;
    max-width: 500px;
    text-align: left;
}

.aconteceu-instructions p {
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

.aconteceu-instructions ol {
    margin: 15px 0 25px 0;
    padding-left: 20px;
}

.aconteceu-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.aconteceu-instructions strong {
    color: #333;
}

.btn-adicionar-aconteceu {
    display: inline-block;
    background: linear-gradient(135deg, #0073aa 0%, #005a8a 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.3);
}

.btn-adicionar-aconteceu:hover {
    background: linear-gradient(135deg, #005a8a 0%, #004670 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

/* Efeitos especiais */
.aconteceu-item {
    position: relative;
    overflow: hidden;
}

.aconteceu-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 115, 170, 0.05), transparent);
    transition: right 0.6s ease;
}

.aconteceu-item:hover::after {
    right: 100%;
}

/* Indicador visual para posts recentes */
.aconteceu-item.evento-recente {
    border-left: 4px solid #ff6600;
}

.aconteceu-item.evento-recente .aconteceu-numero {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
}

.aconteceu-item.evento-recente::after {
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.05), transparent);
}

/* Responsivo para tablets */
@media (max-width: 1024px) {
    .aconteceu-intro {
        padding: 18px;
    }
    
    .aconteceu-grid {
        gap: 10px;
    }
    
    .aconteceu-item {
        min-height: 70px;
    }
    
    .aconteceu-numero {
        flex: 0 0 70px;
        height: 70px;
        font-size: 1.1em;
    }
    
    .aconteceu-content {
        padding: 15px 20px;
    }
    
    .aconteceu-titulo {
        font-size: 1.05em;
    }
    
    .aconteceu-instructions {
        padding: 20px;
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .aconteceu-container {
        margin-top: 15px;
    }
    
    .aconteceu-intro {
        padding: 15px;
    }
    
    .aconteceu-count {
        font-size: 1em;
    }
    
    .aconteceu-grid {
        gap: 8px;
    }
    
    .aconteceu-item {
        min-height: 60px;
        flex-direction: column;
        text-align: center;
    }
    
    .aconteceu-numero {
        flex: none;
        width: 100%;
        height: 50px;
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
        font-size: 1em;
    }
    
    .aconteceu-content {
        padding: 15px;
        width: 100%;
    }
    
    .aconteceu-titulo {
        font-size: 1em;
    }
    
    .aconteceu-meta {
        justify-content: center;
        font-size: 0.85em;
    }
    
    .aconteceu-pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 3px;
        font-size: 0.9em;
    }
    
    .no-aconteceu {
        padding: 40px 20px;
    }
    
    .no-aconteceu-icon {
        font-size: 3em;
    }
    
    .aconteceu-instructions {
        padding: 20px 15px;
        margin: 20px auto 0;
    }
    
    .aconteceu-instructions ol {
        padding-left: 15px;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    .aconteceu-intro {
        padding: 12px;
    }
    
    .aconteceu-numero {
        height: 45px;
        font-size: 0.9em;
    }
    
    .aconteceu-content {
        padding: 12px;
    }
    
    .aconteceu-titulo {
        font-size: 0.95em;
    }
    
    .aconteceu-meta {
        font-size: 0.8em;
    }
    
    .aconteceu-pagination {
        margin: 20px 0 15px 0;
        padding: 15px 0;
    }
    
    .aconteceu-pagination .page-numbers {
        padding: 6px 10px;
        margin: 0 2px;
        font-size: 0.85em;
    }
    
    .no-aconteceu {
        padding: 30px 15px;
    }
    
    .aconteceu-instructions {
        padding: 15px;
    }
    
    .btn-adicionar-aconteceu {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Animações */
.aconteceu-item {
    animation: fadeInUp 0.6s ease-out;
}

.aconteceu-item:nth-child(2) {
    animation-delay: 0.05s;
}

.aconteceu-item:nth-child(3) {
    animation-delay: 0.1s;
}

.aconteceu-item:nth-child(4) {
    animation-delay: 0.15s;
}

.aconteceu-item:nth-child(5) {
    animation-delay: 0.2s;
}

.aconteceu-item:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .aconteceu-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 10px;
        min-height: auto;
        transform: none;
    }
    
    .aconteceu-item::before,
    .aconteceu-item::after {
        display: none;
    }
    
    .aconteceu-pagination {
        display: none;
    }
    
    .aconteceu-numero {
        background: #666 !important;
        color: white !important;
    }
    
    .btn-adicionar-aconteceu {
        display: none;
    }
}