/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
}

:root {
  --Neutral900: hsl(227, 75%, 14%);
  --primary-bg: hsl(226, 25%, 17%);
  --primary-bg-1: hsl(225, 23%, 24%);
  --Neutral600: hsl(226, 11%, 37%);
  --Neutral300: hsl(0, 0%, 78%);
  --Neutral200: hsl(217, 61%, 90%);
  --Neutral100: hsl(0, 0%, 93%);
  --Neutral0: hsl(200, 60%, 99%);
  --Red400: hsl(3, 86%, 64%);
  --Red500: hsl(3, 71%, 56%);
  --Red700: hsl(3, 77%, 44%);
  --LightGradient: linear-gradient(180deg, #ebf2fc 0%, #eef8f9 100%);
  --DarkGradient: linear-gradient(180deg, #040918 0%, #091540 100%);
  --transition: all 0.3s ease-in-out;
  --primary-color: white;
}

.add {
  --primary-color: black;
  --primary-bg: white;
  --primary-bg-1: white;
  --Neutral600: hsl(0, 0%, 70%);
}

/* General Layout */
.general {
  width: 375px;
  margin: 0 auto;
  background: var(--DarkGradient);
  min-height: 100vh;
  padding: 1rem 0.5rem;
  transition: var(--transition);
  color: var(--primary-color);
}

@media screen and (min-width: 768px) {
  .general {
    width: 100%;
    padding: 2rem 3rem;
  }
}

/* Header Styles */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-bg);
  padding: 0.5rem 1rem;
  border-radius: 0.7rem;
  text-transform: capitalize;
}

.img-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.img-container h4 {
  font-size: 0.75rem;
  font-weight: 700;
}

.logo {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: cover;
}

.sun-logo {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--primary-bg-1);
}

.sun-logo:hover {
  background: var(--Neutral600);
}

/* Section Styles */
.section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.btn-collections {
  display: flex;
  gap: 0.5rem;
}

/* Button Styles */
.btn {
  color: var(--primary-color);
  background: var(--primary-bg-1);
  border-radius: 1rem;
  padding: 0.3rem 0.8rem;
  border: none;
  text-transform: capitalize;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.75rem;
  font-weight: 600;
}

.btn:hover {
  background: var(--Red400);
}

.btn:focus {
  outline: 2px solid var(--Red400);
}

.all-btn {
  padding: 0.3rem 1rem;
}

.remove-btn {
  background: transparent;
  border: 1px solid var(--Neutral300);
}

.remove-btn:hover {
  background: var(--Red400);
  border-color: var(--Red400);
}

/* Extensions List */
.devs {
  display: grid;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .devs {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.item {
  border: 1px solid rgba(234, 233, 233, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--primary-bg);
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.top {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.item-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.text h5 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.text p {
  color: var(--Neutral300);
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Toggle Switch Styles */
.toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--Neutral600);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-label::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: var(--transition);
}

.toggle:checked + .toggle-label {
  background: var(--Red400);
}

.toggle:checked + .toggle-label::after {
  transform: translateX(20px);
}

.toggle:focus + .toggle-label {
  border: 1px solid var(--Red400);
}

/* Light Theme Overrides */
.general.add {
  background: var(--LightGradient);
}

.general.add .item {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.general.add .text p {
  color: var(--Neutral600);
}

.general.add .remove-btn {
  border-color: var(--Neutral600);
}
.item.remove {
  display: none;
}
