/* 🌐 Базовий Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* 🔗 Посилання */
a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* 🔝 Header */
header {
  background: #6a1b9a;
  color: white;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 24px;
}

header h1 a {
  color: white;
}

.header-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}

.header-nav a {
  background: white;
  color: #6a1b9a;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
}

.header-nav a:hover {
  background: #f3e5f5;
}

/* 📦 Контейнер */
main {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 15px;
}

/* 📉 Медія для ширших екранів */
@media (min-width: 600px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-nav {
    margin-top: 0;
  }
}

/* ✅ Повідомлення */
.message-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  text-align: center;
}

.message-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  text-align: center;
}

/* 🦶 Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  font-size: 14px;
  color: #666;
  margin-top: 30px;
}

/* 🧩 Карточки */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 18px;
}

/* 🖼️ Фото */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 📋 Форми */
form input,
form textarea,
form select,
form button {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

form button {
  background: #6a1b9a;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

form button:hover {
  background: #8e24aa;
}

.teaser-block {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.teaser-ad {
  display: block;
  width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: box-shadow 0.2s ease;
}
.teaser-ad:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.teaser-ad img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.teaser-title {
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
}
.tizer-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 20px !important;
  margin: 30px 0 !important;
  overflow-x: auto !important;
  padding: 10px !important;
}

.tizer-item {
  display: block !important;
  width: 200px !important;
  text-align: center !important;
  background: #fff !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: #000 !important;
  flex-shrink: 0 !important;
  transition: box-shadow 0.2s ease !important;
  border: 1px solid #eee !important;
}

.tizer-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.tizer-item img {
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.tizer-title {
  font-size: 14px !important;
  padding: 10px !important;
  font-weight: 600 !important;
}

.add-post-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6a1b9a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
  z-index: 9999;
  transition: background 0.3s ease;
}
.add-post-fixed:hover {
  background: #8e24aa;
}