/* Główne zmienne CSS - można je zmieniać dla różnych "skinów" */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --bg-color: #ffffff;
  --text-color: #333333;
  --light-bg: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset i podstawowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header i nawigacja */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo a:hover {
  opacity: 0.9;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link[aria-current="page"] {
  background-color: var(--secondary-color);
}

/* Main content */
main {
  flex: 1;
  padding: 2rem 0;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.hero-title {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero-image-wrapper {
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 1.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-image {
    max-height: 300px;
  }
}

/* Cards/Sections */
.card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card p {
  margin: 0.75rem 0;
}

.card strong {
  color: var(--primary-color);
}

.card a {
  color: var(--secondary-color);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* Documents List */
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.document-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.document-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-info {
  flex: 1;
}

.document-title {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.document-description {
  margin: 0 0 0.75rem 0;
  color: var(--text-color);
  line-height: 1.5;
}

.document-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.document-type {
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

.document-size {
  display: flex;
  align-items: center;
}

.document-actions {
  flex-shrink: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-download:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

.download-icon {
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-column p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.footer-column strong {
  color: white;
  font-weight: 600;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: white;
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.footer-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 768px) {
  nav {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .nav-menu-open {
    max-height: 400px;
    padding: 1rem 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 0;
  }

  .container {
    padding: 0 1rem;
  }

  main {
    padding: 1.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  footer {
    padding: 2rem 0 1rem;
  }

  .document-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-actions {
    width: 100%;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* Przykładowy alternatywny skin - można go aktywować poprzez dodanie klasy do <html> */
.skin-dark {
  --primary-color: #1a1a1a;
  --secondary-color: #4a90e2;
  --accent-color: #ff6b6b;
  --bg-color: #2d2d2d;
  --text-color: #ffffff;
  --light-bg: #3d3d3d;
  --border-color: #555555;
}

/* Skin zielony */
.skin-green {
  --primary-color: #27ae60;
  --secondary-color: #2ecc71;
  --accent-color: #e67e22;
}

