/* ==========================================================================
   Base & Reset
   ========================================================================== */

/* LATIN-EXT (Kashubian diacritics ô ë ã) - Light 300 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Lato-Light-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* LATIN - Light 300 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Lato-Light-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LATIN-EXT - Regular 400 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Lato-Regular-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* LATIN - Regular 400 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Lato-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LATIN-EXT - Italic 400 */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Lato-Italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* LATIN - Italic 400 */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Lato-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LATIN-EXT - Bold 700 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Lato-Bold-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* LATIN - Bold 700 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Lato-Bold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --kaszub-gold: #FFC300;
  --kaszub-dark-gold: #e6b000;
  --kaszub-black: #1a1a1a;
  --sea-blue: #0d7377;
  --sea-blue-light: #14a3a8;
  --gdynia-red: #c62828;
  --bg-light: #fafafa;
  --bg-dark: #111111;
  --text-primary: #222222;
  --text-light: #666666;
  --text-on-dark: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Lato', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Extras */
::selection {
  background-color: var(--kaszub-gold);
  color: var(--kaszub-black);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--kaszub-gold);
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: 3px solid var(--kaszub-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  transition: all var(--transition);
}

.btn--primary {
  background-color: var(--kaszub-gold);
  color: var(--kaszub-black);
}
.btn--primary:hover {
  background-color: var(--kaszub-dark-gold);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: var(--kaszub-black);
  color: var(--text-on-dark);
}
.btn--secondary:hover {
  background-color: #333;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Navigation (.navbar)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: transparent;
  transition: background-color var(--transition), padding var(--transition);
}
.navbar--scrolled {
  background-color: var(--bg-dark);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kaszub-gold);
  text-decoration: none;
}

/* Nav menu — uses .nav-menu (matches JS class names) */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  flex-direction: column;
  padding: 1rem 0;
  display: none;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
}
.nav-menu--open {
  display: flex;
}

.nav-menu__link {
  color: var(--text-on-dark);
  padding: 0.75rem 1.5rem;
  display: block;
  font-weight: 700;
  text-decoration: none;
}
.nav-menu__link:hover,
.nav-menu__link--active {
  color: var(--kaszub-gold);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
}
.lang-switcher__btn {
  color: var(--text-on-dark);
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
}
.lang-switcher__btn:hover {
  border-color: var(--kaszub-gold);
}
.lang-switcher__btn--active {
  background-color: var(--kaszub-gold);
  color: var(--kaszub-black);
}

/* Highlighted Shop Button in Navbar */
.nav-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--kaszub-gold);
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 199, 44, 0.4);
  line-height: 1.2;
  white-space: nowrap;
  margin: 0.5rem 1.5rem;
  font-family: inherit;
}
.nav-shop-btn:hover,
.nav-shop-btn--active {
  background-color: #ffea00;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 199, 44, 0.65);
}

/* Highlighted Tabaka Button in Footer */
.footer-tabaka-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #FFDD00;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 221, 0, 0.4);
  font-family: inherit;
}
.footer-tabaka-btn:hover {
  background-color: #ffea00;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 221, 0, 0.75);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--kaszub-gold);
  transition: all 0.3s;
  border-radius: 3px;
}
.nav-toggle--active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle--active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle--active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Body no-scroll when menu or modal is open */
body.no-scroll {
  overflow: hidden;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-menu__link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .nav-shop-btn {
    margin: 0 0.5rem;
  }
  .lang-switcher {
    padding: 0;
    margin-left: 0.5rem;
  }
}

/* ==========================================================================
   Hero Section (.hero)
   ========================================================================== */

.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../photos/sea_towers.jpg') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 17, 17, 0.7); /* Dark overlay */
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--kaszub-gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-on-dark);
  max-width: 600px;
  margin: 0 auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--kaszub-gold);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

/* ==========================================================================
   Tourist Section (.tourist)
   ========================================================================== */

