/* diamond-theme.css - A luxurious, elegant theme for the diamond symbols page */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f7fafd; /* Soft icy blue background for diamond feel */
  color: #23272f;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: none !important;
  background: none !important;
}

.header {
  background: linear-gradient(135deg, #1e2a38 0%, #3a506b 100%);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 64, 128, 0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #00bfff;
}

.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: #f7fafd;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s;
  background-color: rgba(0, 191, 255, 0.18);
  border: 1px solid rgba(0, 191, 255, 0.25);
}
.nav-button:hover {
  background-color: rgba(0, 191, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 191, 255, 0.18);
}

.symbol-board-controls {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 6px 16px rgba(0, 191, 255, 0.10), 0 0 0 2px rgba(0, 191, 255, 0.10);
  max-width: 600px;
  margin: 30px auto;
}
.symbol-board-controls:hover {
  box-shadow: 0 10px 20px rgba(0, 191, 255, 0.18), 0 0 0 2px rgba(0, 191, 255, 0.18);
}

.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 #b2ebf2;
  background-color: #f7fafd;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s;
}
.symbol-board-textarea:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.18);
}

.textarea-buttons {
  display: flex;
  gap: 10px;
}

.button {
  padding: 8px 16px;
  background-color: #00bfff;
  color: #f7fafd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
}
.button:hover {
  background-color: #009acd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 191, 255, 0.18);
}

.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: #1e2a38;
  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, #00bfff, transparent);
}
.section-title::before {
  right: 105%;
}
.section-title::after {
  left: 105%;
}

.section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #3a506b;
}

.symbols-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin: 20px auto;
  box-shadow: 0 6px 16px rgba(0, 191, 255, 0.05);
  border: 1px solid #b2ebf2;
  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, #00bfff, #b2f0ff, #00bfff);
}

.symbols-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 20px;
  color: #1e2a38;
  position: relative;
}
.symbols-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00bfff, 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;
  min-width: 80px;
  height: 80px;
  background-color: #f7fafd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 191, 255, 0.08);
  border: 1px solid #b2ebf2;
  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(0, 191, 255, 0.10), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.symbol:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 191, 255, 0.18);
  border-color: #00bfff;
  z-index: 2;
}
.symbol:hover::before {
  opacity: 1;
}
.symbol:active {
  transform: scale(0.95);
  box-shadow: 0 4px 8px rgba(0, 191, 255, 0.10);
  transition: transform 0.1s;
}

/* Special diamond glow for diamond symbols */
.symbol[onclick*="diamond"],
.symbol[onclick*="💎"],
.symbol[onclick*="♦"],
.symbol[onclick*="◇"],
.symbol[onclick*="◆"] {
  background: linear-gradient(135deg, #e0f7fa, #fff, #e0f7fa);
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.18);
  border-color: #00bfff;
}
.symbol[onclick*="💎"]::after,
.symbol[onclick*="♦"]::after,
.symbol[onclick*="◇"]::after,
.symbol[onclick*="◆"]::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 191, 255, 0.18), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  animation: diamondGlow 3s infinite alternate;
}

@keyframes diamondGlow {
  0% {
    opacity: 0.3;
    background: radial-gradient(circle at 30% 30%, rgba(0, 191, 255, 0.18), transparent 70%);
  }
  50% {
    opacity: 0.5;
    background: radial-gradient(circle at center, rgba(0, 191, 255, 0.18), transparent 70%);
  }
  100% {
    opacity: 0.3;
    background: radial-gradient(circle at 70% 70%, rgba(0, 191, 255, 0.18), transparent 70%);
  }
}

.additional-symbol-categories {
  padding: 40px 20px;
  background-color: rgba(247, 250, 253, 0.85);
  text-align: center;
  margin-top: 40px;
}
.additional-symbol-categories .section-title {
  font-size: 2rem;
  margin-bottom: 30px;
}
.symbol-categories-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px;
}

.symbol-category {
  text-align: center;
  width: auto;
  margin: 0;
  padding: 12px 8px;
}
.symbol-category a {
  text-decoration: none;
  color: #1e2a38;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.symbol-category span {
  margin: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .symbol-categories-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .symbol-categories-container {
    grid-template-columns: 1fr;
  }
}

