/* royal-crown-theme.css - A luxurious theme for the crown symbols page */

/* Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9f7f3; /* Soft cream background for royal feel */
  color: #2c2825; /* Rich dark text color */
  margin: 0;
  padding: 0;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.214 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.344 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.415 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zM39.9 16.385l1.414-1.414L30 3.658 18.686 14.97l1.415 1.415 9.9-9.9 9.9 9.9zm-2.83 2.828l1.415-1.414L30 9.313 21.515 17.8l1.414 1.413L30 11.8l7.07 7.414z' fill='%23daa520' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: -1;
}

/* Header Styling */
.header {
  background: linear-gradient(135deg, #3c3227 0%, #1e1613 100%);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #daa520; /* Gold border */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-image {
  height: 40px;
  transition: transform 0.3s;
}

.logo-image:hover {
  transform: scale(1.05);
}

.nav-button-container {
  display: flex;
  gap: 10px;
}

.nav-button {
  color: #f9f7f3;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s;
  background-color: rgba(218, 165, 32, 0.2); /* Semi-transparent gold */
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.nav-button:hover {
  background-color: rgba(218, 165, 32, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Symbol Board Controls */
.symbol-board-controls {
  position: static;
  background: linear-gradient(135deg, #3c3227 0%, #1e1613 100%);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(218, 165, 32, 0.3);
  transition: box-shadow 0.3s;
  max-width: 600px;
  margin: 30px auto;
}

.symbol-board-controls:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(218, 165, 32, 0.5);
}

.textarea-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.symbol-board-textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(218, 165, 32, 0.4);
  background-color: #f9f7f3;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s;
}

.symbol-board-textarea:focus {
  outline: none;
  border-color: #daa520;
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.25);
}

.textarea-buttons {
  display: flex;
  gap: 10px;
}

.button {
  padding: 8px 16px;
  background-color: #daa520;
  color: #f9f7f3;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
}

.button:hover {
  background-color: #c68e17;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-section {
  text-align: center;
  padding: 30px 0 10px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.main-section::after {
  content: '👑';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  opacity: 0.5;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #3c3227;
  position: relative;
  display: inline-block;
}

.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  height: 2px;
  top: 50%;
  width: 40px;
  background: linear-gradient(90deg, transparent, #daa520, transparent);
}

.section-title::before {
  right: 105%;
}

.section-title::after {
  left: 105%;
}

.section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #5a5146;
}

/* Symbols Container */
.symbols-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin: 20px auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(218, 165, 32, 0.2);
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

.symbols-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #daa520, #e9c46a, #daa520);
}

.symbols-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 20px;
  color: #3c3227;
  position: relative;
}

.symbols-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #daa520, transparent);
  margin: 10px auto;
}

.symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 800px;
}

.symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(218, 165, 32, 0.2);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.symbol::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(218, 165, 32, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.symbol:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(218, 165, 32, 0.3);
  border-color: rgba(218, 165, 32, 0.6);
  z-index: 2;
}

.symbol:hover::before {
  opacity: 1;
}

.symbol:active {
  transform: scale(0.95);
  box-shadow: 0 4px 8px rgba(218, 165, 32, 0.15);
  transition: transform 0.1s;
}

/* Category Links */
.additional-symbol-categories {
  padding: 40px 20px;
  background-color: rgba(249, 247, 243, 0.8); /* Slightly more transparent */
  text-align: center; /* Center the title */
  margin-top: 40px;
}

.sidebar .additional-symbol-categories .section-title::before,
.sidebar .additional-symbol-categories .section-title::after {
  display: none; /* Prevent decorative lines from overflowing in sidebar */
}

.additional-symbol-categories .section-title {
  font-size: 2rem; /* Adjusted size */
  margin-bottom: 30px;
}

.symbol-categories-container {
  display: flex; /* Use flexbox for better control */
  flex-wrap: wrap; /* Allow items to wrap */
  gap: 15px;
  justify-content: center; /* Center items horizontally */
  max-width: 1000px; /* Limit max width */
  margin: 0 auto; /* Center the container itself */
}

.sidebar .symbol-categories-container {
  max-width: 100%; /* Ensure this container fits within the sidebar */
  margin-left: 0;  /* Adjust margins for 100% width */
  margin-right: 0;
}

.symbol-category {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(218, 165, 32, 0.2);
  flex: 1 1 200px; /* Flex properties for responsive sizing */
  min-width: 180px; /* Minimum width before wrapping */
  max-width: 220px; /* Maximum width */
}

.symbol-category:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(218, 165, 32, 0.25);
  border-color: rgba(218, 165, 32, 0.6);
}

