* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  padding-top: 70px;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --dark-bg: #111111;
  --text-color: #ffffff;
  --primary-color: #ff3e6c;
  --navbar-bg: rgba(17, 17, 17, 0.8);
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  background-image: linear-gradient(to right, #222 1px, transparent 1px),
    linear-gradient(to bottom, #222 1px, transparent 1px);
  background-size: 50px 50px;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

.navbar {
  display: flex;
  padding: 15px 50px;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  font-size: 2rem;
  width: 150px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.9em;
  opacity: 0.8;
}

.icon {
  font-size: 1.2em;
  gap: 5px;
  padding-top: 2px;
}

.icone-imagem {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.search-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #333;
  border-radius: 5px;
  padding: 5px;
  position: relative;
  flex: 1;
  max-width: 280px;
}

.search-input {
  background: none;
  border: none;
  color: var(--text-color);
  padding: 5px 10px;
  outline: none;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  background: #555;
  border: none;
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  position: absolute;
  right: 5px;
  top: 5px;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #2a2a2a;
  border-radius: 0 0 8px 8px;
  margin-top: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.search-suggestions.active {
  max-height: 300px;
  opacity: 1;
  animation: slideDown 0.3s ease-out;
}

.suggestion-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--text-color);
  font-size: 0.9em;
}

.suggestion-item .suggestion-text {
  flex: 1;
}

.suggestion-item .suggestion-type {
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 62, 108, 0.2);
  color: #ff3e6c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-item .suggestion-type--user {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.suggestion-item:hover {
  background-color: #3a3a3a;
}

.suggestion-item:first-child {
  animation: fadeInItem 0.3s ease-out 0.05s both;
}

.suggestion-item:nth-child(2) {
  animation: fadeInItem 0.3s ease-out 0.1s both;
}

.suggestion-item:nth-child(3) {
  animation: fadeInItem 0.3s ease-out 0.15s both;
}

.suggestion-item:nth-child(4) {
  animation: fadeInItem 0.3s ease-out 0.2s both;
}

.suggestion-item:nth-child(5) {
  animation: fadeInItem 0.3s ease-out 0.25s both;
}

.suggestion-item svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.suggestion-item .highlight {
  color: #ff3e6c;
  font-weight: 600;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff3e6c;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-nickname {
  font-size: 11px;
  color: #666;
}

.no-results {
  opacity: 0.5;
  cursor: default;
}

.no-results:hover {
  background-color: #2a2a2a;
}

.suggestion-icon {
  font-size: 1em;
  opacity: 0.6;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notifications Styles */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff3e6c;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
}

.notifications-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 15px;
  width: 380px;
  max-height: 500px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  z-index: 1000;
  animation: dropdownFade 0.2s ease-out;
}

.notifications-dropdown.active {
  display: flex;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
}

.notifications-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.mark-all-read-btn {
  background: transparent;
  border: none;
  color: #ff3e6c;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.mark-all-read-btn:hover {
  background: rgba(255, 62, 108, 0.1);
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.notifications-loading,
.notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #666;
  gap: 12px;
}

.notifications-loading i,
.notifications-empty i {
  font-size: 32px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #252525;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.notification-item:hover {
  background: #222;
}

.notification-item.unread {
  background: rgba(255, 62, 108, 0.05);
}

.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ff3e6c;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
}

.notification-icon.icon-friend {
  background: rgba(74, 144, 226, 0.2);
  color: #4a90e2;
}

.notification-icon.icon-friend-accepted {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.notification-icon.icon-album {
  background: rgba(255, 62, 108, 0.2);
  color: #ff3e6c;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.notification-message {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 6px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.notification-time {
  font-size: 11px;
  color: #666;
}

.notification-mark-read {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.notification-mark-read:hover {
  color: #ff3e6c;
  background: rgba(255, 62, 108, 0.1);
}

.notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid #333;
  text-align: center;
}

.notifications-footer a {
  color: #ff3e6c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.notifications-footer a:hover {
  opacity: 0.8;
}

.notifications-list::-webkit-scrollbar {
  width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.user-profile {
  position: relative;
  padding: 5px 5px 5px 10px;
  background: #55555500;
  border-radius: 20px;
}

.user-icon {
  border-radius: 50%;
  background-color: #0088ff;
  padding: 5px;
}

.add-icon {
  position: absolute;
  right: -5px;
  top: -5px;
  background: #00ff00;
  border-radius: 50%;
  color: var(--dark-bg);
  font-size: 0.7em;
  padding: 2px;
  line-height: 1;
}

.hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

.weapon-left {
  position: absolute;
  left: 10%;
  top: 20%;
  width: 150px;
  opacity: 0.7;
}

.weapon-right {
  position: absolute;
  right: 10%;
  top: 30%;
  width: 120px;
  opacity: 0.7;
}

.grenade {
  position: absolute;
  left: 15%;
  top: 50%;
  width: 80px;
  opacity: 0.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 30px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
}

h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 20px;
  max-width: 100%;
  white-space: pre-line;
}

.subtitle {
  color: #888;
  font-size: 16px;
  margin-bottom: 60px;
  padding: 0 20px;
  max-width: 100%;
}

.cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  perspective: 1000px;
  margin-bottom: 40px;
}

.pack-title {
  text-align: center;
  margin-bottom: 10px;
  height: 350px;
}

.card {
  width: 280px;
  height: 380px;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
}

