/* css/index.css - VERSÃO FINAL */

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    animation: fadeIn 0.5s ease-in;
}

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

/* Títulos */
.page-title {
    color: #02416D;
    font-size: 2.2rem;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #CDD071;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title i {
    color: #CDD071;
    font-size: 2.5rem;
}

.badge {
    background: #CDD071;
    color: #02416D;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

/* Grid de itens */
.itens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card de item */
.item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    border-top: 5px solid #02416D;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Imagem do item */
.item-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #02416D 0%, #CDD071 100%);
    overflow: hidden;
}

.item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-card:hover .item-card-image img {
    transform: scale(1.05);
}

.item-card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.item-card-image .no-image i {
    font-size: 4rem;
    opacity: 0.8;
}

/* Tipo do item */
.item-card-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #02416D;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

/* Conteúdo do card */
.item-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #02416D;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Detalhes do item */
.item-card-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    flex: 1;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-item i {
    width: 20px;
    text-align: center;
    color: #02416D;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-item div {
    flex: 1;
}

.detail-item strong {
    color: #02416D;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.detail-item span {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Rodapé do card */
.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.item-card-date {
    color: #666;
    font-style: italic;
    background: rgba(205, 208, 113, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.item-card-date i {
    color: #CDD071;
}

/* Botões */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 45px;
}

.btn-primary {
    background: #02416D;
    color: white;
}

.btn-primary:hover {
    background: #0268A6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(2, 65, 109, 0.3);
}

/* Mensagem quando não há itens */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin: 40px 0;
    border-top: 5px solid #02416D;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
    color: #02416D;
}

.empty-message h3 {
    color: #02416D;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.empty-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Bem-vindo admin */
.admin-welcome {
    background: rgba(205, 208, 113, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #CDD071;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s ease-out;
}

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

.admin-welcome i {
    color: #02416D;
    font-size: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .badge {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .itens-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .item-card-image {
        height: 180px;
    }
    
    .item-card-content {
        padding: 20px;
    }
    
    .item-card-title {
        font-size: 1.2rem;
    }
    
    .item-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }
    
    .item-card-image {
        height: 160px;
    }
    
    .item-card-type {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Animações */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.item-card:hover .item-card-type {
    animation: pulse 1.5s infinite;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Focus states para acessibilidade */
.btn:focus,
a:focus {
    outline: 3px solid rgba(205, 208, 113, 0.5);
    outline-offset: 2px;
}
/* Adicione estas classes se não existirem */

.itens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    border-top: 5px solid #02416D;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* E as outras classes do item-card... */