/*
Theme Name: ZałapTo Theme
Author: Mateusz Bylica
Description: Dedykowany motyw dla bloga ZałapTo
Version: 1.0
*/

:root {
    --primary-color: #2563EB;
    --secondary-color: #F59E0B;
    --dark-bg: #111827;
    --text-color: #374151;
}

html,
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    max-width: 100%;
    overflow-x: clip !important;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand,
.articles-title {
    font-family: 'Poppins', sans-serif;
}

section {
    scroll-margin-top: 88px;
}

strong, b {
    font-weight: 700 !important;
}

.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:active {
    transform: scale(0.9);
}

.navbar-brand-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 10px rgba(37, 99, 235, 0.3));
}

.navbar-brand {
    height: 3.5rem;
}

.nav-link {
    font-weight: 600;
    margin-left: 15px;
    color: #4B5563 !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.baza-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--secondary-color);
    background-color: transparent;
    background-image: none;
    border-color: var(--secondary-color);
    transition: 0.3s;
}

.baza-link:hover {
    color: white !important;
    background-color: var(--secondary-color);
    border-color: #b28536 !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        margin: 10px 15px;
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);

        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: block !important;
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .navbar-nav .nav-item {
        text-align: center;
        margin-bottom: 12px;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        color: var(--dark-bg);
        font-weight: 600;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar-nav .baza-link {
        font-size: 1.1rem;
        padding: 10px 0;
        font-weight: 600;
    }

    .navbar-nav .nav-link:hover {
        color: var(--primary-color);
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 10px;
        display: block;
        padding: 12px;
    }

    .nav-buttons-mobile {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Przyciski */
.btn-main {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.btn-main:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Footer */
.footer-custom {
    background-color: #111827;
    color: #d1d5db;
    font-size: 0.9rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    margin-top: 0;
    border-top: none;
}

.footer-logo-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 2.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-phone {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 0.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.footer-phone:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-header {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.social-icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-icon-circle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.company-details p {
    margin-bottom: 0.3rem;
}

.zal-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: none;
    /* Domyślnie ukryty, pokazywany przez JS */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #e5e7eb;
    animation: slideUp 0.5s ease-out;
}

.zal-content {
    flex: 1;
    max-width: 800px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.zal-buttons {
    display: flex;
    gap: 10px;
}

.zal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.zal-btn.accept {
    background-color: var(--primary-color);
    color: white;
}

.zal-btn.accept:hover {
    background-color: #1d4ed8;
}

.zal-btn.reject {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.zal-btn.reject:hover {
    background-color: #e5e7eb;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.shadow-primary-sm {
    box-shadow: 0 .5rem 1rem rgba(13, 110, 253, 0.15) !important;
}

.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.hover-border-primary:hover {
    border-color: var(--bs-primary) !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {

    .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .zal-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .zal-buttons {
        width: 100%;
        justify-content: center;
    }

    .zal-btn {
        flex: 1;
        text-align: center;
    }
}

details p {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 16px; border-radius: 50px; border: 1px solid #dee2e6; color: #2563EB; text-decoration: none; transition: 0.3s; }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background-color: #2563EB; color: white; border-color: #2563EB; }


.MathJax_Display,
mjx-container[display="true"] {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin: 0.5em 0 !important;
    scrollbar-width: thin;
    scrollbar-color: #85a5ec #e2e6ea;
}

.MathJax_Display::-webkit-scrollbar,
mjx-container[display="true"]::-webkit-scrollbar {
    height: 6px;
    background-color: #e2e6ea;
    border-radius: 10px
}

.MathJax_Display::-webkit-scrollbar-thumb,
mjx-container[display="true"]::-webkit-scrollbar-thumb {
    background-color: #85a5ec;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .MathJax_Display,
    mjx-container[display="true"] {
        font-size: 90% !important;
    }
}

.rank-math-breadcrumb {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}
.rank-math-breadcrumb p {
    margin: 0 !important;
}
.rank-math-breadcrumb a {
    color: #2563EB; /* Twój Primary Color */
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.rank-math-breadcrumb a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
.rank-math-breadcrumb .separator {
    margin: 0 8px;
    color: #d1d5db;
}
.rank-math-breadcrumb .last {
    color: #374151;
    font-weight: 700;
}

.author-photo{
    width:96px;
    height:96px;
    object-fit:cover;
}

.avatar-comment-photo{
    width:48px;
    height:48px;
    object-fit:cover;
}

article.card:hover img {
    transform: scale(1.05);
}
article.card .hover-primary:hover {
    color: var(--primary-color) !important;
}