* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #faf6f0;
  color: #3d2e1e;
}

/* HEADER */

.site-header {
  background-color: #2a1f14;
  padding: 20px 42px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

.nav-tab {
  background-color: transparent;
  color: #c8973a;
  border: 1px solid #6b4c2a;
  border-radius: 25px;
  padding: 11px 24px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}

.nav-tab:hover {
  background-color: #3d2e1e;
  color: #e8c068;
}

.nav-tab.active {
  background-color: #c8973a;
  color: #2a1f14;
  border-color: #c8973a;
}

/* HERO */

.community-hero {
  background-color: #2a1f14;
  padding: 55px 40px;
  color: #e8c068;
}

.community-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.community-hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.community-hero p {
  max-width: 600px;
  color: #e8dcc8;
  line-height: 1.6;
  margin-bottom: 25px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat-item {
  background-color: #3d2e1e;
  border: 1px solid #6b4c2a;
  border-radius: 12px;
  padding: 12px 18px;
  color: #e8dcc8;
}

.hero-stat-num {
  color: #e8c068;
  font-weight: bold;
  font-size: 22px;
  margin-right: 5px;
}

/* LAYOUT */

.community-layout {
  max-width: 1100px;
  margin: 45px auto 70px;
  padding: 0 25px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.community-feed {
  width: 100%;
}

/* NOVA OBJAVA */

.new-post-card {
  background-color: white;
  border: 1px solid #e8dcc8;
  border-radius: 14px;
  margin-bottom: 25px;
  overflow: hidden;
}

.new-post-header {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8dcc8;
}

.new-post-avatar {
  width: 40px;
  height: 40px;
  background-color: #c8973a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.new-post-placeholder {
  flex: 1;
  border: 1px solid #d8c3a5;
  background-color: #faf6f0;
  border-radius: 25px;
  padding: 11px 15px;
  text-align: left;
  color: #6b4c2a;
  cursor: pointer;
  font-size: 15px;
}

.new-post-placeholder:hover {
  background-color: #f0e8d8;
}

.post-form {
  display: none;
  padding: 20px;
}

.post-form.visible {
  display: block;
}

.post-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.post-form input,
.post-form select,
.post-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8c3a5;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  background-color: #fffdf9;
  margin-bottom: 15px;
}

.post-form textarea {
  min-height: 120px;
  resize: vertical;
}

.post-submit-btn {
  width: 100%;
  background-color: #2a1f14;
  color: #e8c068;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.post-submit-btn:hover {
  background-color: #6b4c2a;
  color: white;
}

.form-success {
  margin: 0 20px 20px;
  background-color: #e4f3e4;
  color: #27632a;
  border: 1px solid #9bc89b;
  border-radius: 8px;
  padding: 12px;
}

/* PRAZNE OBJAVE */

.empty-posts {
  background-color: white;
  border: 1px solid #e8dcc8;
  border-radius: 14px;
  padding: 30px;
  text-align: center;
}

.empty-posts h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.empty-posts p {
  color: #6b4c2a;
  line-height: 1.5;
}

/* SIDEBAR */

.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background-color: white;
  border: 1px solid #e8dcc8;
  border-radius: 14px;
  overflow: hidden;
}

.sidebar-widget-header {
  background-color: #2a1f14;
  padding: 14px 18px;
}

.sidebar-widget-header h3 {
  color: #e8c068;
  font-size: 17px;
}

.sidebar-widget-body {
  padding: 16px 18px;
}

.dest-row {
  padding: 9px 0;
  border-bottom: 1px solid #e8dcc8;
}

.dest-row:last-child {
  border-bottom: none;
}

.dest-row-name {
  color: #3d2e1e;
  font-weight: bold;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud-item {
  background-color: #f0e8d8;
  color: #6b4c2a;
  border-radius: 15px;
  padding: 6px 10px;
  font-size: 13px;
}

/* TELEFON IN TABLICA */

@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 18px 20px;
    justify-content: center;
  }

  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .community-hero {
    padding: 40px 25px;
  }

  .community-hero h1 {
    font-size: 32px;
  }

  .post-form-row {
    grid-template-columns: 1fr;
  }
}