/* GLOWNE */
/* -------------------------------------------------------------------------------------------------------*/

html, body {
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
}

header {
    background: #3b5e38;
    color: white;
    text-align: center;
    padding: 10px;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

p {
    text-align: center;
}

a {
    text-align: center;
}

/* Footer */

footer {
  background: #0C640C;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
  height: 50px;
}

.footer-content {
  color: #FFE880;
}

/* Powrot do glownej */
/* -------------------------------------------------------------------------------------------------------*/

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.logo {
    height: 100px;
    width: auto;
    flex-shrink: 0;
}

.nav-bar {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
    z-index: 1;
}

.nav-bar li {
    margin: 0 10px;
}

.nav-bar a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100px;
    transition: background 0.3s ease;
    font-size: 20px;
}

.nav-bar a:hover,
.nav-bar a.active {
    background-color: #345d64;
    color: #b8e8ee;
}

/* /images */
/* -------------------------------------------------------------------------------------------------------*/

.main-banner {
    background-image: url("../images/mainbaner.png");
    height: 400px;
}

.poradniki-banner {
    background-image: url("../images/poradniki.png");
    height: 250px;
}

.lowisko-banner {
    background-image: url("../images/lowisko.png");
    height: 200px;
}

.medalowe-banner {
    background-image: url("../images/medalowe.png");
    height: 300px;
}

.blog-banner {
    background-image: url("../images/blog.png");
    height: 300px;
}

.sandaczregandlog {
    background-image: url("../images/sandaczregandlog.png");
    height: 600px;
}

.loginandregister {
    background-image: url("../images/loginirejestr.png");
    height: 500px;
}

.example-banner {
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}


.example-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 50px;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.banner-content h2 {
    font-size: 22px;
    font-weight: normal;
    margin-top: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* LOGIN I REJESTR */
/* -------------------------------------------------------------------------------------------------------*/

.login, .rejestr {
    width: 320px;
    padding: 30px 20px;
    margin: 0 auto;

    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    color: #ffffff;
    z-index: 2;
}

/* NAGŁÓWKI WEWNĄTRZ FORMULARZY */
/* -------------------------------------------------------------------------------------------------------*/

.logh3, .regh3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* INPUTY */
/* -------------------------------------------------------------------------------------------------------*/

.login input,
.rejestr input {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
    color: #000;
}

.brakkonta {
  margin-top: 10px;
  margin-left: 155px;
}

.zalogujprzezgoogle {
  height: 50px;
}

/* PRZYCISKI */
/* -------------------------------------------------------------------------------------------------------*/

.login button,
.rejestr button {
    display: block;
    width: 100%;
    margin: 15px 0 0;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login button:hover,
.rejestr button:hover {
    background-color: #388e3c;
    transform: scale(1.05);
}

.logframe,
.regframe {
    border: 2px solid #fff; 
    border-radius: 5px;
}

/* LEAFLET (map) */
/* -------------------------------------------------------------------------------------------------------*/
#map {
  height: 600px;
  border: 3px solid #0C640C;
  border-radius: 12px;
  margin: 20px 0;
  z-index: 5;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  transition: width 0.6s ease;
}

#info-panel {
    position: absolute;
    top: 20px;
    right: 0;
    width: 320px;
    height: 590px;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 10;
    border: 3px solid #0C640C;
    border-radius: 15px;
    text-align: center;
    overflow: hidden;
}

#close-panel {
  position: absolute;
  top: 12px;
  right: 12px;

  font-size: 28px;
  font-weight: bold;
  color: rgb(30, 85, 40);
  text-decoration: none;
  background-color: rgb(50, 255, 80);

  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  transition: background 0.25s ease, transform 0.2s ease;
}

#close-panel:hover {
  background-color: rgba(255, 95, 95, 0.4);
  transform: translateY(-15%) scale(1.05);
}



/* --- MEDALOWA TABELA --- */
/* -------------------------------------------------------------------------------------------------------*/

.table-container {
  width: 90%;
  margin: 50px auto;
  background: #0f1f0f;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.medal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  border-radius: 12px;
}

