/* ========================================
   REGISTRY PAGE STYLES
   ======================================== */

/* Registry Header */
.registry-header-section {
  padding: 140px 40px 60px;
  background: #F5F5F5;
  text-align: center;
}

.registry-main-title {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 6.4px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 16px;
}

.registry-subtitle {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2.7px;
  color: #999999;
  text-transform: uppercase;
}

/* Search Section */
.registry-search-section {
  padding: 48px 40px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
}

.registry-search-container {
  max-width: 1200px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  gap: 0;
  max-width: 600px;
  margin: 0 auto 32px;
  border: 1px solid #D0D0D0;
  background: #FFFFFF;
}

.search-input {
  flex: 1;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 300;
  border: none;
  outline: none;
  background: transparent;
}

.search-input::placeholder {
  color: #999999;
}

.search-button {
  padding: 16px 24px;
  background: #000000;
  border: none;
  cursor: pointer;
  transition: background 200ms ease;
}

.search-button:hover {
  background: #333333;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #666666;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  cursor: pointer;
  transition: all 200ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #000000;
  border-color: #000000;
  background: #E8E8E8;
}

/* Registry Grid */
.registry-grid-section {
  padding: 48px 40px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.registry-object-card {
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  transition: all 200ms ease;
}

.registry-object-card:hover {
  border-color: #000000;
  transform: translateY(-4px);
}

.object-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #F5F5F5;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8E8E8;
}

.object-info {
  padding: 24px;
}

.object-name {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 8px;
}

.object-master {
  font-size: 15px;
  font-weight: 300;
  color: #666666;
  margin-bottom: 12px;
}

.object-index {
  font-size: 13px;
  font-weight: 300;
  color: #999999;
  letter-spacing: 1.3px;
  margin-bottom: 16px;
}

.object-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.meta-item {
  font-size: 13px;
  font-weight: 300;
  color: #666666;
}

.object-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 300;
  color: #000000;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.object-link:hover {
  opacity: 0.6;
}

/* Pagination */
.registry-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
  color: #666666;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  cursor: pointer;
  transition: all 200ms ease;
}

.page-btn:hover,
.page-btn.active {
  color: #000000;
  border-color: #000000;
  background: #E8E8E8;
}

.page-dots {
  display: flex;
  align-items: center;
  color: #999999;
  padding: 0 8px;
}

/* ========================================
   OBJECT DETAIL PAGE
   ======================================== */

.object-detail-header {
  padding: 140px 40px 60px;
  background: #F5F5F5;
}

.object-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.object-detail-photo {
  width: 100%;
  height: 500px;
  background: #E8E8E8;
  border: 1px solid #D0D0D0;
}

.photo-large-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F5;
}

.object-detail-right {
  padding-top: 20px;
}

.object-detail-name {
  font-size: 40px;
  font-weight: 300;
  color: #000000;
  margin-bottom: 16px;
}

.object-detail-index {
  font-size: 16px;
  font-weight: 300;
  color: #999999;
  letter-spacing: 1.6px;
  margin-bottom: 48px;
}

.object-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #D0D0D0;
}

