/* components.css */
/* --- NAPRAWIONY NAVBAR --- */
.navbar {
  backdrop-filter: blur(12px) saturate(180%);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.08));
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) * 1.2);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: var(--max-width);
  margin: 24px auto;
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.navbar li {
  position: relative;
  z-index: 1002;
}

.navbar a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  position: relative;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease), background 0.22s var(--ease);
  border-radius: 6px;
  display: block;
  white-space: nowrap;
  z-index: 1003;
}

/* --- HEADER STYLES --- */
header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 48px 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.05));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: visible;
  width: 100%;
  min-height: auto;
}

header h1 {
  font-size: 3.5rem;
  margin: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  word-wrap: break-word;
}

header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 2px;
  transform: scaleX(0.8);
  transform-origin: left center;
  animation: pulseLine 3s infinite alternate;
}

@keyframes pulseLine {
  0% { transform: scaleX(0.8); opacity: 0.7; }
  100% { transform: scaleX(1); opacity: 1; }
}

header h2, header p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* vote button */
.vote-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  color: #022;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 25px rgba(27,40,60,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  text-decoration: none;
  display: inline-block;
}

.vote-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.7s ease;
}

.vote-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(27,40,60,0.6), 0 0 0 1px rgba(255,255,255,0.15);
  color: #022;
}

.vote-button:hover::before {
  left: 100%;
}

/* --- LOGO NA KAŻDEJ STRONIE --- */
.page-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  z-index: 1000;
  border-radius: 16px;
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(255,255,255,0.1);
  border: 2px solid var(--glass-border);
  transition: all 0.4s var(--ease);
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
  backdrop-filter: blur(15px);
  overflow: hidden;
}

.page-logo:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-1), 0 0 30px rgba(123,226,255,0.4), 0 0 0 1px rgba(123,226,255,0.3);
  border-color: rgba(123,226,255,0.5);
}

.page-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.4s var(--ease);
}

.page-logo:hover img {
  transform: scale(1.1);
}