.symbol-category a {
  display: flex;
  flex-direction: column; /* Stack icon and text vertically if needed */
  align-items: center;
  justify-content: center;
  padding: 18px 15px;
  text-decoration: none;
  color: #3c3227;
  font-weight: 500;
  text-align: center;
  height: 100%;
  font-size: 0.95rem;
}

.symbol-category a span:first-child {
  font-size: 1.2em; /* Make icon/symbol part slightly larger */
  margin-bottom: 5px;
}

.symbol-category:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.2);
}

/* About Box */
.about-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(218, 165, 32, 0.3);
  position: relative;
}

.about-box h3 {
  font-size: 1.8rem;
  color: #3c3227;
  margin-bottom: 20px;
  text-align: center;
}

.about-box p {
  color: #5a5146;
  line-height: 1.7;
  margin-bottom: 16px;
}

.thecoolsymbols-table-container {
  overflow-x: auto;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.thecoolsymbols-about-table {
  width: 100%;
  border-collapse: collapse;
  border-style: hidden;
  background: linear-gradient(135deg, #ffffff, #f9f7f3);
  overflow: hidden;
}

.thecoolsymbols-about-table th {
  background: linear-gradient(135deg, #3c3227 0%, #1e1613 100%);
  color: #f9f7f3;
  padding: 12px 16px;
  text-align: left;
}

.thecoolsymbols-about-table th:first-child {
  border-top-left-radius: 8px;
}

.thecoolsymbols-about-table th:last-child {
  border-top-right-radius: 8px;
}

.thecoolsymbols-about-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
  transition: background-color 0.3s;
}

.thecoolsymbols-about-table tr:last-child td {
  border-bottom: none;
}

.thecoolsymbols-about-table tr:hover td {
  background-color: rgba(218, 165, 32, 0.05);
}

.about-instructions {
  margin-top: 30px;
}

.about-instructions h4 {
  color: #3c3227;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.about-instructions ul {
  padding-left: 20px;
}

.about-instructions li {
  margin-bottom: 8px;
  color: #5a5146;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #3c3227 0%, #1e1613 100%);
  color: #f9f7f3;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 2px solid #daa520;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-text {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #f9f7f3;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #daa520;
}

/* Copy notification styling */
.copy-box {
  background: linear-gradient(135deg, #3c3227 0%, #1e1613 100%);
  color: #f9f7f3;
  border: 2px solid #daa520;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
  }
  to {
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .symbols {
    gap: 10px;
  }
  
  .symbol {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .symbol-board-controls {
    top: 70px;
    max-width: 90%;
    padding: 12px;
  }
  
  .symbol-categories-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .about-box {
    padding: 20px;
  }
  
  .symbols-container {
    padding: 20px;
    margin: 15px auto;
  }
}

@media (max-width: 480px) {
  .symbol {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .symbol-board-controls {
    top: 65px;
    padding: 10px;
  }
  
  .textarea-buttons {
    flex-direction: row;
  }
}

/* Light glow effect for royal symbols */
.symbol[onclick*="crown"],
.symbol[onclick*="king"],
.symbol[onclick*="queen"],
.symbol[onclick*="prince"],
.symbol[onclick*="princess"] {
  position: relative;
  background: linear-gradient(135deg, #fff6e5, #fff, #fff6e5);
}

.symbol[onclick*="crown"]::after,
.symbol[onclick*="king"]::after,
.symbol[onclick*="queen"]::after,
.symbol[onclick*="prince"]::after,
.symbol[onclick*="princess"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(218, 165, 32, 0.3), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  animation: royalGlow 3s infinite alternate;
}

/* Special effect for crown symbol 👑 */
.symbol[onclick*="'👑'"] {
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
  border-color: rgba(218, 165, 32, 0.5);
}

.symbol[onclick*="'👑'"]::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: none;
  border: 2px solid transparent;
  border-radius: 12px;
  animation: royalBorder 4s infinite linear;
  pointer-events: none;
}

@keyframes royalGlow {
  0% {
    opacity: 0.4;
    background: radial-gradient(circle at 30% 30%, rgba(218, 165, 32, 0.3), transparent 70%);
  }
  50% {
    opacity: 0.6;
    background: radial-gradient(circle at center, rgba(218, 165, 32, 0.3), transparent 70%);
  }
  100% {
    opacity: 0.4;
    background: radial-gradient(circle at 70% 70%, rgba(218, 165, 32, 0.3), transparent 70%);
  }
}

@keyframes royalBorder {
  0% {
    border-color: rgba(218, 165, 32, 0.2);
  }
  25% {
    border-color: rgba(218, 165, 32, 0.5);
  }
  50% {
    border-color: rgba(218, 165, 32, 0.8);
  }
  75% {
    border-color: rgba(218, 165, 32, 0.5);
  }
  100% {
    border-color: rgba(218, 165, 32, 0.2);
  }
}
