/**
 * Style dla panelu statystyk tras
 */

/* Efekty liczników */
.counter, .counter-large {
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.counter:after, .counter-large:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.counter.animated:after, .counter-large.animated:after {
    transform: scaleX(1);
}

/* Animacja liczników */
@keyframes countup {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.counter, .counter-large {
    animation: countup 0.5s ease-out forwards;
}

/* Style kart statystyk */
.header-banner {
    background: linear-gradient(135deg, #4A6CF7 0%, #1EA7C5 100%);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.header-banner:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(150px, -150px);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.8;
}

.stat-card {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-gradient-1 {
    background: linear-gradient(135deg, #4A6CF7 0%, #2E54CC 100%);
}

.card-gradient-2 {
    background: linear-gradient(135deg, #1EA7C5 0%, #0F798E 100%);
}

.card-gradient-3 {
    background: linear-gradient(135deg, #FF9432 0%, #E07112 100%);
}

.card-gradient-4 {
    background: linear-gradient(135deg, #6EC51E 0%, #4E9614 100%);
}

/* Stylowanie innych elementów */
.shadow-card {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border: none;
}

.location-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

/* Animacja dla odkrywanych elementów */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Efekt pulsu dla wykresu radarowego */
.pulse {
    position: relative;
}

.pulse:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-banner {
        padding: 20px;
    }
}

/* Jawne style dla funkcjonalności "Zobacz więcej" */
.d-none {
    display: none !important;
}

.expandable-item.d-none {
    display: none !important;
}

.show-more-btn .show-text,
.show-more-btn .hide-text {
    transition: opacity 0.2s ease;
}

.show-more-btn .show-text.d-none,
.show-more-btn .hide-text.d-none {
    display: none !important;
}

/* Animacja dla pokazywania elementów */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style dla przycisków "Zobacz więcej" */
.show-more-btn {
    border: 1px solid #007bff;
    color: #007bff;
    background: transparent;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.show-more-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Zapewnienie, że lista ma odpowiednie style */
.location-list .list-group-item {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(0,0,0,0.125);
    padding: 0.75rem 1.25rem;
}

.location-list .list-group-item:first-child {
    border-top: none;
}

.location-list .list-group-item:last-child {
    border-bottom: none;
}
