/* ===== BLUE FARM COMMUNITY CTA STYLES ===== */

/* TOP ANNOUNCEMENT BAR */
.community-top-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #E86933, #ff7f50);
  padding: 12px 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.5s ease-out;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-bar-text {
  color: white;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}

.top-bar-buttons {
  display: flex;
  gap: 12px;
}

.top-bar-btn {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.top-bar-btn.telegram {
  background: #0088cc;
  color: white;
}

.top-bar-btn.telegram:hover {
  background: #006699;
  transform: translateY(-2px);
}

.top-bar-btn.whatsapp {
  background: #25D366;
  color: white;
}

.top-bar-btn.whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

.top-bar-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.top-bar-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* FLOATING BUTTONS */
.floating-community-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  overflow: hidden;
  white-space: nowrap;
}

.float-btn .btn-icon {
  font-size: 20px;
  line-height: 1;
}

.float-btn .btn-text {
  max-width: 0;
  opacity: 0;
  transition: all 0.3s;
  overflow: hidden;
}

.float-btn:hover .btn-text {
  max-width: 150px;
  opacity: 1;
  margin-left: 5px;
}

.float-btn.telegram {
  background: #0088cc;
  color: white;
}

.float-btn.telegram:hover {
  background: #006699;
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.float-btn.whatsapp {
  background: #25D366;
  color: white;
}

.float-btn.whatsapp:hover {
  background: #1da851;
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* COMMUNITY CTA SECTION */
.community-cta-section {
  padding: 60px 40px;
  background: var(--bg-navy);
}

.community-cta-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
}

.community-cta-box h2 {
  color: var(--primary-orange);
  font-size: 36px;
  margin-bottom: 15px;
}

.cta-subtitle {
  color: white;
  font-size: 22px;
  margin-bottom: 35px;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  min-width: 220px;
  justify-content: center;
}

.cta-btn .btn-icon {
  font-size: 24px;
}

.cta-btn.telegram {
  background: #0088cc;
  color: white;
}

.cta-btn.telegram:hover {
  background: #006699;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.cta-btn.whatsapp {
  background: #25D366;
  color: white;
}

.cta-btn.whatsapp:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.cta-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.benefit {
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 500;
  padding: 12px;
  background: rgba(232, 105, 51, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(232, 105, 51, 0.2);
}

/* ANIMATIONS */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .community-top-bar {
    padding: 10px 15px;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .top-bar-text {
    font-size: 14px;
    text-align: center;
  }

  .top-bar-buttons {
    width: 100%;
    justify-content: center;
  }

  .top-bar-btn {
    padding: 6px 15px;
    font-size: 13px;
  }

  .top-bar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .floating-community-buttons {
    bottom: 20px;
    right: 20px;
    left: auto;
  }

  .float-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .float-btn .btn-icon {
    font-size: 18px;
  }

  .float-btn:hover .btn-text {
    max-width: 120px;
  }

  .community-cta-section {
    padding: 40px 20px;
  }

  .community-cta-box {
    padding: 35px 25px;
  }

  .community-cta-box h2 {
    font-size: 28px;
  }

  .cta-subtitle {
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-btn {
    width: 100%;
    min-width: auto;
    padding: 15px 30px;
    font-size: 16px;
  }

  .cta-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .benefit {
    font-size: 14px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .floating-community-buttons {
    bottom: 15px;
    right: 15px;
  }

  .float-btn {
    padding: 8px 12px;
  }

  .top-bar-text {
    font-size: 13px;
  }
}