/* Globalne ustawienia */
body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.counter {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #2970df, #1a4fa3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scale 0.5s ease-in-out;
}

@keyframes scale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .card {
        margin: 1rem 0;
    }
}

/* Kontener główny */
.container {
    margin-top: 20px;
}

/* Karty petycji */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.petition-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.petition-link:hover {
    color: inherit;
}

.card-img-top {
    height: 250px;
    /* Większa wysokość dla obrazków */
    object-fit: cover;
    /* Zapewnia dobre dopasowanie obrazu */
}


/* Przycisk Panel Admina */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Dodatkowe odstępy i responsywność */
h1 {
    margin-bottom: 1rem;
}

.alert {
    margin-top: 1rem;
}

.display-5 {
    width: 100%;
}

.card .btn-primary {
    background: linear-gradient(45deg, #2970df, #1a4fa3);
    border: none;
    box-shadow: 0 4px 15px rgba(41, 112, 223, 0.2);
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    font-size: 2.5rem;
    height: auto;
    line-height: 1.2;
    margin: 0 0rem;
    width: calc(100% - 2rem);
}

.card .btn-primary i {
    font-size: 2rem;
    margin-right: 1rem;
}

.card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 112, 223, 0.3);
    background: linear-gradient(45deg, #1a4fa3, #2970df);
}

.card .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(41, 112, 223, 0.2);
}

.hero {
    background: linear-gradient(135deg, #1a4fa3 0%, #2970df 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-bg {
    background: url('/static/img/pattern.png') repeat;
    opacity: 0.1;
    top: 0;
    left: 0;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.counter,
.countdown {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #2970df, #1a4fa3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scale 0.5s ease-in-out;
}

.btn-primary {
    background: linear-gradient(45deg, #2970df, #1a4fa3);
    border: none;
    box-shadow: 0 4px 15px rgba(41, 112, 223, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 112, 223, 0.3);
    background: linear-gradient(45deg, #1a4fa3, #2970df);
}

@media (max-width: 768px) {
    .petition-image {
        height: 250px;
    }

    .counter,
    .countdown {
        font-size: 2.5rem;
    }
}

.petition-header {
    background: linear-gradient(135deg, #1a4fa3 0%, #2970df 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.petition-header h1 {
    color: white;
    margin-bottom: 0;
}

.petition-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.petition-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.petition-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #212529;
}

/* Navbar styling */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}


.nav-link {
    font-weight: 500;
    color: #6c757d;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #2970df;
}

@media (min-width: 992px) {
    .nav-link {
        border-bottom: 2px solid transparent;
        margin: 0 0.5rem;
    }

    .nav-link:hover {
        border-bottom-color: #2970df;
    }
}

/* Dodaj efekt scrollowania */
.navbar.sticky-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}
