﻿/* wwwroot/css/index-styles.css */

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-header {
    animation: fadeInDown 1s ease-in-out;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    }

.list-group-item {
    padding: 0.4rem 0;
}

.card-header {
    font-weight: 600;
    border-bottom: none;
}

.card-body {
    border-radius: 0 0 0.375rem 0.375rem;
}

.compact-card-body {
    padding: 0.6rem;
}

.ultra-compact-card-body {
    padding: 0.4rem;
}

.badge {
    font-size: 0.85rem;
}

.progress-bar {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Body and layout adjustments for proper footer push */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Override container and content-wrapper for Index page */
.container {
    width: 1200px !important; /* Set exact width to 1200px */
    max-width: 1200px !important; /* Override Bootstrap's max-width */
    margin-left: 0 !important; /* Left-justify */
    margin-right: auto !important; /* Allow right margin to stretch */
    flex: 1; /* Grow to fill available space, pushing footer down */
    /* Removed max-height: 85vh; to allow content to expand fully */
}

.content-wrapper {
    max-width: 1200px !important; /* Override layout's max-width */
    margin-left: 0 !important; /* Left-justify */
    margin-right: auto !important; /* Allow right margin to stretch */
    flex: 1; /* Ensure content grows */
}

.card {
    max-height: none; /* Allow cards to expand without height limits */
}

/* Media Query */
@media (max-width: 1200px) {
    .container {
        width: 100% !important; /* Allow container to shrink on smaller screens */
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0 !important; /* Keep left-justified */
        margin-right: auto !important;
    }

    .content-wrapper {
        max-width: 100% !important;
        margin-left: 0 !important; /* Keep left-justified */
        margin-right: auto !important;
    }

    .card {
        margin-bottom: 0.5rem;
    }

    .display-4 {
        font-size: 1.6rem;
    }

    .progress {
        margin-bottom: 0.4rem;
    }
}

/* RSS-specific styles */
.accordion-button {
    font-weight: 600;
}

.accordion-body .list-group-item {
    padding: 1rem;
}

    .accordion-body .list-group-item:last-child {
        border-bottom: none;
    }

/* Footer override to prevent overlap - make it static and push to bottom with flex */
.footer {
    position: static !important; /* Override absolute positioning */
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    margin-top: auto; /* Push to bottom in flex context */
    flex-shrink: 0; /* Prevent shrinking */
}
