/* General Styles */
body {
    background-color: #f8f9fa;
}

/* Card customizations */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-header {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* Badge colors */
.bg-version {
    background-color: #28a745;
}

.bg-mc-version {
    background-color: #6f42c1;
}

.bg-type-stable {
    background-color: #007bff;
}

.bg-type-beta {
    background-color: #fd7e14;
}

.bg-type-alpha {
    background-color: #dc3545;
}

/* Release cards */
.release-body {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.release-body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* List view */
.list-view .release-item {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.list-view .card {
    flex-direction: row;
}

.list-view .card-header {
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 0;
    border-right: 1px solid rgba(0,0,0,.125);
}

.list-view .card-header .badge {
    margin-bottom: 5px;
    width: 120px;
    text-align: center;
}

.list-view .card-body {
    flex: 1;
}

.list-view .release-body {
    max-height: 60px;
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #343a40;
    color: white;
}

/* Pagination */
.page-link {
    color: #343a40;
    border-radius: 4px;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: #343a40;
    border-color: #343a40;
}

.pagination .goto-page-input {
    min-width: 50px;
    max-width: 80px;
    text-align: center;
    height: 31px;
}

.pagination .goto-page-btn {
    height: 31px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved mobile pagination */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .page-item:not(.active):not(.goto-page-item) {
        display: none;
    }
    
    .page-item.active, 
    .page-item:first-child, 
    .page-item:nth-child(2), 
    .page-item:nth-last-child(3), 
    .page-item:nth-last-child(2) {
        display: block;
    }
    
    .pagination .goto-page-input {
        width: 40px !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .list-view .card {
        flex-direction: column;
    }
    
    .list-view .card-header {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,.125);
    }
    
    .list-view .card-header .badge {
        margin-right: 5px;
        margin-bottom: 0;
        width: auto;
    }
} 