/* Community Section Styles */

.community {
  background: linear-gradient(135deg, #fafafa 0%, var(--color-white) 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.community__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.community__header {
  text-align: center;
  margin-bottom: 5px;
}

.community__title {
  font-family: var(--font-family-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
  margin: 0 0 var(--space-4) 0;
}

.community__description {
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-600);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.community__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community__features {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.community__features p {
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-600);
  margin: 0;
}

.community__features strong {
  color: var(--color-gray-800);
  font-weight: 600;
}

.community__benefit {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.community__benefit-icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}

.community__benefit p {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-gray-500);
  margin: 0;
  font-style: italic;
  margin-top: 10px;
}

.community__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  width: 100%;
  position: relative;
}

.community__peek-character {
  position: relative;
  z-index: 10;
  margin-bottom: -30px;
}

.peek-character-image {
  width: 120px;
  height: auto;
}

/* Chat Preview Styles */
.community__chat-preview {
  width: 100%;
  max-width: 500px;
  background: #e5ddd5;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,.02) 10px, rgba(0,0,0,.02) 20px);
  border: 2px solid #1B1B1B;
  border-top: none;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: none !important;
  transition: none !important;
}

.community__chat-preview:hover {
  transform: none !important;
}

.community__chat-preview::before,
.community__chat-preview::after {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  background: #1B1B1B;
}

.community__chat-preview::before {
  left: 0;
  width: 42%;
  border-top-left-radius: 16px;
}

.community__chat-preview::after {
  right: 0;
  width: 42%;
  border-top-right-radius: 16px;
}

/* Chat Header */
.chat-header {
  background: #f0f0f0;
  padding: 12px 16px;
  border-bottom: 1px solid #d1d1d1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header__avatar {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header__youtube-icon {
  width: 24px;
  height: 24px;
  color: #ff0000;
}

.chat-header__title {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

/* Chat Messages */
.chat-messages {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.chat-message {
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 85%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message__sender {
  font-family: var(--font-family-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.chat-message__sender--tech {
  color: #00a884;
}

.chat-message__sender--finance {
  color: #0088cc;
}

.chat-message__sender--lifestyle {
  color: #d946ef;
}

.chat-message__text {
  font-family: var(--font-family-primary);
  font-size: 14px;
  line-height: 1.5;
  color: #1f1f1f;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.chat-message__time {
  font-family: var(--font-family-primary);
  font-size: 11px;
  color: #667781;
  text-align: right;
}

.community__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  margin-top: var(--space-4);
}

.community__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, #d32f2f 100%);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 16px;
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.community__button--whatsapp {
  background: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.community__button:hover {
  transform: translateY(-3px);
}

.community__button--whatsapp:hover {
  transform: translateY(-3px);
  background: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.community__button-text {
  font-size: 18px;
  font-weight: 600;
}

.community__button-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.community__button-icon--whatsapp {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.community__cta-note {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray-500);
  margin: 0;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .community__features {
    gap: var(--space-4);
  }
  
  .community__title {
    font-size: 40px;
  }
  
  .community__visual {
    max-width: 400px;
  }
  
  .peek-character-image {
    width: 100px;
  }
  
  .community__chat-preview {
    max-width: 450px;
  }
  
  .chat-messages {
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  .community {
    padding: 72px 0;
  }
  
  .community__container {
    padding: 0 var(--space-4);
  }
  
  .community__header {
    margin-bottom: 60px;
  }
  
  
  .community__title {
    font-size: 36px;
  }
  
  .community__description {
    font-size: 18px;
  }
  
  .community__features p {
    font-size: 16px;
  }
  
  .community__button {
    padding: var(--space-3) var(--space-6);
    font-size: 16px;
  }
  
  .community__visual {
    max-width: 350px;
  }
  
  .peek-character-image {
    width: 80px;
  }
  
  .community__chat-preview {
    max-width: 350px;
  }
  
  .chat-messages {
    max-height: 200px;
    padding: 12px 10px;
  }
  
  .chat-message__text {
    font-size: 13px;
  }
  
  .chat-header__title {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .community {
    padding: 60px 0;
  }
  
  .community__container {
    padding: 0 var(--space-3);
  }
  
  .community__header {
    margin-bottom: 48px;
  }
  
  .community__title {
    font-size: 32px;
  }
  
  .community__description {
    font-size: 16px;
  }
  
  .community__features p {
    font-size: 15px;
  }
  
  .community__benefit p {
    font-size: 14px;
  }
  
  .community__button {
    padding: var(--space-3) var(--space-5);
    font-size: 16px;
  }
  
  .community__visual {
    max-width: 300px;
  }
  
  .peek-character-image {
    width: 70px;
  }
  
  .community__chat-preview {
    max-width: 320px;
  }
  
  .chat-messages {
    max-height: 180px;
    padding: 10px 8px;
  }
  
  .chat-message {
    padding: 6px 10px;
  }
  
  .chat-message__text {
    font-size: 12px;
  }
  
  .chat-message__sender {
    font-size: 12px;
  }
  
  .chat-header {
    padding: 10px 12px;
  }
  
  .chat-header__title {
    font-size: 14px;
  }
  
  .chat-header__avatar {
    width: 32px;
    height: 32px;
  }
  
  .chat-header__youtube-icon {
    width: 20px;
    height: 20px;
  }
}