/* Module: utilities.css — helper classes, spacing, badges, tags, pagination, value score badge, log terminal, misc */

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    background-color: #2d3741;
    padding: 15px 0;
    width: 100%;
    margin-top: auto;
}

.footer h4 {
    color: #fff;
}

.footer p {
    color: #fff;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li a {
    color: #ccc;
    text-decoration: none;
}

.footer-links li a:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .footer {
        padding: 12px 0;
    }

    .footer p {
        font-size: 0.8rem;
        padding: 0 10px;
    }
}

/* Utility Classes */
.mt-3,
.mt-4,
.g-3,
.g-4 {
    background-color: transparent !important;
}

.row {
    background-color: transparent !important;
}

/* PAGINIERUNG STYLES */
#paginationContainer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination {
    margin-bottom: 1rem;
}

.page-link {
    color: #00A8CC;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0 2px;
    border-radius: 6px !important;
    transition: all 0.2s ease-in-out;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 168, 204, 0.3);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #00A8CC;
    border-color: #00A8CC;
    box-shadow: 0 4px 8px rgba(0, 168, 204, 0.4);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* ELLIPSEN-STYLES FÜR PAGINIERUNG */
.page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
    border: none;
    cursor: default;
    font-weight: bold;
}

.page-item.disabled span.page-link {
    padding: 0.75rem 0.5rem;
    user-select: none;
}

/* Responsive Paginierung für mobile Geräte */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        margin: 1px;
    }

    /* AUF MOBILE WENIGER SEITENZAHLEN ANZEIGEN */
    .pagination .page-item:nth-child(n+8):nth-last-child(n+4) {
        display: none;
    }

    /* Preis in der 4-Grid-Ansicht auf Smartphones kleiner */
    .grid-view-5 .price-section .current-price {
        font-size: 1rem !important;
        /* Kleiner als Desktop (1.6rem) */
    }
}

/* Log Terminal */
.log-terminal {
    background-color: #101010;
    color: #9cf2a5;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 12px;
    padding: 16px;
    border-radius: 8px;
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.35;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.35);
}

/* ============================================
   VALUE SCORE BADGE
   ============================================ */
.value-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    color: white;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto; /* Enable hover/clicks if needed later */
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: fit-content;
    margin-bottom: 8px;
}

.value-score-badge i {
    font-size: 0.8rem;
}

.value-score-badge.bg-top-deal {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.value-score-badge.bg-good-value {
    background: linear-gradient(135deg, #00A8CC 0%, #007fa3 100%);
}

.value-score-badge.bg-fair-value {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Animation für Top Deals */
.value-score-badge.bg-top-deal {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mobile (≤768px): Badge auf reine Zahl reduzieren — nur "7.5/10".
   Label ("Top Deal:" etc.) und Icon ausblenden, damit die Karten
   kompakter sind und der Score sofort erfassbar bleibt. */
@media (max-width: 768px) {
    .value-score-badge .vsb-label,
    .value-score-badge i {
        display: none;
    }
    .value-score-badge {
        padding: 2px 8px;
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
}