/* Fix for incorrectly nested symbol categories */
.symbol-categories-container > .symbol-category,
.symbol-categories-container > div > .symbol-category {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.05);
  transition: all 0.3s ease-in-out;
  border: 1px solid #b2ebf2;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 220px;
  margin-bottom: 15px;
}
.symbol-category:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 191, 255, 0.18);
  border-color: #00bfff;
}
.symbol-category a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 15px;
  text-decoration: none;
  color: #1e2a38;
  font-weight: 500;
  text-align: center;
  height: 100%;
  font-size: 0.95rem;
}
.symbol-category a span:first-child {
  font-size: 1.2em;
  margin-bottom: 5px;
}
.symbol-category:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 191, 255, 0.10);
}

.about-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 6px 16px rgba(0, 191, 255, 0.05);
  border: 1px solid #b2ebf2;
  position: relative;
}
.about-box h3 {
  font-size: 1.8rem;
  color: #1e2a38;
  margin-bottom: 20px;
  text-align: center;
}
.about-box p {
  color: #3a506b;
  line-height: 1.7;
  margin-bottom: 16px;
}
.thecoolsymbols-table-container {
  overflow-x: auto;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.08);
  border-radius: 8px;
}
.thecoolsymbols-about-table {
  width: 100%;
  border-collapse: collapse;
  border-style: hidden;
  background: linear-gradient(135deg, #ffffff, #f7fafd);
  overflow: hidden;
}
.thecoolsymbols-about-table th {
  background: linear-gradient(135deg, #1e2a38 0%, #3a506b 100%);
  color: #f7fafd;
  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 #b2ebf2;
  transition: background-color 0.3s;
}
.thecoolsymbols-about-table tr:last-child td {
  border-bottom: none;
}
.thecoolsymbols-about-table tr:hover td {
  background-color: rgba(0, 191, 255, 0.05);
}
.about-instructions {
  margin-top: 30px;
}
.about-instructions h4 {
  color: #1e2a38;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.about-instructions ul {
  padding-left: 20px;
}
.about-instructions li {
  margin-bottom: 8px;
  color: #3a506b;
}

.footer {
  background: linear-gradient(135deg, #1e2a38 0%, #3a506b 100%);
  color: #f7fafd;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 2px solid #00bfff;
}
.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: #f7fafd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #00bfff;
}

.copy-box {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #1e2a38 0%, #3a506b 100%);
  color: #f7fafd;
  border: 2px solid #00bfff;
  border-radius: 12px;
  padding: 15px 25px;
  box-shadow: 0 10px 25px rgba(0, 191, 255, 0.2);
  animation: diamondGlow 2s infinite alternate;
  z-index: 9999;
  transition: transform 0.3s ease-out;
}

.copy-box.active {
  transform: translateX(-50%) translateY(0);
}

/* Enhanced animation for diamond symbol clicks */
@keyframes diamondPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

.symbol-pulse {
  animation: diamondPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Sparkle effect for diamond symbols */
.sparkle {
  position: absolute;
  background-color: #00bfff;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  z-index: 10;
  animation: sparkle 0.8s linear forwards;
}

@keyframes sparkle {
  0% { transform: scale(0); opacity: 0.8; }
  50% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(0); opacity: 0; }
}

/* Layout structure for main content and sidebar */
.page-layout-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.main-content-area {
  flex: 3;
  min-width: 0; /* Prevent flex item from overflowing */
}

.sidebar {
  flex: 1;
  max-width: 300px;
  padding: 20px;
  background: linear-gradient(135deg, #f7fafd 0%, #f0f8ff 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.12);
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar .additional-symbol-categories {
  padding: 20px 0;
  background-color: transparent;
  margin-top: 0;
}

.sidebar .section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.sidebar .additional-symbol-categories .section-title::before,
.sidebar .additional-symbol-categories .section-title::after {
  display: none; /* Hide decorative lines in sidebar to prevent overflow */
}

.sidebar .symbol-categories-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 0;
  margin: 0;
}

.sidebar .symbol-category {
  width: 100%;
  margin: 0;
  padding: 14px 8px;
  background: #e3f2fd;
  color: #1e2a38;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 191, 255, 0.05);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.sidebar .symbol-category a {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1e2a38;
  font-weight: 600;
  font-size: 0.89rem;
  gap: 4px;
  padding: 0;
}

.sidebar .symbol-category span:first-child {
  font-size: 1.3em;
  margin-bottom: 2px;
}

@media screen and (max-width: 1024px) {
  .sidebar .symbol-categories-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .sidebar .symbol-categories-container {
    grid-template-columns: 1fr;
  }
}
