/*
Theme Name: NGR25
Description: Custom theme for Nadnotecka Grupa Rybacka based on original HTML design from ngr.pila.pl. Features unique 3-column navigation menu, event management system, and responsive Bootstrap layout.
Author: denkkraft.eu
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngr25
*/
/* Import original NGR styles - handled via functions.php enqueue */
/* @import url('assets/css/bootstrap.min.css'); */
/* @import url('assets/css/main.css'); */



/* =============================== */
/* HERO HEADER - NGR25 2025        */
/* =============================== */

.hero-header {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.hero-header {
    position: relative;
    z-index: 100;
    overflow: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('assets/img/header25_1920x1080.jpg') center center/cover no-repeat;
        background-attachment: fixed;
        
    z-index: 0;
}
.hero-content {
    position: absolute;
    top: 40px;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-top: 0px;
}
.hero-menu ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0 0 0;
    padding: 0;
    list-style: none;
}
.hero-btn {
    display: inline-block;
    background: #2E7D32;
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 32px;
    font-size: 1.15em;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(46,125,50,0.08);
    transition: background .18s, box-shadow .18s;
}
.hero-header .menu {
    margin: auto;
}
.hero-btn:hover, .hero-btn:focus {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 24px rgba(24,119,242,0.12);
    outline: none;
}
.hero-mask {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 14vh;
    background: white;
            opacity: 0.8;
    z-index: 3;
    clip-path: ellipse(60% 80% at 50% 80%);
}

@media (min-width: 1200px) {
   .menu .container {
        width: 1380px;
    }

/* Theme specific overrides */
body {
    font-family: 'Lato', sans-serif;
}

/* WordPress specific styles */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Alignment styles */
.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

/* WordPress gallery styles */
.gallery {
    margin-bottom: 1.5em;
}

/* =============================================================================
   WCAG 2.2 ACCESSIBILITY ENHANCEMENTS
   ============================================================================= */

/* Screen reader only text - accessible hiding */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: inherit !important;
}

/* Skip links for keyboard navigation */
.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    font-size: 15px;
    line-height: 1.2;
    transition: left 0.3s ease;
}

.skip-link:focus {
    left: 8px;
    clip: auto;
    width: auto;
    height: auto;
    text-decoration: underline;
    outline: 3px solid #FFD700;
    position: fixed !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 100000 !important;
}

/* Enhanced focus indicators for WCAG 2.2 AA */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus,
.element:focus {
    outline: 3px solid #4A90E2 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.3) !important;
}

/* High contrast focus - moved to accessibility-keyboard.css */

/* Ensure minimum color contrast ratios */
.btn-more,
.download,
.btn {
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-more:hover,
.download:hover,
.btn:hover {
    text-decoration: underline;
}

/* Enhanced menu accessibility */
.menu [role="button"] {
    cursor: pointer;
    user-select: none;
}

.menu [aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

/* Accessible form elements */
input[type="search"],
input[type="text"],
input[type="email"],
textarea {
    border: 2px solid #ccc;
    padding: 8px 12px;
    font-size: 16px; /* Prevent zoom on mobile */
    line-height: 1.5;
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Error states with proper contrast */
.error,
.invalid {
    border-color: #D32F2F !important;
    background-color: #FFEBEE !important;
}

.error:focus,
.invalid:focus {
    outline-color: #D32F2F !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2) !important;
}

/* Success states */
.valid {
    border-color: #388E3C !important;
    background-color: #E8F5E8 !important;
}

/* Accessible tables */
.table-responsive {
    border: 1px solid #ddd;
    border-radius: 4px;
}

table caption {
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #ddd;
}

td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* Better link recognition */
a {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Remove underlines only where semantically appropriate */
.nav a,
.menu a,
.btn,
.logo a {
    text-decoration: none;
}

.nav a:hover,
.menu a:hover {
    text-decoration: underline;
}

/* Breadcrumb accessibility */
.breadcrumb {
    margin-bottom: 20px;
    padding: 8px 15px;
    font-size: 15px;

}

.breadcrumb li {
    display: inline;
}

.breadcrumb li + li:before {
    content: "/ ";
    padding: 0 5px;
    color: #999;
}

/* Downloads section accessibility */
.downloads-list {
    list-style: none;
    padding: 0;
}

.file_box {
    border: none;
    border-radius: 0px;
    padding: 15px;
    margin-bottom: 0px;
    background-color: #f9f9f9;
}

.file-info {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Reduced motion support - moved to accessibility-keyboard.css */
/* Print styles - moved to accessibility-keyboard.css */

/* Large text support - moved to media.css */

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

/* WordPress comment styles */
.comment-content a {
    word-wrap: break-word;
}

/* Czytelność: ustawienia dla głównej treści i wpisów */
#main-content,
.entry-content {
     font-family: 'Lato', Arial, sans-serif;
            font-size: 1.15em;
            line-height: 1.8;
            margin-bottom: 1.2em;
/* większy odstęp między wierszami dla czytelności */
    color: #222; /* mocny kontrast tekstu */
    /* max-width: 75ch;  optymalna szerokość linii dla czytania */
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
        margin-top: 30px;
}


/* Paragrafy i odstępy między nimi */
#main-content p,
.entry-content p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-wrap: balance;
}

/* Nagłówki wewnątrz treści - większy odstęp i wyraźniejszy rozdział */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
#main-content h1,
#main-content h2,
#main-content h3,
#main-content h4,
#main-content h5,
#main-content h6 {
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    color: #133; /* subtelny ciemny odcień */
}

/* Listy - większe odstępy dla lepszej czytelności */
.entry-content ul,
.entry-content ol,
#main-content ul,
#main-content ol {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    padding-left: 3rem;
}

/* Linki w treści - wyraźniejsze rozpoznawanie i focus */
.entry-content a,
#main-content a {
    color: #0b6e2e;
    text-decoration: underline;
}
.entry-content a:focus,
#main-content a:focus {
    outline: 3px solid #FFD54F;
    outline-offset: 3px;
}

