/* Green Shades Page Specific Styles */

:root {
  --card-bg: #f7fbfc;
  --border-radius: 1.1em;
  --shadow-color: rgba(50,50,93,0.09);
  --primary-color: #37B5A7;
  --primary-dark: #279184;
  --transition: all 0.18s cubic-bezier(.4,0,.2,1);
}

.green-shades-intro {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px var(--shadow-color);
  padding: 1.3rem;
  margin-bottom: 1.3rem;
  line-height: 1.8;
  font-size: 0.98rem;
}

.green-shades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.green-shade-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: var(--transition);
}
.green-shade-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-color);
}
.color-swatch {
  height: 120px;
  width: 100%;
}
.color-info {
  padding: 1rem;
}
.color-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.color-value {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  font-family: monospace;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 0.25em;
  margin-left: 0.1em;
  opacity: 0.85;
  transition: opacity 0.18s, transform 0.18s;
  vertical-align: middle;
}
.copy-btn:hover, .copy-btn:focus {
  opacity: 1;
  transform: scale(1.13);
  outline: none;
}
.random-green-wheel {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px var(--shadow-color);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.wheel-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
}
.color-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #006400, #008000, #228B22, #32CD32, 
    #00FF00, #7CFC00, #90EE90, #98FB98, 
    #ADFF2F, #00FF7F, #00FA9A, #2E8B57
  );
  cursor: pointer;
  transition: transform 0.3s ease;
}
.color-wheel:hover {
  transform: scale(1.05);
}
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.wheel-center i {
  color: var(--primary-color);
  font-size: 1.5rem;
}
.random-green-result {
  background-color: #fff !important;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: none;
}
.random-green-result.show {
  display: block;
}
.result-color-display {
  height: 100px;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}
.result-color-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.result-color-value, .result-color-info, #result-color-hex, #result-color-rgb, #result-color-hsl, #result-color-name {
  color: #222 !important;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.back-link:hover {
  color: var(--primary-dark);
}
.back-link i {
  margin-right: 0.5rem;
}
.copy-tooltip {
  margin-left: 8px;
  background: #7c3aed;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8em;
  position: relative;
  top: -2px;
  opacity: 0.92;
  pointer-events: none;
  z-index: 10;
  animation: fadeInOut 1s;
}
@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
.header-title {
  display: flex;
  align-items: center;
}
.logo {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  min-width: 32px;
  min-height: 32px;
}
.subpage-nav {
  margin-left: 20px;
}
.subpage-nav a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
}
.theme-toggle-btn {
  margin-left: 1.5rem;
}
#sunIcon, #moonIcon {
  display: inline-block;
  vertical-align: middle;
}
.copy-hex-btn {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .green-shades-grid {
    grid-template-columns: 1fr;
  }
  .result-color-info {
    flex-direction: column;
    align-items: center;
  }
  .navbar {
    flex-wrap: wrap;
  }
}
.color-wheel.spin {
  animation: spin 1s linear;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hide-on-mobile-menu { display: none !important; }
.navbar {
  position: relative;
  z-index: 40;
  background-color: #37B5A7 !important;
}
.nav-link {
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}
.nav-link:hover {
  color: #81e6d9 !important;
}
#mobileMenu {
  left: 0;
  right: 0;
  background-color: #37B5A7 !important;
}
@media (max-width: 768px) {
  #mobileMenu {
    left: 0;
    right: 0;
  }
}

/* DARK MODE SUPPORT */
body.dark-mode {
  background: #181a1b !important;
  color: #e6e6e6 !important;
}
body.dark-mode .green-shades-content,
body.dark-mode .green-shade-card,
body.dark-mode .random-green-wheel {
  background: #23272a !important;
  color: #e6e6e6 !important;
  box-shadow: 0 4px 16px #0007;
}
body.dark-mode .color-value,
body.dark-mode .color-name {
  color: #e6e6e6 !important;
}
body.dark-mode .navbar,
body.dark-mode footer {
  background-color: #222e2e !important;
  color: #e6e6e6 !important;
}
body.dark-mode a {
  color: #7de2d1 !important;
}
body.dark-mode .green-shades-intro {
  background: #23272a !important;
  color: #e6e6e6 !important;
  border: 1.5px solid #333 !important;
}
body.dark-mode .green-shades-intro h1,
body.dark-mode .green-shades-intro p {
  color: #e6e6e6 !important;
}