.medal-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.medal-table th {
  padding: 12px;
  background: linear-gradient(90deg, #1b3b1b, #2e6b2e);
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
}

.medal-table td {
  padding: 10px;
  text-align: center;
  transition: 0.2s;
}

.medal-table tr {
  background: #132913;
  color: #e8ffe8;
}

.medal-table tr:nth-child(even) {
  background: #173417;
}

.medal-table tr:hover {
  transform: scale(1.01);
  background: #1f4d1f;
}

.bronzowy {
  background: linear-gradient(90deg, #cd7f32, #a65a1f);
  color: white;
  font-weight: bold;
  border-radius: 6px;
}

.srebrny {
  background: linear-gradient(90deg, #c0c0c0, #8f8f8f);
  color: black;
  font-weight: bold;
  border-radius: 6px;
}

.zloty {
  background: linear-gradient(90deg, #ffd700, #c9a200);
  color: black;
  font-weight: bold;
  border-radius: 6px;
}

.rekord {
  color: #00ffcc;
  font-weight: bold;
}

.h1kgmed {
    color:rgb(180, 245, 138);
}

/* SEKCJA DIVów Z INDEX.PHP */
/* -------------------------------------------------------------------------------------------------------*/

.section-ogol {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 50px;
  width: 85%;
  margin: -100px auto 60px auto;
  position: relative;
  z-index: 10;
}

.przestrzen-divy {
  background-color: #ebf8ec;
  border: 3.5px solid #0e4d0e;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  width: 340px;
  height: 240px;
  text-align: center;
  padding: 25px 20px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.przestrzen-divy:hover {
  transform: scale(1.05) rotateZ(0.5deg);
  box-shadow: 0 12px 20px rgba(0,0,0,0.3);
  animation: hoverShake 0.2s ease-in-out 1;
}

.przestrzen-divy:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.section-icon {
    width: 64px; /* Trzymamy się szerokości, którą podaliśmy w HTML */
    height: 64px; /* Wysokość musi być identyczna, żeby był kwadrat (1:1) */
    object-fit: contain; /* Magiczna właściwość - zabrania zgniatania obrazka! */
    margin: 0 auto 15px auto; /* Środkuje ikonkę i daje odstęp od tekstu poniżej */
    display: block;
}

.section-card h1 {
  font-size: 22px;
  color: #0C640C;
  margin-bottom: 10px;
}

.section-card p {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
}

.section-button {
  background-color: #0C640C;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.section-button:hover {
  background-color: #138a13;
  transform: scale(1.05);
}

.a-section-divs {
  margin-bottom: 16px;
}

/* WYSWIETLENIE WSZYSTKICH RYB Z BAZY */
/* -------------------------------------------------------------------------------------------------------*/
/* --- TYLKO STYLE PANELU BOCZNEGO --- */
.fish-page-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

#fish-side-panel {
    position: fixed; 
    top: 0;
    right: 0;
    width: 450px; 
    max-width: 100vw; 
    height: 100vh;
    background: #ccffcc; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.5); 
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    z-index: 9999;
    border-left: 4px solid #0C640C;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#fish-side-panel.active {
    transform: translateX(0); 
}

#close-fish-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: rgb(30, 85, 40);
    text-decoration: none;
    background-color: rgb(50, 255, 80);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #0C640C;
    z-index: 20;
    transition: transform 0.2s, background-color 0.2s;
}

#close-fish-panel:hover {
    background-color: #ff4d4d;
    color: white;
    transform: scale(1.1);
}

#fish-info-content {
    height: 100%;
    overflow-y: auto;
    padding: 30px; 
    margin-top: 55px; 
}


#fish-info-content h2 { color: #0C640C; margin-bottom: 5px; font-size: 2em; }
.latin-name { font-style: italic; color: #555; margin-bottom: 20px; font-size: 1.1em; }
.fish-detail-img {
    width: 100%;
    height: auto; /* Auto sprawia, że białe paski znikają */
    max-height: 250px; /* Pilnuje, by zdjęcie nie było za wysokie */
    object-fit: contain; /* Zatrzymuje proporcje ryby */
    margin: 0 auto 25px auto;
    display: block;
    
    /* TE DWIE LINIJKI USUWAJĄ BIAŁE TŁO I RAMKĘ: */
    background-color: transparent; 
    border: none;
}.side-description h4 { color: #0C640C; margin-bottom: 10px; text-align: left; font-size: 1.2em; }
.side-description p { color: #333; line-height: 1.6; font-size: 1em; text-align: left; }
.side-divider { border: 0; border-top: 1px solid #0C640C; opacity: 0.3; margin: 25px 0; }
.side-locations-list { display: flex; flex-direction: column; gap: 12px; }
.side-loc-item { display: flex; align-items: center; gap: 15px; background: #e6f4e6; border: 1px solid #0C640C; border-radius: 8px; padding: 12px; text-decoration: none; color: #333; text-align: left; transition: transform 0.2s, background 0.2s; }
.side-loc-item:hover { background: #d9f0d9; transform: scale(1.02); }
.side-loc-item img { width: 55px; height: 55px; border-radius: 6px; object-fit: cover; border: 1px solid rgba(12, 100, 12, 0.3); }
.side-loc-item span { font-weight: bold; font-size: 1em; }




/* ========================================================================= */
/* WYSWIETLENIE WSZYSTKICH RYB Z BAZY (TWÓJ ORYGINAŁ)                        */
/* ========================================================================= */

.fish-section {
  width: 90%;
  margin: 60px auto;
  text-align: center;
}

.search-container { margin-bottom: 40px; }

.fish-search {
  padding: 12px 18px;
  width: 300px;
  border: 2px solid #0C640C;
  border-radius: 8px;
  font-size: 16px;
}

.fish-search-btn {
  background-color: #0C640C;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.fish-search-btn:hover { background-color: #138a13; }

.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  justify-items: center;
}

.fish-card {
  position: relative;
  background-color: #e6f4e6;
  border: 2px solid #0c640c;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.5s forwards;

  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.fish-card:nth-child(1) { animation-delay: 0.05s; }
.fish-card:nth-child(2) { animation-delay: 0.1s; }
.fish-card:nth-child(3) { animation-delay: 0.15s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fish-card:hover {
  transform: translateY(0) scale(1.05);
  box-shadow: 0 12px 20px rgba(0,0,0,0.3);
  background-color: #d9f0d9;
}

.fish-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.0) 100%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.fish-card:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.fish-card h3 {
  font-size: 20px;
  color: #0C640C;
  margin: 5px 0;
}

.fish-card h4 {
  font-size: 14px;
  font-style: italic;
  color: #666;
  margin-bottom: 10px;
}

.fish-card h5 {
    font-size: 14px;
    color: #007700;
    margin-bottom: 8px;
}

.fish-card p {
  font-size: 14px;
  color: #333;
  text-align: center;
}
/*zdjęcia są równe wszstkie dzięki temu wrapperowi*/
.fish-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.fish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-results {
  color: #333;
  font-size: 18px;
  margin-top: 40px;
}




/* --- BLOG STYL --- */

.blog-container {
    width: 80%;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid blanchedalmond;
    position: relative;
}

.posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
}

/* na telefonie bedzie jedno żeby sie miescilo*/
@media (max-width: 900px) {
    .posts {
        grid-template-columns: 1fr;
        max-height: 1200px;
    }
}

.post {
    background: #f8fff8;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #2e7d32; 
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 360px;
    overflow: hidden;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.post img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border-bottom: 2px solid #2e7d32;
}

.single-post {
    height: auto;
    overflow: visible;
}

.single-post img {
    height: auto;
    object-fit: contain;
    max-width: 100%;
    display: block;
}

.post h3 {
    color: #1b5e20;
    margin: 10px 0 5px;
}

.post p {
    margin: 0 0 10px;
    font-size: 1.1em; /* większy tekst dla wpisu */
    line-height: 1.5;
}

.post .meta {
    font-size: 0.9em;
    color: #555;
}

/* Komentarze */
.comment {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #eee;
    border-radius: 5px;

    word-break: break-word;
    overflow-wrap: break-word;
}

.comment p {
    font-size: 1em;
    line-height: 1.4;

    word-break: break-word;
    overflow-wrap: break-word;
}

.comment .meta {
    font-size: 0.75em;
    color: #777;
}

.mini-comments {
    margin-top: 15px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 5px;

    max-height: 80px;
    overflow: hidden; 
}

button, .add-btn, .back-btn {
    background-color: #2e7d32;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

button:hover, .add-btn:hover, .back-btn:hover {
    background-color: #1b5e20;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comment-btn {
    display: inline-block;
    background-color: #1b5e20;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.comment-btn:hover {
    background-color: #388e3c;
}

.post-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* pasek po kliknieciu w znacznik na mapie*/

.map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#info-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 590px;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.5s ease;
    z-index: 10;
    border: 3px solid #0C640C;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
}

.map-container.panel-active #map {
    width: calc(100% - 330px);
}

#info-panel.active {
    transform: translateX(0);
    background-color: #ccffcc;
}


#info-panel img {
    width: 100%;
    height: 200px;   
    object-fit: cover;   
    display: block;
}


/* WITAJ I WYLOGUJ */


.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.nav-user span {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px black;
}

.nav-user a {
    background-color: red;
    color: white;
    padding: 10px 14px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-block;
}

.nav-user a:hover {
    background-color: darkred;
}


/* DODAJ WPIS NA BLOGU */

.blog-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 750px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.tytul-wpisu {
  padding: 14px 16px;
  font-size: 22px;
  font-weight: bold;
  border-radius: 10px;
  border: 2px solid #2e7d32;
  outline: none;
}

.tytul-wpisu:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}

.textarea-blog-wpis {
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid #2e7d32;
  resize: vertical;
  min-height: 200px;
}

.textarea-blog-wpis:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}

.image-upload label {
  margin-bottom: 6px;
  font-weight: bold;
  color: #2e7d32;
}

.image-upload input {
  padding: 10px;
  background: #f1f8f1;
  border-radius: 8px;
  border: 1px dashed #2e7d32;
  cursor: pointer;
}

.author-info {
  font-size: 14px;
  color: #555;
  text-align: right;
}

.big-btn {
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  box-shadow: 0 6px 14px rgba(46,125,50,0.3);
}

.big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46,125,50,0.4);
}

