/**
 * Component-specific styles for Cat Surname Registry
 * Split from main styles.css for better organization
 */

/* Toast Notifications */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--terminal-green);
  color: var(--charcoal);
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 2000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: bold;
  text-align: center;
  border-left: 5px solid #4caf50;
}

.toast.toast-success {
  background-color: var(--terminal-green);
  border-left-color: #4caf50;
}

.toast.toast-error {
  background-color: #ff5252;
  border-left-color: #d32f2f;
  color: white;
}

.toast.toast-info {
  background-color: #2196f3;
  border-left-color: #0d47a1;
  color: white;
}

.toast.toast-bottom {
  bottom: 20px;
}

.toast.toast-top {
  top: 20px;
  transform: translateX(-50%) translateY(-100px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Cat Cards */
.cat-card {
  background-color: var(--paper-white);
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.cat-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cat-card-content {
  padding: 15px;
}

.cat-card-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.cat-card-date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
}

.cat-card-desc {
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cat-card-honorifics {
  font-style: italic;
  color: #585858;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.cat-card-throne {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #5a5a5a;
  font-style: italic;
}

.cat-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cat-card-tag {
  background-color: #f0f0f0;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Surname Cards */
.name-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  padding-bottom: 50px; /* Make room for the register paw button */
}

.name-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2326334d' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  z-index: 0;
}

.name-card:hover {
  transform: translateY(-3px) rotate(0.5deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.name-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.name-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.meaning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--heritage-navy);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.meaning-icon:hover {
  background-color: var(--terminal-green);
  color: var(--charcoal);
  transform: scale(1.1);
}

.tooltip {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background-color: var(--paper-white);
  color: var(--charcoal);
  text-align: left;
  border-radius: 5px;
  padding: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--heritage-navy);
  z-index: 100;
  bottom: 25px;
  right: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: normal;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.meaning-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.register-paw {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background-color: var(--terminal-green);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-size: 18px;
  overflow: hidden;
}

/* Create a custom paw print */
.register-paw::before {
  content: "🐾";
  font-size: 14px; /* Smaller font size to make it appear as just two paw prints */
}

.register-paw:hover {
  transform: scale(1.1);
  background-color: var(--dusty-rose);
}

/* Cat thumbnail in cards */
.cat-thumbnail-container {
  margin: 10px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.cat-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 3px solid var(--heritage-navy);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.cat-thumbnail::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px;
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
}

.cat-thumbnail:hover {
  transform: scale(1.05);
  border-color: var(--terminal-green);
  cursor: pointer !important;
}

.cat-thumbnail:hover::before {
  opacity: 1;
}

.click-message {
  /* Hide the click message as requested */
  display: none;
}

.clickable-cat:hover .click-message {
  /* Keep hover state, but message still hidden */
  display: none;
}

/* Hoverable elements */
.hoverable-title, .hoverable-throne {
  cursor: help;
  position: relative;
}

.hoverable-title:hover, .hoverable-throne:hover {
  color: #26334D;
  background-color: rgba(168, 255, 186, 0.1);
}

/* Active navigation link */
nav a.active {
  color: #3b6ba5;
  font-weight: 600;
  border-bottom: 2px solid #3b6ba5;
}