/* style.sass */
/* Version: v1.0.0 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 28px;
}

.input-section {
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

#subscription-url {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}
#subscription-url:focus {
  outline: none;
  border-color: #3498db;
}

.error-message {
  color: #e74c3c;
  margin-top: 8px;
  font-size: 14px;
  min-height: 20px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  font-size: 16px;
}

.hidden {
  display: none !important;
}

.results-section {
  margin-top: 30px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-all-text-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}
.copy-all-text-btn:hover {
  background: #2980b9;
}
.copy-all-text-btn:active {
  transform: scale(0.98);
}

.results-count {
  color: #7f8c8d;
  font-size: 14px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.result-item:hover {
  background: #e9ecef;
}
.result-item.result-item-extra {
  border-color: #f39c12;
  border-width: 2px;
}
.result-item.result-item-extra:hover {
  border-color: #e67e22;
  background: #fff8e1;
}

.uri-text {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 13px;
  word-break: break-all;
  color: #2c3e50;
  cursor: pointer;
}

.copy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #7f8c8d;
  transition: color 0.2s;
  cursor: pointer;
}
.copy-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.result-item:hover .copy-icon {
  color: #3498db;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2c3e50;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-item {
    flex-direction: column;
    align-items: stretch;
  }
  .copy-icon {
    align-self: flex-start;
  }
  .uri-text {
    font-size: 12px;
  }
}