/* Simple Generator Styles */

.random-nicknames-block .block-body {
  padding: 1.5rem;
}

.row-gen {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gen-button-wrapper {
  text-align: center;
}

.gen-btn {
  background: linear-gradient(135deg, #0063a9 0%, #0095ff 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 99, 169, 0.25);
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.gen-btn:hover {
  background: linear-gradient(135deg, #00548f 0%, #0080e0 100%);
  box-shadow: 0 6px 16px rgba(0, 99, 169, 0.35);
  transform: translateY(-2px);
}

.gen-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 99, 169, 0.2);
}

.gen-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 166, 255, 0.4), 0 4px 12px rgba(0, 99, 169, 0.25);
}

.gen-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Content Wrapper */
.gen-content-wrapper {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.nick-image-wrapper {
  flex-shrink: 0;
  width: 200px;
}

.nick-image {
  width: 100%;
  min-height: 250px;
  background: linear-gradient(135deg, #0063a9 0%, #0074c4 50%, #0095ff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 99, 169, 0.2);
}

.nick-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.nick-image:empty::after {
  content: '🎮';
  font-size: 3rem;
  opacity: 0.3;
}

.nicknames-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .nick-image-wrapper {
    width: 160px;
  }
  
  .nick-image {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .gen-content-wrapper {
    flex-direction: column;
  }
  
  .nick-image-wrapper {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .nicknames-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nicknames-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* Nickname Items - Smaller */
.nicknames-grid .item {
  margin: 0;
  background: #ffffff;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.nicknames-grid .item:hover {
  background: #f0f9ff;
  border-color: #0095ff;
  box-shadow: 0 4px 12px rgba(0, 99, 169, 0.12);
  transform: translateY(-2px);
}

.nicknames-grid .item .main-nickname {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0063a9;
  margin-bottom: 0.375rem;
  word-break: break-word;
  line-height: 1.3;
  cursor: pointer;
}

.nicknames-grid .item:hover .main-nickname {
  color: #0095ff;
}

.nicknames-grid .item hr.hr {
  margin: 0.375rem 0;
  border: none;
  border-top: 1px solid #e1e8ed;
}

.nicknames-grid .item .votes {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.nicknames-grid .item .votes .rank_green,
.nicknames-grid .item .votes .rank_red {
  font-size: 0.6875rem;
  padding: 0.1875rem 0.375rem;
}

/* Copy Animation */
.nicknames-grid .item.copied {
  border-color: #00c853 !important;
  background: #e9ffe9 !important;
  animation: copyFlash 0.5s ease;
}

@keyframes copyFlash {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Toast Notifications */
.csp-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #0063a9 0%, #0095ff 100%);
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 99, 169, 0.3);
  font-weight: 600;
  font-size: 0.9375rem;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 300px;
}

.csp-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.csp-toast.success {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
}

.csp-toast.error {
  background: linear-gradient(135deg, #f44336 0%, #ff5252 100%);
}

@media (max-width: 768px) {
  .csp-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}