.tourist__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.tourist__card {
  background-color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tourist__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.tourist__card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tourist__card-content {
  padding: 1.5rem;
}

.tourist__card-title {
  color: var(--sea-blue);
  margin-bottom: 0.5rem;
}

.tourist__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: var(--sea-blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.tourist__card-link:hover {
  color: var(--kaszub-dark-gold);
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .tourist__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tourist__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Postcard Generator (.postcard)
   ========================================================================== */

.postcard {
  background-color: #fff;
}

.postcard__container {
  max-width: 800px;
  margin: 0 auto;
}

.postcard__dropzone {
  border: 2px dashed #ccc;
  border-radius: var(--radius-md);
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
  transition: border-color var(--transition), background-color var(--transition);
  cursor: pointer;
}
.postcard__dropzone:hover, .postcard__dropzone.dragover {
  border-color: var(--kaszub-gold);
  background-color: rgba(255, 195, 0, 0.05);
}

.postcard__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.postcard__instructions {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

/* Postcard dropzone active state (drag over) */
.postcard__dropzone--active {
  border-color: var(--kaszub-gold);
  background-color: rgba(255, 195, 0, 0.1);
}

/* Hide dropzone after image loaded */
.postcard__dropzone--hidden {
  display: none;
}

/* =========================================================
   CALENDAR SECTION ("Kartka z kalendarza")
   ========================================================= */
.calendar {
  background-color: var(--kaszub-cream);
  padding: 4rem 0;
}

.calendar__card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  border-left: 6px solid var(--kaszub-gold);
  max-width: 900px;
  margin: 0 auto;
}

.calendar__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.calendar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--kaszub-black);
  color: var(--kaszub-gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calendar__badge svg {
  width: 15px;
  height: 15px;
  stroke: var(--kaszub-gold);
}

.calendar__date {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.calendar__title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--kaszub-black);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.calendar__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 1.25rem;
}

.calendar__quote-box {
  background-color: #f9f8f3;
  border-left: 4px solid var(--kaszub-gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
}

.calendar__quote {
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #222222;
}

/* =========================================================
   QUIZ SECTION
   ========================================================= */
.quiz {
  background-color: #ffffff;
  padding: 4rem 0;
}

.quiz__card {
  background-color: var(--kaszub-cream);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  border-top: 5px solid var(--kaszub-gold);
}

.quiz__header {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--kaszub-black);
  color: var(--kaszub-gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.quiz__badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--kaszub-gold);
}

.quiz__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--kaszub-black);
  margin-bottom: 0.5rem;
}

.quiz__subtitle {
  color: #555555;
  font-size: 1.05rem;
}

.quiz__question-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--kaszub-black);
  margin-bottom: 1.25rem;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.quiz__option-btn {
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz__option-btn:hover {
  border-color: var(--kaszub-gold);
  background-color: rgba(255, 195, 0, 0.08);
}

.quiz__option-btn--selected {
  border-color: var(--kaszub-black);
  background-color: var(--kaszub-black);
  color: var(--kaszub-gold);
}

.quiz__option-btn--correct {
  border-color: #2e7d32 !important;
  background-color: #e8f5e9 !important;
  color: #1b5e20 !important;
  font-weight: 700;
}

.quiz__option-btn--incorrect {
  border-color: #c62828 !important;
  background-color: #ffebee !important;
  color: #b71c1c !important;
}

.quiz__result {
  text-align: center;
  padding: 1.5rem;
}

.quiz__score {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--kaszub-black);
  margin-bottom: 0.5rem;
}

.quiz__feedback {
  font-size: 1.15rem;
  color: #333333;
  margin-bottom: 1.75rem;
}

.quiz__actions-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.quiz__share-grid {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.quiz__btn svg {
  width: 18px;
  height: 18px;
}

.quiz__btn--primary {
  background-color: var(--kaszub-black);
  color: var(--kaszub-gold);
}
.quiz__btn--primary:hover {
  background-color: #222222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quiz__btn--gold {
  background-color: var(--kaszub-gold);
  color: var(--kaszub-black);
}
.quiz__btn--gold:hover {
  background-color: #ffb700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 195, 0, 0.3);
}

.quiz__btn--facebook {
  background-color: #1877f2;
  color: #ffffff;
}
.quiz__btn--facebook:hover {
  background-color: #1464cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.quiz__btn--whatsapp {
  background-color: #25d366;
  color: #ffffff;
}
.quiz__btn--whatsapp:hover {
  background-color: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.quiz__btn--outline {
  background-color: #ffffff;
  border: 1.5px solid #d0d0d0;
  color: #333333;
}
.quiz__btn--outline:hover {
  background-color: #f5f5f5;
  border-color: #999999;
  transform: translateY(-2px);
}

/* =========================================================
   UNIFIED SUPPORT & SHOP BUTTONS
   ========================================================= */
.support-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  line-height: 1.2;
}

.support-btn svg {
  width: 18px;
  height: 18px;
}

.support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.support-btn--shop {
  background-color: var(--kaszub-gold);
  color: var(--kaszub-black);
}

.support-btn--facebook {
  background-color: #1877f2;
  color: #ffffff;
}

.support-btn--tabaka {
  background-color: #FFDD00;
  color: var(--kaszub-black);
}

.calendar__author {
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: #666666;
}

/* =========================================================
   ARTICLE & KNOWLEDGE BASE (ENCYCLOPEDIA) LAYOUT
   ========================================================= */
.article-page {
  padding-top: 110px;
  padding-bottom: 60px;
  background-color: #F8F9FA;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--kaszub-black);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--kaszub-gold);
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.article__tag {
  display: inline-block;
  background-color: var(--kaszub-gold);
  color: var(--kaszub-black);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.article__title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  line-height: 1.25;
  color: var(--kaszub-black);
  margin-bottom: 1rem;
}

.article__meta {
  display: flex;
  gap: 1.5rem;
  color: #777777;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eeeeee;
  flex-wrap: wrap;
}

.article__lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #222222;
  font-weight: 500;
  margin-bottom: 2rem;
  border-left: 4px solid var(--kaszub-gold);
  padding-left: 1.25rem;
}

.article__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333333;
}

