/* ==========================================
   WARRANT CANARY STYLES
   Import modern Kodachi design system
   ========================================== */

@import url('kodachi-modern.css');

/* Warrant-Specific Overrides & Extensions */

/* Global box-sizing */
* {
  box-sizing: border-box;
}

/* Body layout for warrant page */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: auto;
}

/* Warrant-specific container override */
.container {
  position: relative;
  text-align: left;
  max-width: 1200px;
  width: 95%;
  padding: 2.5rem 2.5rem 1rem 2.5rem;
  margin: 2.5rem 1.5rem 1.5rem 1.5rem;
}

/* Logo positioning */
.kodachi-logo {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 5px;
  z-index: 10;
}

.kodachi-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Icon buttons for warrant page */
.icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(26, 188, 156, 0.1);
  color: #1abc9c;
  border: 1px solid #1abc9c;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.icon-btn:focus {
  outline: none;
}

.icon-btn i {
  font-size: 1rem;
}

/* Back button - specifically target the first standalone button */
.container > .icon-btn:first-of-type {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
}

/* Warrant-specific h1 override */
h1 {
  text-align: center;
  width: 100%;
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  font-size: 0.9rem;
  color: #f0f0f0;
  background: rgba(0, 20, 20, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 20px;
  overflow-x: auto;
  max-height: 2000px;
  width: 100%;
  overflow-y: auto;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

/* Custom scrollbar for pre elements */
pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

pre::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

pre::-webkit-scrollbar-thumb {
  background-color: rgba(0, 255, 255, 0.3);
  border-radius: 3px;
}

pre::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 255, 255, 0.5);
}

/* Warrant-specific button positioning */
.button-group {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  z-index: 100;
}

/* Ensure button group items stay inline with consistent spacing */
.button-group .icon-btn,
.button-group a.icon-btn,
.button-group button.icon-btn {
  position: relative;
  margin: 0 !important;
}

.content-section {
  margin-top: 20px;
  display: none;
  background: rgba(0, 20, 20, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
}

.content-section.active {
  display: block;
}

/* Custom scrollbar for content sections */
.content-section::-webkit-scrollbar {
  width: 6px;
}

.content-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.content-section::-webkit-scrollbar-thumb {
  background-color: rgba(0, 255, 255, 0.3);
  border-radius: 3px;
}

.content-section::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 255, 255, 0.5);
}

/* Center the paragraph with links above footer */
.container > p {
  text-align: center;
  margin: 1rem 0;
}

/* Warrant-specific responsive styles */
@media (max-width: 1024px) {
  .button-group {
    flex-wrap: wrap;
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  pre {
    font-size: 0.8rem;
    max-height: 1500px;
  }

  .button-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
    margin-top: 60px;
    max-width: none;
  }

  .container > .icon-btn:first-of-type {
    position: static;
    margin-bottom: 1rem;
  }
}

/* Warrant small mobile override */
@media (max-width: 380px) {
  pre {
    font-size: 0.75rem;
    max-height: 1200px;
  }
}

/* Warrant larger screens */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
}

/* Add specific styling for the warrant content to make it more readable */
#warrant-content {
  text-align: left;
  padding: 25px;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Enhanced table-like layout for hash content */
#hash-content,
#log-content {
  text-align: left;
  padding: 25px;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  font-family: monospace;
}
