﻿/* Google Fonts - Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Hero section - przyciemnienie tła */
.hero-section { 
    position: relative;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* YouTube */
.youtube-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.youtube-container .row {
    justify-content: center;
}

.youtube-container .yt1 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
	width: 100%;
    height: 0;
    overflow: hidden;
}

.youtube-container .yt2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mapa Google */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Nagłówki - czcionka szeryfowa (oprócz stopki) */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', serif !important;
}

h5, h6 {
	line-height: 1.5;
}

h2.post {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important; 
	color: #333;
	margin-top: 2.2rem;
	margin-bottom: 1rem;
	color: #6ca9bb ;
}

/* Stopka - normalna czcionka */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Komunikat "Brak wpisów" - normalna czcionka */
.no-posts h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Menu styles */
.navbar-brand img {
    height: auto !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: none !important;
}

.navbar {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    border-bottom: 1px solid #ddd;
}

.navbar .container {
    height: 84px !important;
    max-width: 1600px !important;
}

/* Menu link styles */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 8px 30px !important;
}

/* Instagram icon */
.navbar-nav .nav-link i {
    font-size: 24px;
    padding: 8px 0;
}

/* Instagram icon - wyrównanie do prawej na desktop */
.navbar-nav .nav-item:last-child {
    margin-left: auto;
}

/* Instagram link - mniejszy padding po prawej */
.navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0 !important;
}

/* Medium screens - marginesy dla menu */
@media (max-width: 1605px) and (min-width: 992px) {
    .navbar .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Mobile menu - rozwijane z prawej strony */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 84px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 84px);
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 20px;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        text-align: center;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Instagram icon - wyrównanie na mobile */
    .navbar-nav .nav-item:last-child {
        margin-left: 0;
    }
    
    /* Instagram icon - przywrócone paddingi na mobile */
    .navbar-nav .nav-item:last-child .nav-link {
        padding-right: 30px !important;
    }
    
    .navbar-nav .nav-link i {
        padding: 8px 12px;
    }
    
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Hero Section */
.hero-section {
    background-size: contain;
    background-position: center;
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-color: #2c3137;
    color: white;
    height: 500px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding: 50px;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-section .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Scroll down button */
.btn-scroll-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #9fd5ec;
}

.btn-scroll-down:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #00b4ff;
}

.btn-scroll-down i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Post cards */
.post-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: transparent !important;
    background: none !important;
}

.post-card .card-body {
    padding: 0 !important;
    background-color: transparent !important;
}

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

/* Linki w kartach */
.post-card a {
    transition: opacity 0.3s ease;
}

.post-card a:hover {
    opacity: 0.8;
}

.post-card .card-title a:hover {
    color: #007bff !important;
}

/* Tytuły wpisów - czcionka szeryfowa */
.post-card .card-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600;
    padding: 15px 15px 0 15px;
    margin: 0;
}

.post-card .card-text {
    padding: 10px 15px;
}

.post-card .d-flex.justify-content-between {
    padding: 0 15px 15px 15px;
}

.post-card .position-relative {
    background-color: transparent !important;
}

/* Linki w sekcji "Najnowsze wpisy" */
.card .card-body a {
    color: #1e3a8a !important;
    transition: all 0.3s ease;
}

.card .card-body a:hover {
    color: #1e40af !important;
}

.card .card-body a img {
    transition: opacity 0.3s ease;
}

.card .card-body a:hover img {
    opacity: 0.8;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    background-color: #2c3137;
    background-repeat: no-repeat;
    background-position: center;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.archive-link {
    color: #6c757d;
    text-decoration: none;
    padding: 5px 0;
    display: block;
    border-bottom: 1px solid #eee;
}

.archive-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
    padding-left: 10px;
}

/* Post page styles */
.post-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2c3137;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 84px;
}