.article__body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--kaszub-black);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 195, 0, 0.3);
}

.article__body h3 {
  font-size: 1.25rem;
  color: var(--kaszub-black);
  margin: 1.5rem 0 0.75rem;
}

.article__body p {
  margin-bottom: 1.25rem;
}

.article__body ul, .article__body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article__body li {
  margin-bottom: 0.5rem;
}

.article__figure {
  margin: 2.5rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.article__img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

.article__caption {
  font-size: 0.88rem;
  color: #666666;
  margin-top: 0.65rem;
  font-style: italic;
  text-align: center;
}

.article__infobox {
  background: #fdfbf7;
  border: 1px solid #e9e4d9;
  border-left: 4px solid var(--kaszub-black);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.75rem 0;
}

.article__share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid #eeeeee;
  flex-wrap: wrap;
}

.article__report-error {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #999999;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: color 0.2s ease;
}

.article__report-error:hover {
  color: #c62828;
  text-decoration: underline;
  background: transparent;
}

.article__report-error svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  opacity: 0.8;
}

.article__related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--kaszub-gold);
}

.article__related-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--kaszub-black);
}

.article__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.article__related-card {
  background: #fdfbf7;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #e9e4d9;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article__related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  border-color: var(--kaszub-gold);
}

.article__related-card h4 {
  font-size: 1.05rem;
  color: var(--kaszub-black);
  margin-bottom: 0.4rem;
}

.article__related-card p {
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .article-container {
    padding: 1.75rem 1.25rem;
  }
  .article__title {
    font-size: 1.75rem;
  }
}

/* Show controls only after image loaded */
.postcard__controls {
  display: none;
}
.postcard__controls--visible {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Canvas wrapper */
.postcard__canvas-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
  max-width: 800px;
  touch-action: none; /* Prevent browser scroll while on canvas */
}

.postcard__canvas-wrap canvas {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* Upload icon */
.postcard__upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Hidden file input */
.postcard__file-input {
  display: none;
}

/* Section headings */
.section__heading {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--kaszub-black);
}

.section__intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   Shop CTA (.shop)
   ========================================================================== */

.shop {
  background-color: var(--kaszub-black);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
}

.shop__title {
  color: var(--kaszub-gold);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.shop__description {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.shop__iframe-wrapper {
  width: 100%;
  max-width: 850px;
  margin: 2rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
}
.shop__iframe-wrapper iframe {
  width: 100%;
  height: 650px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .shop__iframe-wrapper iframe {
    height: 700px;
  }
}

.shop__btn {
  font-size: 1.25rem;
  padding: 1rem 2rem;
}

.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-separator svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}
.wave-separator .shape-fill {
  fill: var(--bg-light); /* Transition to next section if needed */
}

/* ==========================================================================
   Footer (.footer)
   ========================================================================== */

.footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3rem 0;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--kaszub-gold);
}
.footer__link:hover {
  text-decoration: underline;
}

.footer__text {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==========================================================================
   Modal (.modal)
   ========================================================================== */

.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal--active {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-md);
  max-width: 92%;
  width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px);
  transition: transform var(--transition);
}
.modal--active .modal__content {
  transform: translateY(0);
}

.modal__body {
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 1rem;
}
.modal__body h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--sea-blue);
  font-size: 1.05rem;
}
.modal__body ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.modal__body li {
  margin-bottom: 0.5rem;
}
.modal__body a {
  color: var(--sea-blue);
  text-decoration: underline;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-light);
}
.modal__close:hover {
  color: var(--gdynia-red);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--kaszub-gold);
  color: var(--kaszub-black);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: var(--kaszub-dark-gold);
  transform: translateY(-3px);
}

/* ==========================================================================
   Kashubia Subpage (.kashubia)
   ========================================================================== */

.kashubia {
  padding-top: 100px; /* Account for fixed navbar */
}

.kashubia__hero {
  background: var(--kaszub-black);
  color: var(--kaszub-gold);
  padding: 3rem 0;
  text-align: center;
}

.kashubia__hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 0.5rem;
}

.kashubia__hero p {
  color: var(--text-on-dark);
  max-width: 600px;
  margin: 0 auto;
}

.kashubia__section {
  padding: 3rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.kashubia__section:last-of-type {
  border-bottom: none;
}

.kashubia__section h2 {
  color: var(--sea-blue);
  margin-bottom: 1rem;
}

.kashubia__section img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.kashubia__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--kaszub-gold);
  font-weight: 700;
  margin: 2rem 0;
}
.kashubia__back:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .navbar, .hero, .shop, .footer, .btn, .modal {
    display: none !important;
  }
  .container {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .section {
    padding: 1rem 0;
  }
  h1, h2, h3 {
    page-break-after: avoid;
  }
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