/* Obrazy we wpisach - responsywne i z odstępem */
.entry-content img,
#main-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}
.entry-content img.col-img img {
		    display: none;
	}
/* Mniejsze ekrany: moved to media.css */

/* Sidebar menu styles */
ul.sidebar .men1 a:hover, 
ul.sidebar .men1 a.active {
    background: #87c832;
    color: #FFF;
    text-decoration: none;
}

/* WordPress Menu_boczne styles */
#menu-menu_boczne {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu-menu_boczne li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

#menu-menu_boczne a {
    display: block;
    padding: 12px 15px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

#menu-menu_boczne a:hover,
#menu-menu_boczne a:focus,
#menu-menu_boczne a.active {
    background: #2E7D32;
    color: #FFF;
    text-decoration: none;
}

#menu-menu_boczne .current-menu-item > a,
#menu-menu_boczne .current-menu-ancestor > a {
    background: #2E7D32;
    color: #FFF;
}


#menu-menu-lsr-2021-2027 .submenu {
    text-align: left;
    padding-right: 70px;
}
/* General sidebar menu styles for all WordPress menus */
.sidebar-menu-content ul.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-content ul.submenu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.sidebar-menu-content ul.submenu a {
    display: block;
    padding: 12px 15px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu-content ul.submenu a:hover,
.sidebar-menu-content ul.submenu a:focus,
.sidebar-menu-content ul.submenu a.active {
    background: #2E7D32;
    color: #FFF;
    text-decoration: none;
}

.sidebar-menu-content ul.submenu .current-menu-item > a,
.sidebar-menu-content ul.submenu .current-menu-ancestor > a {
    background: #2E7D32;
    color: #FFF;
}

/* Responsive images - Bootstrap already provides .img-responsive */
/* Additional alignment styles for responsive images */
.img-responsive.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.img-responsive.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.img-responsive.aligncenter {
    margin: 0 auto 1em;
}

/* NGR Gallery styles */
.page-gallery {
    margin: 20px 0;
}

.page-gallery .gall_box {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
    /* DODANE: Wymuszenie jednolitego rozmiaru */
    width: 100%;
    aspect-ratio: 1 / 1; /* Zachowaj kwadratowy proporcje */
}

.page-gallery .gall_box:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gallery .gall_box a {
    display: block;
    position: relative;
    text-decoration: none;
    /* DODANE: Zapewnienie jednolitego wyświetlania */
    width: 100%;
    height: 100%;
}

.page-gallery .gall_box img.resimg {
    /* POPRAWIONE: Wymuszenie pokrycia całego obszaru */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Najważniejsze - przycina zdjęcia do jednolitego rozmiaru */
    transition: opacity 0.3s ease;
    display: block;
}

.page-gallery .gall_box:hover img.resimg {
    opacity: 0.8;
}

.page-gallery .gall_box .glyphicon-search {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 0%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* DODANE: zapewnienie widoczności nad obrazem */
}

.page-gallery .gall_box:hover .glyphicon-search {
    opacity: 1;
}

.page-gallery .clearfix {
    clear: both;
}

/* DODANE: Style dla lightboxa */
.ngr-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ngr-lightbox.active {
    display: flex;
    opacity: 1;
}

.ngr-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ngr-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: transform 0.3s ease;
}

