html {
	scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
  .nagl-artyk {
    background: linear-gradient(135deg, rgb(131, 21, 21), rgb(100, 15, 15));
    color: whitesmoke;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(131, 21, 21, 0.2);
    position: relative;
    overflow: hidden;
  }
  
  .nagl-artyk::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
  }
  
  @keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
  }
  h2 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
  }
  .nagl-artyk hgroup p {
    margin-top: 7px;
    margin-bottom: 0px;
    font-size: medium;
  }
  .nagl-artyk p {
    margin-top: 15px;
    margin-bottom: 0px;
    font-size: x-small;
  }
  aside {
    float: right;
    border: 2px solid rgb(131, 21, 21);
    width: 175px;
    padding: 1em;
    margin: 0.25em;
    line-height: 1.4em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(131, 21, 21, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  aside:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 21, 21, 0.15);
  }
  .nagl-str li {
    list-style: none;
    display: inline-block;
    margin-right: 20px;
  }
  footer li {
    list-style: none;
    display: inline-block;
    margin-right: 20px;
  }
  footer {
    text-align: center;
	margin-top: 5px;
  }
  .nagl-str {
    text-align: center;
    justify-items: center;
    background: linear-gradient(135deg, rgb(199, 199, 199), rgb(220, 220, 220));
    border: 3px solid red;
    border-radius: 15px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 1200px;
  }
  
  .nagl-str:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.15);
  }
  .nagl-str a {
    color: red;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nagl-str a:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }
  .bl li {
    list-style: none;
    margin: 15px 0;
  }
  
  .bl a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: rgb(131, 21, 21);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .bl a:hover {
    background: rgba(131, 21, 21, 0.1);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(131, 21, 21, 0.15);
  }
  .bl {
    background: linear-gradient(135deg, rgb(225, 225, 225), rgb(240, 240, 240));
	text-align: center;
    width: 20%;
    min-height: 300px;
    padding: 20px;
	margin-left: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
  }
  
  .bl:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
  article {
    width: 74%;
  }
  div {
	display:flex;
  }
  img {float:left; margin-right:10px;}
  
  .link-bud {
    position: relative;
    color: black;
    transition: all 0.3s ease;
	text-decoration: underline;
}

.link-bud:hover::after {
    content: "Ta strona jeszcze się buduje";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
}
.jestnapisane:hover::after {
    content: "Myślałeś, że ktoś tu pisze? XDD";
    position: flex;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
}
.artykul {
	margin-left:15px;
}
.container {
	display: flex;
}
.wspieraj:hover::after {
    content: "Może siętu pojawiać więcej, wystarczy, że nam pomożesz z tym!";
    position: flex;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
}
.art-content {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255,255,255,0.6);
  border-radius: 0 0 12px 12px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Smooth scrolling and responsive improvements */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  aside {
    float: none;
    width: 100%;
    margin: 20px 0;
  }
  
  .bl {
    width: 100%;
    margin: 0;
  }
  
  .nagl-str {
    margin: 10px;
    padding: 15px;
  }
  
  .nagl-str li {
    display: block;
    margin: 10px 0;
  }
  
  .comments-box {
    min-width: auto;
    width: 100%;
    margin: 10px 0;
    padding: 12px 20px;
  }
}
/* Jasny motyw – pozostaje bez zmian */

.comments-box {
  display: block;
  justify-content: flex-start;
  align-items: center;
  background: #fff3f3;
  border: 1.5px solid #b90000;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(131, 21, 21, 0.11);
  padding: 14px 36px;
  margin: 8px 0 10px 0;
  min-width: 380px;
  width: 100%;
  max-width: 700px;
  transition: box-shadow 0.2s, background 0.2s;
}

.comments-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #b90000;
  font-weight: bold;
  font-size: 1.25em;
  gap: 15px;
  width: 100%;
}

.comments-icon {
  font-size: 1.7em;
  margin-right: 12px;
}

.comments-label {
  font-size: 1.09em;
  color: #7d0f0f;
  margin-right: 10px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.comments-count {
  font-size: 1.3em;
  letter-spacing: 1px;
  color: #b90000;
  font-weight: bold;
}

.comments-number {
  font-size: 1.3em;
  letter-spacing: 1px;
  color: #b90000;
  font-weight: bold;
}

.comments-box:hover {
  background: #ffeaea;
  box-shadow: 0 4px 18px rgba(131, 21, 21, 0.17);
}


/* Ciemny motyw */

.dark-mode .comments-box {
  background: #3a3a3f;
  border-color: #777777;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .comments-box:hover {
  background: #4a4a50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.dark-mode .comments-link {
  color: #bba039;
}
.dark-mode .comments-number {
  color: #bba039;
}
.dark-mode .comments-label {
  color: #cccccc;
}

.dark-mode .comments-count {
  color: #b90000;
}
.dark-mode .nagl-artyk {
    background: linear-gradient(135deg, rgb(199 199 199 / 0%), rgb(220 220 220 / 0%));
}
.dark-mode .art-content {
  background: rgb(165 137 137 / 18%);
}
.dark-mode .bl {
	background: linear-gradient(135deg, rgb(225 225 225 / 34%), rgb(6 6 6 / 0%));
}
:root {
  --bg-color: #ffffff;
  --text-color: black;
  --accent-color: red;
  --header-bg: rgb(199, 199, 199);
}

body.light-mode {
  --bg-color: #f0f0f0;
  --text-color: black;
  --accent-color: red;
  --header-bg: rgb(199, 199, 199);
}

body.dark-mode {
  --bg-color: #28282d;
  --text-color: #f5f5f5;
  --accent-color: #ff4444;
  --header-bg: #28282d;
}
.dark-mode a {
  color: #bba039;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.4s, color 0.4s;
}

.nagl-str {
  background-color: var(--header-bg);
  transition: background-color 0.4s;
}

.nagl-str a {
  color: var(--accent-color);
  transition: color 0.3s;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--accent-color);
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}
.bl {
  background-color: var(--bl-bg);
  transition: background-color 0.4s;
}

/* W trybie jasnym */
body.light-mode {
  --bl-bg: #f0f0f0; /* Możesz zmienić np. na white, jeśli wolisz */
}

/* W trybie ciemnym */
body.dark-mode {
  --bl-bg: #28282d;
}
nav.bottom-nav a {
  color: #ff4444;
  transition: color 0.3s;
}

nav.bottom-nav a:hover {
  color: #ff6666; /* Opcjonalnie jaśniejszy odcień przy najechaniu */
}