.detail-label {
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.detail-value {
  font-size: 16px;
  font-weight: 300;
  color: #000000;
}

.trace-verification-block {
  background: #E8E8E8;
  padding: 32px;
  border: 1px solid #D0D0D0;
}

.trace-title {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.trace-status {
  margin-bottom: 20px;
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.status-badge.approved {
  background: #4CAF50;
  color: #FFFFFF;
}

.verify-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 300;
  color: #000000;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.verify-link:hover {
  opacity: 0.6;
}

/* QR Section */
.object-qr-section {
  padding: 60px 40px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
  text-align: center;
}

.qr-container {
  max-width: 400px;
  margin: 0 auto;
}

.qr-code-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-note {
  font-size: 14px;
  font-weight: 300;
  color: #666666;
}

/* Certificate Section */
.certificate-section {
  padding: 60px 40px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
  text-align: center;
}

.certificate-container {
  max-width: 600px;
  margin: 0 auto;
}

.certificate-title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 4.8px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 16px;
}

.certificate-note {
  font-size: 16px;
  font-weight: 300;
  color: #666666;
  margin-bottom: 32px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #000000;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  text-decoration: none;
  transition: all 200ms ease;
}

.download-btn:hover {
  background: #E8E8E8;
  border-color: #000000;
}

/* ========================================
   TRACE PAGE STYLES
   ======================================== */

.page-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.main-title {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 6.4px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2.7px;
  color: #999999;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.description {
  font-size: 16px;
  font-weight: 300;
  color: #666666;
  margin-bottom: 32px;
}

/* TRACE Examples */
.trace-examples-section {
  padding: 32px 40px 48px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
}

.examples-label {
  font-size: 14px;
  font-weight: 300;
  color: #999999;
  margin-bottom: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.examples-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.example-chip {
  display: inline-block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 300;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  color: #666666;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  cursor: pointer;
  transition: all 200ms ease;
}

.example-chip:hover {
  border-color: #000000;
  color: #000000;
}

.example-chip.active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* TRACE Header */
.trace-header-section {
  padding: 140px 40px 60px;
  background: #F5F5F5;
  text-align: center;
}

.trace-main-title {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 6.4px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 16px;
}

.trace-subtitle {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2.7px;
  color: #999999;
  text-transform: uppercase;
}

/* TRACE Input */
.trace-input-section {
  padding: 48px 40px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
}

.trace-input-container {
  max-width: 800px;
  margin: 0 auto;
}

.trace-intro {
  font-size: 18px;
  font-weight: 300;
  color: #666666;
  text-align: center;
  margin-bottom: 32px;
}

.trace-form {
  max-width: 600px;
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  gap: 0;
  border: 1px solid #D0D0D0;
  background: #FFFFFF;
}

.trace-input {
  flex: 1;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 300;
  border: none;
  outline: none;
  background: transparent;
  text-transform: uppercase;
}

.trace-input::placeholder {
  color: #999999;
  text-transform: none;
}

.trace-submit {
  padding: 20px 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #000000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 200ms ease;
}

.trace-submit:hover {
  background: #333333;
}

.trace-submit:disabled {
  background: #999999;
  cursor: not-allowed;
}

.input-hint {
  font-size: 13px;
  font-weight: 300;
  color: #999999;
  text-align: center;
  margin-top: 16px;
}

/* TRACE Result */
.trace-result-section {
  padding: 48px 40px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
}

.trace-result-container {
  max-width: 800px;
  margin: 0 auto;
}

.trace-found,
.trace-not-found,
.trace-error {
  text-align: center;
}

.trace-found .status-badge {
  margin-bottom: 32px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: left;
}

.result-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid #D0D0D0;
}

.result-label {
  font-size: 12px;
  font-weight: 400;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.result-value {
  font-size: 16px;
  font-weight: 300;
  color: #000000;
}

.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.btn-outline,
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-outline {
  color: #000000;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
}

.btn-outline:hover {
  background: #E8E8E8;
  border-color: #000000;
}

.btn-primary {
  color: #FFFFFF;
  background: #000000;
  border: 1px solid #000000;
}

.btn-primary:hover {
  background: #333333;
}

.trace-not-found .status-badge.not-found {
  background: #999999;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.not-found-text {
  font-size: 24px;
  font-weight: 300;
  color: #000000;
  margin-bottom: 8px;
}

.not-found-subtext {
  font-size: 16px;
  font-weight: 300;
  color: #666666;
}

.trace-error .status-badge.error {
  background: #F44336;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.error-text {
  font-size: 20px;
  font-weight: 300;
  color: #000000;
  margin-bottom: 8px;
}

.error-subtext {
  font-size: 15px;
  font-weight: 300;
  color: #666666;
}

/* Trace Result Page */
.trace-result-page {
  padding: 140px 40px 80px;
  background: #F5F5F5;
  min-height: 100vh;
}

.trace-result-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.trace-found,
.trace-not-found {
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
  padding: 48px;
}

.result-title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: #000000;
  margin: 32px 0;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
  text-align: left;
}

.result-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid #D0D0D0;
}

.result-label {
  font-size: 12px;
  font-weight: 400;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.result-value {
  font-size: 16px;
  font-weight: 300;
  color: #000000;
}

.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.btn-outline,
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-outline {
  color: #000000;
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
}

.btn-outline:hover {
  background: #E8E8E8;
  border-color: #000000;
}

.btn-primary {
  color: #FFFFFF;
  background: #000000;
  border: 1px solid #000000;
}

.btn-primary:hover {
  background: #333333;
}

.trace-not-found .status-badge.not-found {
  background: #999999;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.not-found-text {
  font-size: 16px;
  font-weight: 300;
  color: #666666;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
  }
  
  .trace-result-page {
    padding: 120px 24px 60px;
  }
}

/* TRACE Info */
.trace-info-section {
  padding: 60px 40px;
  background: #F5F5F5;
  border-top: 1px solid #D0D0D0;
}

.trace-info-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.info-title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 4.8px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 24px;
}

.info-text {
  font-size: 16px;
  font-weight: 300;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .registry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .object-detail-content {
    grid-template-columns: 1fr;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .registry-main-title,
  .trace-main-title {
    font-size: 40px;
  }
  
  .registry-grid {
    grid-template-columns: 1fr;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .object-detail-grid {
    gap: 16px;
  }
  
  .detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .result-actions {
    flex-direction: column;
  }
}
