/* scr.ing core styles – shared layout and structure */
/* ****** This includes the Tap to Copy colours as new specific variables in individual theme CSS files */
:root {
  --accent: #0e76bc;

  /* Light mode colors */
  --bg-light: #f5f5f5;
  --text-light: #333;
  --card-light: #ffffff;
  --border-color: #ddd;
  --main-text: #444;

  /* Dark mode colors */
  --bg-dark: #121212;
  --text-dark: #eee;
  --card-dark: #1e1e1e;
  --border-color-dark: #444;
  --main-text-dark: #ccc;
  
  --taptocopy: #888;
  --copied: #4caf50;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.3s, color 0.3s;
}
body.light {
  background: var(--bg-light);
  color: var(--text-light);
}
body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}
header {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
				/* If issues, this was added to address the header hidden image on page load */
	position: sticky;
	top: 0;
	z-index: 1000;
	height: 60px; /* Or whatever your header height is */
  box-sizing: border-box;

}

#page-header {
  min-height: 60px; /* or slightly more if needed */
}


header .cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 40px;
}
.cta {
  font-size: 1rem;
}
h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-top: 1rem;
  color: var(--accent);
}
.toggle-container {
  text-align: center;
  margin: 1rem 0;
}
.toggle-button {
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}
.toggle-button span {
  font-size: 1.5rem;
}

.item-list {
  width: fit-content;
  max-width: 95%;
  margin: 0 auto;
  background: var(--card-light);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.item input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  accent-color: var(--accent);
}
.item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.item {
  display: flex;
  justify-content: space-between;
  margin: 0.75rem 0;
}
.score-box {
  text-align: center;
  font-size: 1.25rem;
  margin-top: 2rem;
}
.share-section {
  text-align: center;
  margin-top: 2rem;
}
.share-button {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  color: white;
}
.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25d366; }
.bluesky { background: #0e76bc; }
.instagram { background: #d62976; }
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-top: 3rem;
}
.list-rank-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 95%;
  margin: 0 auto;
  align-items: center;
}
@media(min-width: 768px) {
  .list-rank-container {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}
.rank-box {
  background: var(--card-light);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
body.dark .item-list {
  background: var(--card-dark);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
body.dark .rank-box {
  background: var(--card-dark);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.rank-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
}
.rank-box .rank {
  margin: 0.5rem 0;
  transition: color 0.3s, font-weight 0.3s;
}
.rank-box .rank.active {
  color: var(--accent);
  font-weight: bold;
}
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--main-text);
  border-top: 1px solid var(--border-color);
}

.rank-box .rank-graphic {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 1em;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
}
h4 {
  text-align: center;
  font-family: 'Comic Sans MS';
}

.floating-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 2rem auto;
}

body.dark .floating-box {
  background: #1e1e1e;
  color: #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

a {
  color: #3CB043; /* Replace with your actual accent green */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Optional: improve contrast in dark mode */
body.dark a {
  color: #3CB043; /* a brighter variant of green for dark backgrounds */
}

/* for copying the ranks */
.rank.active {
  cursor: pointer;
  position: relative;
}

.rank.active::after {
  content: "Tap to copy";
  position: absolute;
  top: -1.5em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--taptocopy);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rank.active:hover::after {
  opacity: 1;
}
.rank.active.copied::after {
  content: "Copied!";
  color: var(--copied); /* optional: highlight the success */
  opacity: 1;
}

.center {
  text-align: center;
}
em {
  font-style: italic;
}
li em {
  white-space: nowrap;
}
li em {
  white-space: normal;
  font-style: italic;
}
