:root {

  --bg-color: #ffffff;
  --text-color: #131316;
  --muted: rgba(0, 0, 0, 0.622); 
  --heavy-text-color: rgba(0, 0, 0, 0.698); 
  --nav-bg: #ffffff;
  --nav-underline: #000000;
  --card-bg: #252424;
  --card-border: #4d4d4d8e; 
  --rating-bg: #f5f7fb;
  --rating-border: rgba(232, 234, 238, 0.52);
  --inverse-text: #ffffff;
  --dark-container: #000000; 
  --dark-button: #000000; 
  --primary-color: #57ad90;
  --toggle-hover: #ececec;
  --toggle-active: #dbdada;
  --bookmark-start: #57ad90;
  --bookmark-end: #bcc55a;
  --muted-inverse: rgba(
    255,
    255,
    255,
    0.8
  ); 
}


body.dark-theme {
  --bg-color: #0f1112;
  --text-color: #e1e1e7;
  --inverse-color: #e1e1e7;
  --muted: rgba(255, 255, 255, 0.62);
  --heavy-text-color: rgba(227, 217, 217, 0.698);
  --nav-bg: #0b0b0b;
  --nav-underline: #e1e1e7;
  --card-bg: #1b1b1b;
  --card-border: #252525;
  --rating-bg: #141518;
  --dark-button: #2e2e2e; 
  --rating-border: rgba(255, 255, 255, 0.08);

  --dark-container: #0f1112;
  --primary-color: #57ad90;
  --toggle-hover: rgba(255, 255, 255, 0.04);
  --toggle-active: rgba(255, 255, 255, 0.06);
  --bookmark-start: #bcc55a;
  --bookmark-end: #57ad90;
  --muted-inverse: rgba(255, 255, 255, 0.8);
}

/* Main Stuff */
* {
  margin: 0px;
  padding: 0px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: 0.2s;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Globals */
hr {
  margin: 0px 40px;
  border: 1px solid var(--card-border);
  
}


body:not(.dark-theme) hr {
  display: none;
}
.container {
  max-width: 1200px;
  margin: 0px auto;
  padding: 10px 24px 0px 24px;
}
.dark-full-container {
  max-width: 100%;
  margin: 0px auto;
  padding: 30px 24px 30px 24px;
  background-color: var(--dark-container);
}

.text-xxl {
  font-size: 3.8rem;
  font-weight: 500;
  margin: 70px 0px 24px 0px;
}
.text-xl {
  font-size: 3rem;
  font-weight: 400;
  margin: 30px 0px 15px 0px;
}
.light-text {
  color: var(--inverse-text);
}
.text-body {
  font-size: 1.3rem;
  font-weight: normal;
  margin: 10px 0px 5px 0px;
}

.subtitle-color {
  color: var(--heavy-text-color);
}

/* Nav bar */
#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--nav-bg);
  padding: 10px 24px;
  max-width: 1200px;
  margin: 0px auto;
  transition: 0.2s;
  gap: 20px;
}
#navbar li {
  display: flex;
  align-items: center;
}
.logo-container {
  display: flex;
  gap: 16px;
  align-items: center;
  font-weight: 600;
  font-size: 1.2rem;
}
#navbar .logo-container img {
  width: 45px;
  height: 45px;
}

#navbar ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

#navbar ul a {
  font-weight: 500;
  padding-bottom: 4px;
  transition: 0.1s;
}

#navbar ul a:hover {
  border-bottom: 2px solid var(--nav-underline);
}

.theme-toggle {
  font-weight: bold;
  font-size: 2rem;
  border: none;
  background: none;
  transition: 0.2s;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 100%;
  cursor: pointer;
  fill: var(--text-color);
}

.theme-toggle:hover {
  background: var(--toggle-hover);
}
.theme-toggle:active {
  background: var(--toggle-active);
}

/* Hero section */
.hero-content {
  display: flex;
}

.hero-image {
  width: 90%;
  height: 85vh;
  background-image: url("https://raw.githubusercontent.com/G705-Ghilan/pixel-bookmarks/refs/heads/main/assets/images/hero-image-low.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  margin: 10px;
}

.download-buttons {
  display: inline-flex;
  gap: 10px;
}
.store-button {
  background-color: var(--dark-button);
  display: flex;
  color: var(--inverse-text);
  border-radius: 16px;
  padding: 10px 13px;
  gap: 10px;
  font-weight: 500;
  font-size: 1.15rem;
  align-items: center;
  text-align: start;
  cursor: pointer;
}
.hero-content .store-button {
  margin-top: 10px;
}
.store-button img {
  height: 2.1rem;
}
.store-button p:first-child {
  color: var(--muted-inverse);
  font-size: 0.95rem;
}
.bookmark-span {
  background: linear-gradient(
    to left top,
    var(--bookmark-start),
    var(--bookmark-end)
  );
  color: var(--inverse-text);
  font-weight: bold;
  font-size: 2.6rem;
  display: inline-block;
  padding: 4.5px 14px 4.4px 16px;
  border-radius: 17px;
}

.bookmark-span img {
  height: 1.9rem;
}

/* Features */
.features {
  margin-top: 30px;
}
.dark-full-container {
  text-align: center;
}

.features-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
  align-items: start;
  justify-content: center;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 5px;
  border-radius: 20px;
  color: var(--inverse-text);
  text-align: start;
  border: 2px solid var(--card-border);
  transition: 0.2s;
}
.feature-card:hover {
  border: 2px solid var(--primary-color);
}
.feature-card img {
  border-radius: 15px;
  margin-bottom: 7px;
}
.feature-card .feature-title {
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0px 10px 4px 10px;
}
.feature-card .feature-subtitle {
  margin: 0px 10px 15px 10px;
}

.star-span {
  color: var(--primary-color);
}

/* Ratings */
.ratings {
  margin: 30px 0px;
}
.ratings .container {
  text-align: center;
}

.ratings-grid {
  margin-top: 50px;
  display: grid;
  gap: 10px;
  grid-template-areas:
    "box-1 box-1 box-4 box-4"
    "box-3 box-2 box-2 box-2";
}

.rating-card {
  text-align: start;
  background: var(--rating-bg);
  border-radius: 15px;
  padding: 10px;
  border: 2px solid var(--rating-border);
  transform: 0.3s;
}
.rating-card:hover {
  border: 2px solid var(--primary-color);
}
.rating-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.rating-header p:first-child {
  font-weight: 500;
  font-size: 1.1rem;
}
.rating-header img {
  border-radius: 100%;
  width: 3.8rem;
}
.rating-card p:last-child {
  color: var(--muted);
}

.rights {
  margin-top: 40px;
  text-align: center;
  margin: 40px 50px 30px 50px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 767px) {
  .ratings-grid {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  html {
    font-size: 13px;
  }
  .hero-image {
    width: 100%;
    height: 60vh;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    margin: 40px 10px 10px 10px;
  }
  #navbar ul {
    gap: 20px;
  }
  .text-xxl {
    font-size: 3.8rem;
    font-weight: 500;
    margin: 50px 0px 20px 0px;
  }

  #navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  #navbar ul li:nth-child(3){
    display: none;
  }
}
