:root {
  --pink-500: #ec4899;
  --pink-400: #f472b6;
  --pink-100: #fce7f3;
  --yellow-400: #facc15;
  --blue-400: #60a5fa;
  --bg-color: #fff0f5;
  --text-main: #4a044e;
  --radius-bubble: 20px;
  --font-comic: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
  --shadow-pop: 4px 4px 0px rgba(0,0,0,0.1);
}

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

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(#fbcfe8 20%, transparent 20%);
  background-size: 20px 20px;
  color: var(--text-main);
  font-family: var(--font-comic);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 20px 0;
}
.header-inner {
  display: flex;
  justify-content: center;
}
.brand {
  background: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  border: 3px solid var(--pink-500);
  box-shadow: var(--shadow-pop);
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-500);
  transform: rotate(-2deg);
}
.brand img { width: 32px; height: 32px; }

/* Hero */
.hero {
  padding: 40px 0 60px;
  text-align: center;
}
.hero-card {
  background: #fff;
  border: 4px solid var(--text-main);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 10px 10px 0px var(--pink-400);
  position: relative;
  overflow: hidden;
}
.hero-content h1 {
  font-size: 3rem;
  color: var(--pink-500);
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--text-main);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: bold;
}
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-pop {
  padding: 12px 24px;
  background: var(--yellow-400);
  border: 3px solid var(--text-main);
  border-radius: 15px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 4px 4px 0 var(--text-main);
  transition: transform 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-pop:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--text-main); }
.btn-pop.secondary { background: var(--blue-400); color: #fff; }
.btn-pop img { width: 24px; }
.hero-img {
  margin: 40px auto 0;
  border-radius: 20px;
  border: 3px solid var(--text-main);
  transform: rotate(2deg);
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

/* Features */
.section { padding: 40px 0; }
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 15px;
  bottom: 5px;
  left: 0;
  background: var(--yellow-400);
  z-index: -1;
  opacity: 0.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.feature-bubble {
  background: #fff;
  padding: 30px;
  border-radius: 30px;
  border: 3px solid var(--text-main);
  box-shadow: 6px 6px 0 var(--blue-400);
  transition: transform 0.2s;
}
.feature-bubble:hover { transform: scale(1.05) rotate(1deg); }
.feature-title {
  color: var(--pink-500);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* Gallery */
.gallery-container {
  overflow-x: auto;
  padding: 20px;
  background: var(--pink-100);
  border: 3px solid var(--text-main);
  border-radius: 20px;
}
.gallery-flex {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.gallery-flex img {
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: auto;
  max-width: 315px;
  object-fit: cover;
}

/* Posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}
.post-item {
  background: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  border: 2px solid var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}
.post-item:hover { background: var(--yellow-400); transform: translateX(10px); }
.post-title { font-weight: bold; }
.post-date { background: var(--pink-500); color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; }

/* Friends */
.friend-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.friend-tag {
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--text-main);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}
.friend-tag:hover { background: var(--blue-400); color: #fff; }
.friend-tag img { width: 20px; height: 20px; border-radius: 50%; }

/* Comments */
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.comment-box {
  background: #fff;
  padding: 20px;
  border-radius: 20px 20px 20px 0;
  border: 3px solid var(--text-main);
  position: relative;
}
.comment-box::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--text-main);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.comment-author { font-weight: bold; color: var(--pink-500); margin-bottom: 5px; }

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  font-weight: bold;
  color: var(--pink-500);
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-flex { flex-direction: column; align-items: center; }
  .gallery-flex img { width: 100%; }
}
