/* ============================
   RESET
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  background-color: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================
   CONTAINER
============================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

/* ============================
   SIDEBAR
============================ */
.profile-sidebar {
  position: sticky;
  top: 60px;
  animation: fadeInLeft 0.8s ease-out;
}

.profile-content {
  text-align: left;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin-bottom: 32px;
  object-fit: cover;
  border: 1px solid #e5e5e5;
  transition: transform 0.4s ease;
}

.profile-pic:hover {
  transform: scale(1.02);
}

.profile-name {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.profile-title {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  margin-bottom: 24px;
}

.profile-bio {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  justify-content: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 14px;
  color: #666;
}

/* ============================
   CONTENT AREA
============================ */
.content-area {
  animation: fadeInRight 0.8s ease-out;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ============================
   CARDS
============================ */
.bento-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 140px;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ============================
   CARD HEADER
============================ */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.card-status {
  font-size: 24px;
}

/* ============================
   CARD FEATURED (Resume)
============================ */
.card-featured {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.card-featured .card-title {
  color: #ffffff;
}
.card-featured .card-description {
  color: rgba(255, 255, 255, 0.7);
}
.card-featured:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.card-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

/* ============================
   CARDS INTERACTIVE (Spotify, Goodreads, Email)
============================ */
.card-interactive {
  display: flex;
  flex-direction: column; /* vertical layout para header no topo */
  padding: 16px 24px;
  min-height: 120px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.3s ease;
  cursor: default;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

/* ============================
   SPOTIFY & GOODREADS BODY
============================ */
#spotify-info,
.goodreads-book {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* Wrapper da imagem */
.spotify-cover-wrapper,
.goodreads-cover-wrapper {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

#spotify-cover,
#goodreads-cover {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0;
}

/* Texto ao lado da imagem */
.spotify-text,
.goodreads-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  overflow: hidden;
}

.card-track,
.card-book-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist,
.card-book-author {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================
   EMAIL CARD
============================ */
.card-interactive .contact-email-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
}

.contact-email {
  font-size: 14px;
  color: #1a1a1a;
  flex: 1;
}

.copy-button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.copy-button:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.copy-button.copied {
  background: #22c55e;
}

/* ============================
   SIDEBAR INFO (Weather / Time)
============================ */
.sidebar-info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.info-card h4 {
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.info-card p {
  font-size: 0.875rem;
}

/* ============================
   FOOTER
============================ */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 13px;
  border-top: 1px solid #e5e5e5;
  margin-top: 80px;
}

/* ============================
   ANIMAÇÕES
============================ */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================
   RESPONSIVO
============================ */
@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 40px;
  }

  .profile-sidebar {
    position: relative;
    top: 0;
  }

  .profile-content {
    text-align: center;
  }

  .profile-status {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 30px 20px;
  }

  .profile-pic {
    width: 140px;
    height: 140px;
  }

  .profile-name {
    font-size: 28px;
  }

  .profile-title {
    font-size: 16px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card {
    padding: 20px;
    min-height: 120px;
  }

  #spotify-info,
  .goodreads-book {
    flex-direction: column;
    align-items: flex-start;
  }
}
