/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* VARIÁVEIS */
:root {
  --bg: #fafafa;
  --white: #ffffff;
  --text: #262626;
  --muted: #8e8e8e;
  --border: #dbdbdb;
  --like: #ed4956;
}

/* BODY */
body {
  background: var(--bg);
  color: var(--text);
  max-width: 430px;
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  z-index: 10;
}

.logo {
  font-family: "Segoe UI", cursive;
  font-size: 1.4rem;
}

.header-icons i {
  font-size: 1.2rem;
  margin-left: 16px;
  cursor: pointer;
}

/* FEED */
.feed {
  display: flex;
  flex-direction: column;
}

/* POST */
.post {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

/* POST HEADER */
.post-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
}

.post-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
}

.post-header span {
  font-weight: bold;
  font-size: 0.9rem;
}

/* POST IMAGE */
.post-image img {
  width: 100%;
  display: block;
}

/* ACTIONS */
.post-actions {
  display: flex;
  padding: 10px 14px;
}

.post-actions i {
  font-size: 1.3rem;
  margin-right: 14px;
  cursor: pointer;
}

/* LIKES */
.post-likes {
  padding: 0 14px;
  font-size: 0.9rem;
}

/* CAPTION */
.post-caption {
  padding: 6px 14px 12px;
  font-size: 0.9rem;
}

.post-caption strong {
  margin-right: 4px;
}

/* RESPONSIVO */
@media (min-width: 768px) {
  body {
    max-width: 600px;
  }
}
/* LIKE ATIVO */
.liked {
  color: var(--like);
}

/* ANIMAÇÃO DE CORAÇÃO */
.heart-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 80px;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: heart 0.8s ease forwards;
}

@keyframes heart {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* DARK MODE */
body.dark {
  --bg: #000;
  --white: #121212;
  --text: #f5f5f5;
  --border: #262626;
}
