/* Custom styles for Horus Heresy Resin Tracker */

.legion-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.legion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.refresh-btn {
    transition: transform 0.2s ease-in-out;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

/* Legion-specific styling */
.faction-loyalist {
    border-color: var(--bs-info) !important;
}

.faction-traitor {
    border-color: var(--bs-warning) !important;
}

/* Stock status indicators */
.stock-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.stock-in {
    background-color: var(--bs-success);
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.3);
}

.stock-out {
    background-color: var(--bs-danger);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Loading animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body .row.text-center {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .legion-card .card-header h5 {
        font-size: 1rem;
    }
}

/* Badge styling */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Image styling for product thumbnails */
.product-image {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-light);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-light);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Button improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Card improvements */
.card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Feature card styling for home page */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    background: var(--bs-dark);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.feature-icon {
    opacity: 0.8;
}

.feature-list {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.feature-item {
    margin-bottom: 0.5rem;
    color: var(--bs-secondary);
}

/* Video card styling */
.video-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    background: var(--bs-dark);
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-thumbnail {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.video-thumbnail img {
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover .play-overlay {
    opacity: 0.8;
}

.video-meta .badge {
    font-size: 0.7rem;
}

/* Legion grid styling */
.legion-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
