/* css/style.css */
@import url("https://fonts.googleapis.com/css2?family=Encode+Sans+Expanded:wght@300;400;600;700&display=swap");

:root {
  --bg-color: #050505;
  --card-bg: #121212;
  --card-border: #2a2a2a;
  --brand-gradient: linear-gradient(
    90deg,
    #8e2de2 0%,
    #ff8c42 100%
  ); /* Roxo -> Laranja */
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Encode Sans Expanded", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-image: radial-gradient(
    circle at 50% -20%,
    #2e1065 0%,
    #000000 50%
  );
  padding-top: 40px;
}

.container {
  width: 100%;
  max-width: 680px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* HEADER */
.hero-section {
  text-align: center;
  margin-bottom: 10px;
}
.hero-tag {
  color: #ff8c42;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  background: linear-gradient(to right, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto;
}

/* SEARCH BOX */
.search-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.icon-link {
  position: absolute;
  left: 15px;
  color: var(--text-muted);
}

input {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #333;
  color: white;
  padding: 18px 18px 18px 45px;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  font-family: "Encode Sans Expanded", sans-serif;
  transition: 0.3s;
}
input:focus {
  border-color: #8e2de2;
}

button {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(142, 45, 226, 0.3);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* RESULTADOS */
#results-area {
  display: none;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px;
}
.full-width {
  grid-column: span 2;
}
.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.data-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

/* GRID DE PLUGINS */
.plugin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 10px;
}
.plugin-card {
  background: linear-gradient(160deg, #1a1a1a, #0f0f0f);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.plugin-card:hover {
  transform: translateY(-5px);
  border-color: #ff8c42;
  box-shadow: 0 10px 20px rgba(255, 140, 66, 0.15);
}
.plugin-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
  border: 1px solid #333;
}
.plugin-name {
  font-size: 0.8rem;
  color: #e2e2e2;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}
.plugin-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0.7;
}

/* FOOTER / CTA */
.cta-box {
  margin-top: 40px;
  text-align: center;
  padding: 30px;
  background: linear-gradient(
    180deg,
    rgba(142, 45, 226, 0.1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  border: 1px solid #333;
  border-radius: 16px;
}
.cta-btn {
  background: transparent;
  border: 1px solid #ff8c42;
  color: #ff8c42;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.cta-btn:hover {
  background: #ff8c42;
  color: #000;
}
footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
.error-msg {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-top: 10px;
  display: none;
  border: 1px solid rgba(255, 77, 77, 0.2);
}
