/* Reset and Base Styles */
.canva-word-counter-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #1a1a1a;
	line-height: 1.6;
	padding-top: 10px;
}

/* Main Tool Section */
.counter-tool-section {
	background: #ffffff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 12px 48px rgba(26,33,52,.11);
	border: 1px solid #c6cbde;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50px;
	padding-top: 55px;
}

/* Input Wrapper */
.input-wrapper {
  margin-bottom: 32px;
}

.url-input-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: stretch;
}

.url-input {
	flex: 1;
	padding: 16px 20px;
	font-size: 16px;
	border: 1px solid #c6cbde !important;
	border-radius: 4px !important;
	background: #ffffff;
	color: #1a1a1a;
	transition: all 0.2s ease;
	font-family: inherit;
}

.url-input:focus {
  outline: none;
  border-color: #0d7377;
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.url-input::placeholder {
  color: #9ca3af;
}

.check-button {
	padding: 16px 32px !important;
	font-size: 16px;
	font-weight: 500;
	border: none;
	border-radius: 4px !important;
	transition: background-color 0.2s ease;
	white-space: nowrap;
	font-family: inherit;
}

.check-button:hover:not(:disabled) {
  background: #0a5d61;
}

.check-button:active:not(:disabled) {
  background: #084e51;
}

.check-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error Message - Warning Background Under Input */
.error-message {
  display: none;
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 16px;
  color: #92400e;
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.error-message .error-icon {
  margin-right: 10px;
  font-size: 18px;
  vertical-align: middle;
  display: inline-block;
}

.error-message .error-text {
  vertical-align: middle;
  display: inline-block;
  flex: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Report Summary */
.report-summary {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  margin-top: 24px;
}

.report-summary.visible {
  display: block;
}

.report-top {
  margin-bottom: 24px;
}

.report-list {
  list-style: none;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.report-group {
  flex: 1;
  min-width: 200px;
}

.report-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.report-item:last-child {
  border-bottom: none;
}

.report-label {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

.report-value {
  color: #111827;
  font-weight: 600;
  font-size: 16px;
}

/* Textarea Container */
.textarea-container {
  margin-bottom: 24px;
  display: none;
}

.textarea-container.visible {
  display: block;
}

.text-area {
	width: 100%;
	min-height: 200px;
	padding: 15px;
	border: 1px solid #c6cbde;
	border-radius: 4px;
	font-size: 15px;
	background: #fff;
	color: #575757;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
	transition: border-color 0.2s ease;
}

.text-area:focus {
  outline: none;
  border-color: #0d7377;
}

.text-area::placeholder {
  color: #9ca3af;
}

/* Report Bottom */
.report-bottom {
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  text-align: center;
}

.report-bottom .content {
  color: #4b5563;
  font-size: 14px;
  display: block;
}

.report-bottom .bold {
  font-weight: 600;
  color: #111827;
}

.source-url {
  color: #6b7280;
  font-size: 12px;
  margin-top: 8px;
  word-break: break-all;
}

/* Informational Sections */
.info-sections {
	max-width: 100%;
	margin: 0 auto;
	margin-top: 85px;
}

.info-section {
  margin-bottom: 64px;
}

.benefits-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 40px;
  margin-top: 24px;
  margin-bottom: 64px;
}

.info-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

.info-content {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.8;
}

.info-content p {
  margin: 0 0 20px 0;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.how-it-works-list {
  margin: 24px 0;
  padding-left: 24px;
}

.how-it-works-list li {
  margin-bottom: 16px;
  padding-left: 8px;
}

.how-it-works-list li strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
  text-align: center;
}

/* Minimal background colors for each card */
.benefit-card:nth-child(1) {
  background: #fffbeb;
  border-color: #fde68a;
}

.benefit-card:nth-child(2) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.benefit-card:nth-child(3) {
  background: #f5f3ff;
  border-color: #c7d2fe;
}

.benefit-card:nth-child(4) {
  background: #fdf2f8;
  border-color: #fbcfe8;
}

.benefit-card:nth-child(5) {
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.benefit-card:nth-child(6) {
  background: #fff1f2;
  border-color: #fecaca;
}

.benefit-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 25px;
  margin: 0 auto 16px auto;
  display: block;
  line-height: 1;
}

.benefit-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.benefit-card p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .canva-word-counter-container {
    padding: 24px 16px;
  }

  .counter-tool-section {
    padding: 24px 20px;
  }

  .url-input-container {
    flex-direction: column;
  }

  .check-button {
    width: 100%;
  }

  .report-list {
    flex-direction: column;
    gap: 0;
  }

  .report-group {
    min-width: 100%;
  }

  .report-item {
    padding: 10px 0;
  }

  .info-title {
    font-size: 26px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-section {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .report-item {
    padding: 8px 0;
  }

  .report-value {
    font-size: 15px;
  }
}