.card-fortnite {
  background: linear-gradient(135deg, #4169e1 0%, #1e3a8a 100%);
  transform: rotate(-8deg);
}

.card-kaiba {
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
  transform: rotate(-4deg);
  z-index: 2;
}

.card-pokemon {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  transform: rotate(0deg);
  z-index: 3;
  position: relative;
}

.card-moedas {
  background: linear-gradient(135deg, #f4a460 0%, #8b4513 100%);
  transform: rotate(4deg);
  z-index: 2;
}

.card-counter {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  transform: rotate(8deg);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-members {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
}

.card-image {
  width: 100%;
  height: 330px;
  border-radius: 16px;
  object-fit: cover;
  margin-top: auto;
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  width: calc(100% - 48px);
}

.card-image-cs {
  width: 100%;
  height: 290px;
  border-radius: 16px;
  object-fit: cover;
  margin-top: auto;
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  width: calc(100% - 48px);
}

/* Tablet Grande - até 1024px */
@media (max-width: 1024px) {
  .navbar {
    padding: 12px 30px;
  }

  .navbar-left,
  .navbar-right {
    gap: 15px;
  }

  .logo img {
    width: 130px;
  }

  .search-box {
    max-width: 200px;
  }

  .search-input {
    font-size: 14px;
  }

  .icone-imagem {
    width: 22px;
    height: 22px;
  }

  h1 {
    font-size: 52px;
    padding: 0 30px;
  }

  .subtitle {
    font-size: 15px;
    padding: 0 30px;
  }
}

@media (max-width: 1200px) {
  .cards-container {
    flex-wrap: wrap;
  }

  .card {
    transform: rotate(0deg) !important;
  }
}

/* Tablet - até 768px */
@media (max-width: 768px) {
  html,
  body {
    padding-top: 110px;
  }

  .navbar {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 90px;
  }

  .navbar-left {
    order: 1;
    flex: 0 0 auto;
    gap: 15px;
    min-width: auto;
  }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    width: 110px;
  }

  .navbar-right {
    order: 3;
    flex: 0 0 auto;
    gap: 15px;
    min-width: auto;
  }

  .search-box {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    flex: 1 1 100%;
  }

  .search-input {
    font-size: 13px;
    padding: 6px 10px;
  }

  .search-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .icone-imagem {
    width: 20px;
    height: 20px;
  }

  .nav-item {
    font-size: 0.85em;
  }

  h1 {
    font-size: 42px;
    padding: 0 20px;
    line-height: 1.3;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .hero {
    padding: 60px 15px 40px;
  }

  .weapon-left,
  .weapon-right,
  .grenade {
    display: none;
  }
}

/* Mobile - até 480px */
@media (max-width: 480px) {
  html,
  body {
    padding-top: 115px;
  }

  .navbar {
    padding: 10px 15px;
    gap: 10px;
    min-height: 95px;
  }

  .navbar-left {
    gap: 10px;
  }

  .navbar-left > a:first-child {
    flex-shrink: 0;
  }

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    width: 95px;
  }

  .navbar-right {
    gap: 12px;
  }

  .search-box {
    margin-top: 8px;
    padding: 5px;
  }

  .search-input {
    font-size: 13px;
    padding: 6px 10px;
  }

  .search-btn {
    padding: 6px 10px;
    font-size: 13px;
    right: 5px;
    top: 5px;
  }

  .icone-imagem {
    width: 20px;
    height: 20px;
  }

  .nav-item {
    font-size: 0.8em;
  }

  h1 {
    font-size: 32px;
    padding: 0 15px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .hero {
    padding: 40px 10px 30px;
  }

  .card:hover {
    transform: translateY(-5px) scale(1.02);
  }
}

/* Mobile Muito Pequeno - até 360px */
@media (max-width: 360px) {
  html,
  body {
    padding-top: 120px;
  }

  .navbar {
    padding: 8px 10px;
    min-height: 100px;
  }

  .logo img {
    width: 85px;
  }

  .navbar-left,
  .navbar-right {
    gap: 8px;
  }

  .icone-imagem {
    width: 18px;
    height: 18px;
  }

  .search-input {
    font-size: 12px;
    padding: 5px 8px;
  }

  .search-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  h1 {
    font-size: 28px;
    padding: 0 10px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .hero {
    padding: 35px 8px 25px;
  }
}

.footer {
  background: #000000;
  padding: 60px 20px 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-section {
  min-width: 150px;
}

.footer-heading {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-info {
  text-align: center;
  flex-grow: 1;
  order: 2;
  min-width: 200px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.text-primary {
  color: var(--primary-color);
}

.footer-info p {
  color: #555;
  font-size: 13px;
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 1;
}

.footer-link {
  color: #aaa;
  font-size: 15px;
  transition: color 0.2s, transform 0.2s;
}

.footer-link:hover {
  color: var(--text-color);
  transform: translateX(5px);
}

.footer-social {
  order: 3;
  text-align: right;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.social-link {
  color: var(--primary-color);
  transition: color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  color: var(--text-color);
  transform: scale(1.1);
  background: var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 62, 108, 0.7);
}

.social-link svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  transition: stroke 0.3s;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
}

.small-print {
  color: #444;
  font-size: 12px;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    order: initial !important;
    min-width: 100%;
  }

  .footer-info {
    order: 1 !important;
  }

  .footer-nav,
  .footer-social {
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-heading {
    margin-top: 20px;
  }
}

.user-profile {
  position: relative;
}

.profile-pic {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #ff3e6c;
  transition: transform 0.2s;
}

.profile-pic:hover {
  transform: scale(1.1);
}

.profile-dropdown {
  animation: dropdownFade 0.2s ease-out;
}

.profile-dropdown a {
  transition: background 0.2s, padding-left 0.2s;
}

.profile-dropdown a:hover {
  background: #252525;
  padding-left: 20px;
}

.profile-dropdown a:last-child:hover {
  background: rgba(255, 62, 108, 0.1);
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