.ngr-lightbox-close:hover {
    transform: scale(1.1);
}

.ngr-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    max-width: 80%;
}

/* Responsive gallery columns - moved to media.css */

/* DODANE: Kontener galerii dla lepszego układu */
.page-gallery .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7.5px;
    margin-right: -7.5px;
}

.page-gallery [class*="col-"] {
    padding-left: 7.5px;
    padding-right: 7.5px;
}

/* DODANE: Animacja ładowania obrazów */
.page-gallery .gall_box img.resimg {
    background: #f5f5f5;
    background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hamburger menu styles */
.hamburger-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

.hamburger-toggle:hover,
.hamburger-toggle:focus {
    background: #87c832;
    color: #FFF;
}

.hamburger-toggle[aria-expanded="true"] {
    background: #87c832;
    color: #FFF;
}

/* Responsive styles - moved to media.css */

/* Single post sidebar styles */
.single-sidebar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.single-sidebar h2 {
    color: #2E7D32;
    font-size: 24px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2E7D32;
}

.single-sidebar h3 {
    color: #333;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.archive-section {
    margin-bottom: 25px;
}

.archive-section:last-child {
    margin-bottom: 0;
}

.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list li {
    margin: 0 0 8px 0;
    padding: 0;
    border-bottom: 1px dotted #ddd;
    padding-bottom: 5px;
}

.archive-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.archive-list a {
    display: block;
    padding: 5px 0;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    line-height: 1.4;
}

.archive-list a:hover,
.archive-list a:focus {
    color: #87c832;
    text-decoration: none;
}

.archive-list a.active {
    color: #87c832;
    font-weight: 600;
}

.recent-posts a {
    font-weight: normal;
}

/* Responsive single sidebar - moved to media.css */

/* Archive page thumbnails */
.archive-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.archive-thumbnail:hover {
    transform: scale(1.02);
}

.archive-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.archive-thumbnail:hover img {
    opacity: 0.9;
}

.archive-thumbnail a {
    display: block;
    text-decoration: none;
}

/* Archive post layout with thumbnails */
.archive-post-thumbnail .single {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.archive-post-thumbnail .single:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Archive layout improvements */
.archive-content .single {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.archive-content .single:hover {
    box-shadow: 0 8px 25px rgba(135, 200, 50, 0.15);
    border-color: #87c832;
    transform: translateY(-2px);
}

.archive-content .archive-thumbnail {
    margin-bottom: 0px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
}

.archive-content .archive-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}
.archive-mb {
    border-top: 2px solid #2E7D32;
    padding-top: 20px;
}   

/* Placeholder for posts without thumbnails */
.no-thumbnail-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.no-thumbnail-placeholder:hover {
    border-color: #87c832;
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(135, 200, 50, 0.1) 100%);
}

.no-thumbnail-placeholder svg {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.no-thumbnail-placeholder:hover svg {
    opacity: 1;
}

/* Horizontal archive layout */
.archive-horizontal {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.archive-horizontal:hover {
    box-shadow: 0 4px 20px rgba(135, 200, 50, 0.15);
    border-color: #87c832;
    transform: translateY(-2px);
}

.archive-content-text {
    padding-right: 20px;
}

.archive-content-text .date {
    color: #87c832;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

.archive-content-text .title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.archive-content-text .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-content-text .title a:hover {
    color: #87c832;
}

.archive-content-text .decs {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.archive-thumbnail-right {
    margin-bottom: 0;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
}

.archive-thumbnail-right img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.no-thumbnail-small {
    height: 150px;
}

/* Responsive adjustments for horizontal layout - moved to media.css */

.archive-content .date {
    color: #87c832;
    font-weight: 600;
}

/* Single post featured image - WCAG 2.2 compliant */
.single-featured-image {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.single-featured-image:hover {
    box-shadow: 0 8px 25px rgba(135, 200, 50, 0.15);
}

.single-featured-image:focus-within {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.single-featured-image .featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.featured-image-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(2px);
}

/* High contrast mode support - moved to accessibility-keyboard.css */
/* Reduced motion support - moved to accessibility-keyboard.css */

/* Responsive adjustments for single post image - moved to media.css */

.archive-content .title {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.archive-content .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-content .title a:hover {
    color: #87c832;
}

.archive-content .decs {
    color: #666;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.archive-content .btn-more {
    align-self: flex-start;
    margin-top: auto;
}

/* Responsive archive grid - moved to media.css */
