/* 
* fscl.css - Fluid Style Component Library
* A beautiful, light UI design for TheCoolSymbols
* Created: May 2025
*/

/* Reset and Base styles */
:root {
  --primary-color: #6d56c1;
  --primary-light: #a18eff;
  --primary-dark: #4a3a87;
  --accent-color: #ff7eb6;
  --accent-light: #ffa2cc;
  --accent-dark: #c71585;
  --background-color: #f8f9fc;
  --card-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e1e4ed;
  --shadow-color: rgba(149, 157, 165, 0.1);
  --success-color: #4CAF50;
  --error-color: #F44336;
  --warning-color: #FFC107;
  --info-color: #2196F3;
  --border-radius: 12px;
  --box-shadow: 0 5px 15px var(--shadow-color);
  --transition: all 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --bullet-gradient-start: var(--primary-light);
  --bullet-gradient-end: var(--accent-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Universal Bullet Points Style */
ul {
  list-style: none;
  padding-left: 1.5em;
  margin-bottom: 1.5rem;
}

ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.6;
}

ul li::before {
  content: "❈";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  background: linear-gradient(135deg, var(--bullet-gradient-start), var(--bullet-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bulletPulse 3s infinite;
}

@keyframes bulletPulse {
  0% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
  100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
}

/* Nested lists */
ul ul {
  margin-top: 0.8em;
}

ul ul li::before {
  content: "◈";
  font-size: 0.9em;
}

/* Special bullet points for important lists */
ul.important li::before {
  content: "✧";
  font-size: 1.2em;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* Header */
.header {
  background-color: var(--card-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-button {
  padding: 10px 15px;
  border-radius: var(--border-radius);
  background-color: transparent;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-button:hover {
  background-color: rgba(109, 86, 193, 0.08);
  color: var(--primary-color);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-dropdown-btn:hover {
  background-color: rgba(109, 86, 193, 0.08);
  color: var(--primary-color);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-color);
  min-width: 200px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  z-index: 1;
  padding: 10px 0;
  top: calc(100% + 5px);
  right: 0;
  animation: fadeIn 0.2s ease-out;
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-dropdown-content a:hover {
  background-color: rgba(109, 86, 193, 0.08);
  color: var(--primary-color);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
}

.hamburger-icon {
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  left: 0;
  transition: var(--transition);
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

/* Main Content */
.main-section {
  padding: 60px 0;
  text-align: center;
}

.section-title {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-light);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-light);
}

/* Symbol Board */
.symbol-board-section {
  padding: 20px 0;
}

.symbols-container {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.symbols-title {
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 100%;
  padding: 10px;
  position: relative;
}

.symbol {
  min-width: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  overflow: visible;
  white-space: nowrap;
  text-align: center;
  margin: 5px;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
}

.symbol:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(109, 86, 193, 0.25);
  border-color: var(--primary-color);
  z-index: 2;
}

.symbol:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Add subtle glow effect on hover */
.symbol::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: 9px; /* 1px more than the symbol's border-radius */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.symbol:hover::before {
  opacity: 0.4;
}

/* Special handling for multi-character and complex symbols */
.symbol[data-length="long"] {
  font-size: 1.2rem;
  line-height: 1.2;
  width: auto;
  max-width: none;
  flex-grow: 0;
}

.symbol[data-emoji="true"] {
  font-size: 1.8rem;
}

/* Auto-adjust symbol size based on content length */
.symbol-xs { min-width: 40px; }
.symbol-sm { min-width: 60px; }
.symbol-md { min-width: 90px; }
.symbol-lg { min-width: 120px; }
.symbol-xl { min-width: 180px; }

/* Handle complex unicode symbols that might look smaller */
.symbol-complex {
  font-size: 1.8rem;
  padding: 8px 12px;
}

/* Handle multi-character symbols that might look smaller */
.symbol-multi {
  white-space: nowrap;
  font-size: 1.3rem;
}

/* Allow symbol grid to have auto rows that fit content */
@supports (grid-template-rows: masonry) {
  .symbols {
    grid-template-rows: masonry;
  }
}

/* Better handling of different symbol sizes */
@media (min-width: 601px) {
  .symbols {
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  }
}

@media (min-width: 1200px) {
  .symbols {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}

/* Symbol Board Controls */
.symbol-board-controls {
  position: sticky;
  top: 80px; /* Positioned just below the header */
  width: 100%;
  z-index: 90; /* Below header but above other content */
  display: flex;
  justify-content: center;
  background: var(--bg-color);
  padding: 10px 0;
  /*border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

.textarea-container {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 2px; /* Space for the gradient border */
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 200% 100%;
  background-image: linear-gradient(
    to right, 
    var(--card-color) 0%, 
    var(--card-color) 100%
  ), 
  linear-gradient(
    90deg, 
    var(--primary-light) 0%, 
    var(--accent-color) 25%, 
    var(--primary-color) 50%, 
    var(--accent-light) 75%, 
    var(--primary-light) 100%
  );
  animation: border-slide 3s linear infinite;
  /* Improved border width and appearance */
  /*border: none; /* Remove default border */
  padding: 2px; /* Increased border width */
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes border-slide {
  0% {
    background-position: 0% 0%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, 200% 0%;
  }
}

/* Add shine effect to the gradient border */
.textarea-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  animation: shine 3s infinite;
  animation-delay: 1.5s;
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0.7;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

.symbol-board-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 15px;
  border: none;
  background-color: var(--card-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition: background-color 0.3s;
  outline: none;
}

.symbol-board-textarea:focus {
  background-color: rgba(248, 249, 252, 0.5);
}

.textarea-buttons {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: var(--card-color);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.button {
  padding: 8px 20px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Symbol Categories */
.additional-symbol-categories {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1200px;
}

.symbol-categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
}

.symbol-category {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.symbol-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.symbol-category a {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 15px;
  gap: 8px;
}

.symbol-category span:first-child {
  font-size: 24px;
  line-height: 1;
}

.symbol-category span:last-child {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .symbol-categories-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .symbol-category {
    height: 90px;
  }

  .symbol-category span:first-child {
    font-size: 20px;
  }

  .symbol-category span:last-child {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .additional-symbol-categories {
    padding: 30px 15px;
  }

  .symbol-categories-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .symbol-category {
    height: 80px;
  }
}

/* About Box Section Card */
.about-box {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px; /* Default padding */
  margin: 40px auto; /* Centering and vertical spacing */
  max-width: 1200px; /* Max width for the card */
}

/* Fix for the symbol table in house.html */
.thecoolsymbols-table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

.thecoolsymbols-about-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
}

.thecoolsymbols-about-table th,
.thecoolsymbols-about-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: left;
}

.thecoolsymbols-about-table th {
  background-color: var(--background-color);
  font-weight: 600;
  color: var(--primary-dark);
}

.thecoolsymbols-about-table tr:nth-child(even) {
  background-color: rgba(248, 249, 252, 0.5);
}

.thecoolsymbols-about-table tr:hover {
  background-color: rgba(109, 86, 193, 0.05);
}

.thecoolsymbols-about-table td.symbol {
  text-align: center;
  font-size: 1.8em;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 20%;
}

.thecoolsymbols-about-table td.symbol:hover {
  transform: scale(1.2);
  color: var(--primary-color);
}

/* Adjustments for table container within the about-box card */
.about-box .thecoolsymbols-table-container {
  box-shadow: none; /* Remove shadow as the card has its own */
  margin-top: 20px; /* Add space above the table inside the card */
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer fade-in animation */
@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  background: linear-gradient(to right, var(--background-color) 0%, var(--card-color) 50%, var(--background-color) 100%);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(109, 86, 193, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
  background-image: 
    linear-gradient(to right, var(--background-color) 0%, var(--card-color) 50%, var(--background-color) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='%23f0f0f0'%3E%3Cpath d='M12 5.5C12 7.38 10.76 9 9.25 9C7.74 9 6.5 7.38 6.5 5.5C6.5 3.62 7.74 2 9.25 2C10.76 2 12 3.62 12 5.5C12 7.38 13.24 9 14.75 9C16.26 9 17.5 7.38 17.5 5.5C17.5 3.62 16.26 2 14.75 2C13.24 2 12 3.62 12 5.5C12 7.38 13.24 9 14.75 9ZM12 16C14.25 16 16 18.5 16 22H8C8 18.5 9.75 16 12 16Z'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  animation: footerFadeIn 0.8s ease-out forwards;
}

/* Footer subtle pattern overlay */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(109, 86, 193, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(255, 126, 182, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 40% 70%, rgba(109, 86, 193, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 70% 90%, rgba(255, 126, 182, 0.03) 0%, transparent 20%);
  pointer-events: none;
  opacity: 0.8;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 20px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .footer-left {
    align-items: center;
  }
}

.footer-text {
  color: var(--text-light);
  margin: 10px 0;
  font-size: 0.92rem;
  position: relative;
  letter-spacing: 0.02rem;
}

/* Alphabet symbols styling */
.related-symbols-container {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px 20px;
  margin: 30px auto;
  max-width: 1200px;
  text-align: center;
}

.my-related-symbol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  border: 1px solid var(--border-color);
}

.related-symbol {
  --symbol-color: var(--primary-color);
  --hover-color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--background-color);
  color: var(--symbol-color);
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.related-symbol:hover {
  transform: translateY(-3px);
  color: white;
  background-color: var(--hover-color);
  border-color: var(--hover-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-symbol:hover::before {
  opacity: 1;
}

.related-symbol::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Style for the current page's letter */
.related-symbol[style*="pointer-events: none"] {
  background-color: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
  box-shadow: none;
  transform: scale(1.1);
  cursor: default;
}

/* Responsive styles for alphabet symbols */
@media (max-width: 768px) {
  .related-symbol {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .my-related-symbol {
    gap: 6px;
  }
  
  .related-symbols-container {
    padding: 20px 10px;
  }
}

/* Related Pages Section */
.thecoolsymbols-related-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
}

.related-page-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: var(--bg-lighter);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.related-page-link:hover {
  background-color: var(--hover-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-page-icon {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.related-page-title {
  font-weight: 500;
}

@media (max-width: 480px) {
  .related-symbol {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    border-width: 1px;
  }
  
  .my-related-symbol {
    gap: 4px;
  }
  
  .related-page-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

.footer-nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 8px;
  border-radius: 8px;
}

/* Create cat-themed hover effect */
.footer-link::before {
  content: '🐾';
  position: absolute;
  opacity: 0;
  font-size: 0.7em;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: all 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.footer-link:hover {
  color: var(--primary-color);
  background-color: rgba(109, 86, 193, 0.05);
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.footer-link:hover::after {
  width: 100%;
}

/* Social media icons in footer */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-color);
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0) 100%
  );
  transition: all 0.5s ease;
}

.social-icon:hover {
  transform: translateY(-3px) rotate(5deg);
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: white;
  box-shadow: 0 5px 15px rgba(109, 86, 193, 0.3);
  border-color: transparent;
}

.social-icon:hover::after {
  left: 100%;
}

/* Cat paw cursor effect for interactive footer elements */
.footer-link, .social-icon {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%236d56c1'%3E%3Cpath d='M12 5.5C12 7.38 10.76 9 9.25 9C7.74 9 6.5 7.38 6.5 5.5C6.5 3.62 7.74 2 9.25 2C10.76 2 12 3.62 12 5.5C12 7.38 13.24 9 14.75 9C16.26 9 17.5 7.38 17.5 5.5C17.5 3.62 16.26 2 14.75 2C13.24 2 12 3.62 12 5.5C12 7.38 13.24 9 14.75 9ZM12 16C14.25 16 16 18.5 16 22H8C8 18.5 9.75 16 12 16Z'/%3E%3C/svg%3E") 12 12, pointer;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0;
    text-align: center;
  }
  
  .footer .container {
    padding: 15px;
  }
  
  .footer-nav {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }
  
  .footer-left {
    width: 100%;
    align-items: center;
  }
  
  .footer-text {
    margin-bottom: 15px;
  }
  
  .footer::after {
    font-size: 1.2rem;
    top: -10px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .footer {
    background-image: 
      linear-gradient(to right, var(--background-color) 0%, rgba(40, 40, 50, 0.7) 50%, var(--background-color) 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='%232a2a2a'%3E%3Cpath d='M12 5.5C12 7.38 10.76 9 9.25 9C7.74 9 6.5 7.38 6.5 5.5C6.5 3.62 7.74 2 9.25 2C10.76 2 12 3.62 12 5.5C12 7.38 13.24 9 14.75 9C16.26 9 17.5 7.38 17.5 5.5C17.5 3.62 16.26 2 14.75 2C13.24 2 12 3.62 12 5.5C12 7.38 13.24 9 14.75 9ZM12 16C14.25 16 16 18.5 16 22H8C8 18.5 9.75 16 12 16Z'/%3E%3C/svg%3E");
  }
  
  .footer .container {
    background: rgba(30, 30, 40, 0.7);
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .hamburger-menu {
    display: block;
    margin-right: 15px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--card-color);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-button {
    padding: 15px;
    width: 100%;
    text-align: center;
  }
  
  .nav-dropdown {
    width: 100%;
  }
  
  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }
  
  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    width: 100%;
    padding: 0;
  }
  
  .nav-dropdown-content a {
    padding-left: 30px;
  }
  
  .hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
  }
  
  .hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
  }
  
  .section-title {
    font-size: 2rem;
  }
    .symbol-board-controls {
    top: 70px;
    padding: 5px 0;
  }
  
  .textarea-container {
    width: 90%;
  }
  
  .footer .container {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .symbols {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
  }
  
  .symbol {
    min-height: 50px;
    padding: 8px;
    font-size: 1.2rem;
  }
  
  .symbols-container {
    padding: 20px 15px;
  }
  
  .about-box {
    padding: 30px 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
      .symbol-board-controls {
    width: 100%;
    left: 0;
    top: 70px;
    padding: 5px 0;
  }
  
  .textarea-container {
    width: 95%;
    border-radius: var(--border-radius);
    background-image: linear-gradient(to right, var(--card-color) 0%, var(--card-color) 100%);
    padding: 0;
  }
  
  .button {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  
  .symbol-board-textarea {
    min-height: 70px;
    padding: 10px 12px;
  }
  
  .textarea-buttons {
    padding: 8px 12px;
  }
}

/* Layout for pages with a sidebar */
.page-layout {
  display: flex;
  flex-wrap: wrap; /* Allows sidebar to wrap to the next line on smaller screens */
}

.main-content {
  flex: 1; /* Takes up remaining space */
  padding-right: 20px; /* Add some space between main content and sidebar */
}

.sidebar {
  width: 400px;
  flex-shrink: 0; /* Prevents sidebar from shrinking */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .page-layout {
    flex-direction: column; /* Stack main content and sidebar vertically */
  }

  .main-content {
    padding-right: 0; /* Remove right padding when stacked */
    padding-bottom: 20px; /* Add space below main content when stacked */
  }

  .sidebar {
    width: 100%; /* Sidebar takes full width on smaller screens */
  }
}

/* Footer decoration */
.footer::after {
  content: '🐾';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-color);
  padding: 0 15px;
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Reference Table Styles for symbol pages */
.reference-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background: var(--card-color);
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: var(--card-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.reference-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.reference-table th {
  color: white;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.reference-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  vertical-align: middle;
}

.reference-table tbody tr:nth-child(even) {
  background-color: rgba(248, 249, 252, 0.5);
}

.reference-table tbody tr:hover {
  background-color: rgba(109, 86, 193, 0.05);
  transition: background-color 0.2s ease;
}

.reference-table td.symbol {
  font-size: 1.8em;
  text-align: center;
  cursor: pointer;
  width: 80px;
  transition: all 0.2s ease;
  background: var(--card-color);
}

.reference-table td.symbol:hover {
  transform: scale(1.2);
  color: var(--primary-color);
  background: rgba(109, 86, 193, 0.1);
}

.reference-table tr:last-child td {
  border-bottom: none;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
  .reference-table {
    font-size: 0.85rem;
  }
  
  .reference-table th,
  .reference-table td {
    padding: 10px 8px;
  }
  
  .reference-table td.symbol {
    font-size: 1.5em;
    width: 60px;
  }
}

@media (max-width: 480px) {
  .table-container {
    margin: 15px -10px;
    border-radius: 0;
  }
  
  .reference-table {
    font-size: 0.8rem;
  }
  
  .reference-table th,
  .reference-table td {
    padding: 8px 6px;
  }
  
  .reference-table td.symbol {
    font-size: 1.3em;
    width: 50px;
  }
}
