/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a3d 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 3em;
    color: #00ff00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #00d9ff;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Filtros */
.filters {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #00ff00;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.btn-search {
    padding: 12px 30px;
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search:hover {
    background: #00d9ff;
    transform: scale(1.05);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00ff00;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.filter-btn:hover {
    background: rgba(0, 255, 0, 0.2);
}

.filter-btn.active {
    background: #00ff00;
    color: #000;
    font-weight: bold;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #00ff00;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Card Individual */
.card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00ff00;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.4);
    border-color: #00d9ff;
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-name {
    font-size: 1.4em;
    color: #00ff00;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-info {
    margin: 8px 0;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.card-info strong {
    color: #00d9ff;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    margin-top: 5px;
}

.status.alive {
    background: #55cc44;
    color: #000;
}

.status.dead {
    background: #d63d2e;
    color: #fff;
}

.status.unknown {
    background: #9e9e9e;
    color: #fff;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.btn-page {
    padding: 12px 24px;
    background: #00ff00;
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-page:hover:not(:disabled) {
    background: #00d9ff;
    transform: scale(1.05);
}

.btn-page:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.page-info {
    font-size: 1.1em;
    color: #00ff00;
    font-weight: bold;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #00d9ff;
}

/* Responsividade */
@media (max-width: 768px) {
    .logo {
        font-size: 2em;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        max-width: 100%;
    }
    
    .pagination {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}