.h2-nowy-wpis-blog { 
  padding: 2px 2px;
  font-size: 30px;
  font-weight: bold;
  outline: none;
}

.powrot-blog {
  position: absolute;
  top: 15px;
  right: 15px;

  font-size: 28px;
  font-weight: bold;
  color: #ff0000;
  text-decoration: none;

  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  transition: background 0.25s ease, transform 0.2s ease;
}

.powrot-blog:hover {
  background-color: rgba(255, 131, 131, 0.15);
  transform: translateY(-20%) scale(1.05);
}

/* POPOUT RYBY */

#popup-fish-container {
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
    box-sizing: border-box;
}

.popup-fish-img-wrapper {
    width: 80px;
    height: 60px;
    overflow: hidden;
    flex-shrink: 0;
}

.popup-lowisko-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px 0;
}

.popup-opis {
    margin-bottom: 15px;
    text-align: justify;
}

.fish-scroll-popup {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.fish-grid-popup {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

#info-content {
    height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.popup-fish-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-fish-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #0C640C;
    border-radius: 8px;
    padding: 10px;
    background-color: #e6f4e6;
    width: 100%;
}

.popup-fish-img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* Wygląd przycisków na stronie głównej */
.section-button {
    display: inline-block;
    padding: 15px 30px; /* To daje duży, łatwy do kliknięcia przycisk dla Lighthouse */
    background-color: #0C640C; /* Wędkarski ciemny zielony */
    color: #ffffff; /* Biały tekst */
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    transition: 0.3s ease; /* Płynne przejście koloru */
    text-align: center;
    min-width: 150px;
}

/* Efekt po najechaniu myszką */
.section-button:hover {
    background-color: #094a09; /* Nieco ciemniejszy zielony */
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 10px 15px;
    }

    .nav-bar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #02331d;
        flex-direction: column;
        z-index: 1000;
        display: none;
    }

    .nav-bar.active {
        display: flex;
    }

    .post-nav {
        display: block !important;
        position: relative;
        z-index: 1001;
        background: transparent;
        padding: 10px 0;
    }

    .nav-user {
        display: flex;
        flex-direction: row;
        gap: 8px;
        order: 3;
    }

    .profile-link, .logout-btn {
        font-size: 20px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .logo-link {
        order: 1;
    }

    .menu-toggle {
        order: 3;
        margin-left: 10px;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 100002;
    }

    .bar {
        display: block;
        width: 100%;
        height: 3px ;
        background-color: #ffffff;
        border-radius: 2px;
    }
}