/**
 * Główny arkusz stylów dla bolimow.info
 */

:root {
    --primary-color: #9EC21B;
    --primary-green: #9EC21B;
    --secondary-color: #FC5130;
    --accent-color: #30BCED;
    --light-bg: #F8F9FA;
    --dark-text: #212529;
    --light-text: #F8F9FA;
    --gray-text: #6C757D;
    --border-color: #DEE2E6;
    --card-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

header {
    background-color: var(--light-bg);
    color: var(--light-text);
    padding: 1.5rem 0;
    position: relative;
}

.header-pattern{
    position: absolute;
    inset: 0;               
    width: 100%;
    height: 100%;

    background-image: url("/assets/images/banner_black.png");
    background-size: cover;      
    background-position: center; 
    background-repeat: no-repeat;
}


header{
    
    min-height: clamp(240px, 40vh, 650px);
}


@media (max-width:480px){
    
    .header-pattern{
        background-position: center top;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.site-title:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.site-tagline {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin: 1rem 0;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: calc(100% - 10px);
    padding: 0 1.5rem;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #e64a2e;
}

.intro {
    background-color: white;
    padding: 2.5rem;
    margin: 2.5rem 0;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.intro:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: var(--accent-color);
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    position: relative;
}

.intro p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.posts-container {
    display: grid;
    grid-gap: 2.5rem;
}

.post {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.post-header {
    padding: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.post-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.post-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-date {
    color: var(--gray-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.post-date i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.post-content {
    padding: 1.8rem;
}

.post-text {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.post-attachments {
    display: block;
    width: 100%;
    margin-bottom: 1.8rem;
}

.attachment {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.attachment img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}

/* Usunięcie niepotrzebnych efektów hover */
.attachment:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Usunięcie starego media query i dodanie nowego */
@media (max-width: 768px) {
    .attachment {
        width: auto !important;
        height: auto !important;
    }

    .post-attachments {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.attachment:after {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.attachment:hover:after {
    opacity: 1;
}



.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tag {
    background-color: var(--light-bg);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tag:before {
    content: "#";
    margin-right: 4px;
    color: var(--secondary-color);
    font-weight: bold;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tag:hover:before {
    color: white;
}

.load-more {
    margin: 3rem auto;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(27, 44, 102, 0.3);
    transition: all 0.3s ease;
}

.load-more:hover {
    background-color: #101d45;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(27, 44, 102, 0.4);
}

footer {
    background-color: var(--primary-green);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Modal for attachments */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(252, 81, 48, 0.8);
    transform: rotate(90deg);
}

/* Verification Badge */
.verification-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background-color: rgba(48, 188, 237, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-decoration: none;
}

.verification-badge i {
    margin-right: 5px;
}

.verification-badge:hover {
    background-color: rgba(48, 188, 237, 0.2);
}

/* Empty state */
.empty-state {
    background-color: white;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    min-width: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-prev, .page-next {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.page-prev i, .page-next i {
    font-size: 0.8rem;
}

.page-prev i {
    margin-right: 5px;
}

.page-next i {
    margin-left: 5px;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.tag-cloud .tag {
    text-decoration: none;
}

/* Single Post Page */
.single-post {
    margin: 2.5rem 0;
}

.single-post .post {
    transform: none;
}

.single-post .post:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

/* Responsive design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .site-tagline {
        font-size: 1rem;
    }

    .post-attachments {
        justify-content: center;
    }

    .attachment {
        width: 100px;
        height: 100px;
    }

    .intro:before {
        width: 5px;
    }

    .post-header:before {
        height: 3px;
    }

    .load-more {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Dodatkowe style dla logo strony */

.site-branding {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.site-logo {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Modyfikacja stylu dla tytułu strony, gdy jest wyświetlany obok logo */
.site-branding .site-title {
    margin-bottom: 0;
}

/* Responsywność dla logo i tytułu */
@media (max-width: 768px) {
    .site-logo {
        width: 45px;
        height: 45px;
        margin-right: 0.75rem;
    }
    
    .site-branding .site-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
    
    .site-branding .site-title {
        font-size: 1.6rem;
    }
}