/* ===== LAYOUT COMPONENTS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== FLOATING NAVBAR ===== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 12px 30px;
  border: 1px solid #333;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: calc(100% - 40px);
  /* Ensures navbar doesn't overflow */
  width: auto;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 44px;
  /* Ensures consistent height */
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* Prevents logo from shrinking */
  min-width: 80px;
  /* Ensures minimum space for logo */
}

.logo img {
  display: block;
  width: 80px;
  height: 40px;
  object-fit: contain;
  /* Ensures image scales properly */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  width: 312px;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--brand);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Auth buttons */
.auth-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.auth-btn {
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.mobile-auth-buttons {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.login-btn {
  color: #e0e0e0;
  border: 1px solid #333;
}

.login-btn:hover {
  color: #ffffff;
  border-color: #555;
}

.signup-btn {
  background: var(--brand);
  color: #ffffff;
}

.signup-btn:hover {
  background: #7fc700;
  transform: translateY(-1px);
}

/* Contact buttons with icons */
.contact-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 50%;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
  color: #ffffff;
  border-color: var(--brand);
  background: rgba(147, 228, 1, 0.1);
  transform: translateY(-2px);
}

.contact-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.contact-btn:hover .contact-icon {
  stroke: var(--brand);
}


/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and medium screens - ensure logo stays visible */
@media (max-width: 1200px) {
  .navbar {
    padding: 12px 25px;
  }

  .nav-container {
    gap: 20px;
  }

  .nav-center {
    gap: 25px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .logo img {
    width: 70px !important;
    height: 35px !important;
  }
}

@media (max-width: 1024px) {
  .navbar {
    padding: 12px 20px;
  }

  .nav-container {
    gap: 25px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .logo img {
    width: 68px !important;
    height: 34px !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 15px;
    padding: 10px 20px;
    width: calc(100% - 30px);
    max-width: 500px;
  }

  .nav-container {
    justify-content: space-between;
    gap: 0;
  }

  .nav-center {
    gap: 20px;
  }

  .logo img {
    width: 65px !important;
    height: 38px !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    flex-direction: column;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
    gap: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .auth-buttons {
    display: none;
  }

  .mobile-auth-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-auth-buttons .auth-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
  }

  .mobile-auth-buttons .contact-btn {
    width: auto;
    min-width: 120px;
    border-radius: 8px;
  }

  .mobile-auth-buttons .contact-btn .contact-icon {
    margin-right: 8px;
  }

  .mobile-auth-buttons .auth-btn.signup-btn {
    background: #ffffff;
    color: #000000;
  }

  .menu-toggle {
    display: block;
  }

}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 15px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo img {
    width: 60px !important;
    height: 40px !important;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .hero-features {
    align-items: center;
  }

}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-lg) var(--space-sm);
  }

  .footer {
    padding: var(--space-xl) var(--space-sm) var(--space-sm);
  }
}

/* Active Navigation State */
.nav-link.active {
  color: var(--brand);
}

.nav-link.active::after {
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #333;
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.5;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo-link {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-logo-link:hover {
  color: var(--brand);
}

.footer-description {
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-blog-link {
  margin-top: var(--space-sm);
}

.footer-blog-link-text {
  color: var(--brand);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-blog-link-text:hover {
  color: #ffffff;
}

.footer-blog-link-text::after {
  content: '→';
  transition: transform var(--transition-normal);
}

.footer-blog-link-text:hover::after {
  transform: translateX(3px);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-normal);
  position: relative;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--brand);
  transition: width var(--transition-normal);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-contact-buttons {
  display: flex;
  gap: var(--space-md);
}

.footer-social .social-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid #333;
  text-align: center;
}

.copyright {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Dodatkowe linki w footer */
.footer-additional-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-additional-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  /* ~13px */
  transition: color var(--transition-normal);
}

.footer-additional-links a:hover {
  color: var(--brand);
}

/* Responsywność dla dodatkowych linków */
@media (max-width: 768px) {
  .footer-additional-links {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .footer-additional-links {
    font-size: 0.75rem;
    /* ~12px */
    gap: 10px;
  }
}

/* Footer responsive design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-section {
    text-align: center;
  }

  .footer-contact-buttons,
  .footer-social .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: var(--space-xl) 0 var(--space-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-section {
    align-items: center;
  }

  .footer-contact-buttons,
  .footer-social .social-links {
    justify-content: center;
  }

  .footer-description {
    max-width: 100%;
  }

  /* Hide footer logo section on mobile */
  .footer-section.footer-logo {
    display: none;
  }

  /* Hide "Kontakt" title in footer contact section on mobile */
  .footer-contact .footer-title {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .footer-content {
    gap: var(--space-md);
  }

  .footer-logo-link {
    font-size: 1.5rem;
  }
}
