/* JSON Parser Modern Styling */

.json-parser-section {
  min-height: calc(100vh - 200px);
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.json-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.json-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 40px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.json-card h1 {
  color: #2e3537;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.json-card .subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.json-input-group {
  margin-bottom: 25px;
}

.json-input-group label {
  display: block;
  color: #394245;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.json-textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #f8f9fa;
}

.json-textarea:focus {
  outline: none;
  border-color: #09afdf;
  box-shadow: 0 0 0 3px rgba(9, 175, 223, 0.1);
  background: white;
}

.json-button-container {
  text-align: center;
  margin: 25px 0;
}

.btn-check-json {
  background: linear-gradient(135deg, #09afdf 0%, #0c9ec7 100%);
  color: white;
  border: none;
  padding: 14px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(9, 175, 223, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-check-json:hover {
  background: linear-gradient(135deg, #0c9ec7 0%, #0889a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 175, 223, 0.4);
}

.btn-check-json:active {
  transform: translateY(0);
}

.btn-check-json i {
  margin-right: 8px;
}

.json-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.json-result.show {
  opacity: 1;
}

.json-result.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 2px solid #c3e6cb;
}

.json-result.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.json-output-group {
  margin-top: 30px;
}

.json-output-group h3 {
  color: #394245;
  font-weight: 600;
  margin-bottom: 15px;
}

.json-output {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  background: #f8f9fa;
  color: #2e3537;
  resize: vertical;
}

.json-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-item i {
  font-size: 2.5rem;
  color: #09afdf;
  margin-bottom: 10px;
}

.feature-item h4 {
  color: #2e3537;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .json-card {
    padding: 25px;
  }
  
  .json-card h1 {
    font-size: 2rem;
  }
  
  .btn-check-json {
    padding: 12px 40px;
    font-size: 1rem;
  }
  
  .json-features {
    grid-template-columns: 1fr;
  }
}
