body {
  font-family: 'Poppins', sans-serif;
  margin:0; padding:0;
  background: linear-gradient(135deg, #5A73F8, #9C27B0);
  color:#fff;
  min-height:100vh;
}

.screen {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  height:100vh;
  text-align:center;
}

.logo {
  width:80px; height:80px;
  border-radius:50%;
  background:white;
  display:flex; justify-content:center; align-items:center;
  font-size:2rem; font-weight:bold; color:#5A73F8; margin:0 0 15px 0;
}

button {
  margin:10px;
  padding:10px 20px;
  border:none;
  border-radius:20px;
  cursor:pointer;
  font-weight:bold;
  transition:0.2s;
}

button:hover { transform: scale(1.05); background:#f0f0f0; color:#5A73F8; }

.search-container {
  display:flex;
  justify-content:center;
  margin:20px 0;
  gap:10px;
}

#searchInput {
  width:60%;
  padding:8px;
  border-radius:4px;
  border:none;
}

#results {
  width:90%;
  max-width:700px;
  display:grid;
  gap:20px;
  margin:20px auto;
}

.card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  border-radius:15px;
  padding:15px;
  transition: transform 0.2s, background 0.2s;
}

.card h3 { margin:0; color:#fff; }
.card p { color:#eaeaea; font-size:0.9rem; }
.card a { color:#ffe; text-decoration:underline; }

.load-more {
  background:#fff; color:#5A73F8;
  padding:10px 25px; border-radius:20px;
  font-weight:bold;
  cursor:pointer;
  margin:20px auto;
  display:block;
  transition:0.2s;
}

.load-more:hover { transform: scale(1.05); background:#f0f0f0; }


/* --- POPUP ARTICLE --- */

#articleOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#articleOverlay.hidden {
  display: none;
}

#articleBox {
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.95);
  color: #333;
  padding: 20px;
  border-radius: 12px;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.popup-buttons button,
.popup-buttons a {
  background: #5A73F8;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.popup-buttons button:hover,
.popup-buttons a:hover {
  opacity: 0.85;
}