/* --- Reset / Global --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #101010;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.4;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* --- Header --- */
header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-top h1 {
  margin: 0;
  flex-grow: 1;
  text-align: center;
  color: #4fc3f7;
  text-shadow: 0 0 8px #4fc3f7, 0 0 16px #1da1f2;
}

#toggleSearch {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #4fc3f7;
  color: #101010;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: all 0.3s;
}

#toggleSearch:hover {
  background: #3aa4d9;
  box-shadow: 0 0 8px #4fc3f7, 0 0 16px #1da1f2;
}

/* --- Iframe Preview --- */
.preview-container {
  width: 100%;
  height: 300px;
  margin-top: 10px;
}

#previewFrame {
  width: 100%;
  height: 100%;
  border: 2px solid #4fc3f7;
  border-radius: 6px;
}

/* --- Panel de Recherche --- */
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.search-panel input,
.search-panel select,
.search-panel button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #1a1a1a;
  color: #f0f0f0;
  transition: all 0.3s;
}

.search-panel input:focus,
.search-panel select:focus {
  outline: none;
  border-color: #4fc3f7;
  background: #0f0f0f;
}

button {
  background: #4fc3f7;
  color: #101010;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

button:hover {
  background: #3aa4d9;
  box-shadow: 0 0 10px #4fc3f7;
}

/* --- Site Meta --- */
.site-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.meta-text strong {
  font-size: 1.1rem;
  color: #4fc3f7;
}

.meta-text .desc {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #ccc;
}

.meta-text a {
  color: #1da1f2;
  font-size: 0.8rem;
  text-decoration: underline;
}

/* --- Home Links Bar --- */
.home-links-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #1e1e1e;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.menu-btn {
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #444;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: move;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s;
}

.menu-btn:hover {
  background: #333;
  color: #4fc3f7;
  border-color: #4fc3f7;
}

/* --- Content Area --- */
.content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.results-grid {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
}

.result-card {
  background: #1e1e1e;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.result-card:hover {
  box-shadow: 0 0 12px #4fc3f7, 0 0 24px #1da1f2;
}

.favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.result-link {
  text-decoration: none;
  color: #4fc3f7;
  word-break: break-all;
}

.result-link:hover {
  text-decoration: underline;
}

/* --- Bouton Pluger --- */
.youplugs-btn-pluger {
  background-color: #4fc3f7;
  color: #101010;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79,195,247,0.5);
  transition: all 0.3s;
}

.youplugs-btn-pluger:hover {
  background-color: #3aa4d9;
  box-shadow: 0 0 10px #4fc3f7, 0 0 20px #1da1f2;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
  }

  .results-grid {
    max-height: 300px;
  }

  .preview-container {
    height: 200px;
  }

  .site-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-top h1 {
    font-size: 1.5rem;
  }
}