/* Breadcrumbs - białe separatory */
.breadcrumb-item + .breadcrumb-item::before {
    color: white !important;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.related-post {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    color: inherit;
}

/* 404 page styles */
.error-page {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    margin-top: 84px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1rem;
}

/* Odstęp między kolumnami */
.col-lg-9 {
    padding-right: 1rem !important;
}

.col-lg-3 {
    padding-left: 1rem !important;
}

@media (max-width: 991.98px) {
    .col-lg-9 {
        padding-right: 0 !important;
    }
    
    .col-lg-3 {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
}

/* Sticky Footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Mobile footer - zdjęcie nad nagłówkiem */
@media (max-width: 991.98px) {
    .footer-about-section {
        flex-direction: column !important;
        text-align: left !important;
    }
    
    .footer-about-section img {
        order: -1 !important;
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
        align-self: flex-start !important;
    }
    
    .footer-about-section .about-content {
        order: 1 !important;
    }
    
    .footer-blog-section {
        margin-top: 2rem !important;
    }
}

/* Kolor przycisków nawigacji następny/poprzedni */
.row .col-md-6 .btn-outline-primary.btn-lg,
.row .col-md-6 .btn-outline-primary.btn-lg:link,
.row .col-md-6 .btn-outline-primary.btn-lg:visited,
.row .col-md-6 .btn-outline-primary.btn-lg:active {
    border-color: #1e40af !important;
    color: #1e40af !important;
    border-radius: 0 !important;
}

.row .col-md-6 .btn-outline-primary.btn-lg:hover,
.row .col-md-6 .btn-outline-primary.btn-lg:focus {
    background-color: #1e40af !important;
    border-color: #1e40af !important;
    color: white !important;
}

/* Kolor ikony kalendarza w sekcji Archiwum */
.card-header .bi-calendar3 {
    color: #6c757d !important;
}

/* Toast Notifications CSS */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-content i {
    font-size: 18px;
    color: #007bff;
}

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info .toast-content i {
    color: #17a2b8;
}

/* Style dla serduszek polubień */
.like-count {
    cursor: pointer;
}

.like-count i {
    color: #e84a43;
}

.like-count.liked {
    pointer-events: none;
}

.like-count.liked i {
    color: #dc3545;
    -webkit-text-fill-color: #dc3545;
    -webkit-text-stroke-width: 0;
}

/* Kolor ikony kalendarza przy dacie */
.bi-calendar3 {
    color: #00b4ff !important;
}

/* Biała ikona kalendarza w rozwinięciu pod menu */
.lead .bi-calendar3 {
    color: white !important;
}

/* Kolor ikony oka */
.bi-eye {
    color: #6ca9bb !important;
}

/* Biały tekst w przyciskach kart */
.card .btn-primary,
.card .btn-primary:link,
.card .btn-primary:visited,
.card .btn-primary:active,
.card .btn-primary:hover,
.card .btn-primary:focus {
    color: white !important;
}

.card .btn-primary i,
.card .btn-primary:hover i {
    color: white !important;
}

/* Specyficzny selektor dla linków w przyciskach */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
    color: white !important;
}

/* Ukryj tekst "odslon" i "polubien" na mobilnych */
@media (max-width: 768px) {
    .views-text,
    .likes-text {
        display: none;
    }
    
    /* Zmniejsz odstępy na mobilnych */
    .d-flex.gap-4 {
        gap: 0.5rem !important;
    }
    
        
        /* Marginesy dla nawigacji na mobilnych */
        .col-md-6 {
            padding-left: 15px !important;
            padding-right: 15px !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        
        /* Zapewnij że przyciski nie wychodzą poza kontener */
        .btn.w-100 {
            max-width: 100%;
            box-sizing: border-box;
        }
        
        /* Zapewnij marginesy dla całego kontenera na małych ekranach */
        .container {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
    }
}

@media (max-width: 576px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Gallery styles */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.gallery-info small {
    font-size: 0.75rem;
}

/* Image page styles */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    background: rgba(108, 117, 125, 0.08);
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border: 1px solid rgba(108, 117, 125, 0.15);
    cursor: pointer;
}

.nav-btn-prev {
    border-radius: 25px 0 0 25px;
}

.nav-btn-next {
    border-radius: 0 25px 25px 0;
}

.nav-btn:hover {
    background: rgba(108, 117, 125, 0.12);
    color: #5a6268;
    text-decoration: none;
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn-disabled {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.5;
    cursor: not-allowed;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-btn-disabled.nav-btn-prev {
    border-radius: 25px 0 0 25px;
}

.nav-btn-disabled.nav-btn-next {
    border-radius: 0 25px 25px 0;
}

.nav-counter {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.8rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid rgba(108, 117, 125, 0.1);
}

.nav-counter .current {
    color: #6c757d;
    font-weight: 500;
}

.nav-counter .separator {
    color: #adb5bd;
}

.nav-counter .total {
    color: #adb5bd;
}

/* Inne */
.noshfont {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}