/* Meta Tag Analyzer Tool Styles */

/* List Styling */
.feature-list,
.how-to-use {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.feature-list li,
.how-to-use li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
}

.feature-list li {
  list-style-type: disc;
  padding-left: 0.5rem;
}

.feature-list li strong {
  color: #FF6600;
}

.how-to-use li {
  padding-left: 0.5rem;
  counter-increment: step-counter;
}

.how-to-use li::marker {
  color: #FF6600;
  font-weight: bold;
}

.tool-hero {
  background: linear-gradient(135deg, #FF6600, #FF8C42);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.tool-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,10 L50,30 L70,10 L90,30 L70,50 L90,70 L70,90 L50,70 L30,90 L30,70 L10,50 L30,30 L10,10 L30,30 Z" fill="rgba(255,255,255,0.05)" /></svg>');
  opacity: 0.3;
  z-index: 1;
}

.tool-hero h1 {
  font-size: 2.8rem;
  margin: 0 0 15px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tool-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
  opacity: 0.95;
}

.tool-input-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.url-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.url-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.url-input:focus {
  outline: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.input-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
}

/* Results Section */
.tool-results {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid #eee;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.results-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

#result-url {
  color: #FF6600;
  word-break: break-all;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.result-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

.result-card h3 {
  margin: 0 0 15px;
  color: #1f2937;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.result-item {
  margin-bottom: 15px;
}

.result-label {
  display: block;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.result-value {
  display: block;
  background: white;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2937;
  word-break: break-word;
}

.length-indicator {
  display: inline-block;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 5px;
  background: #f3f4f6;
  color: #4b5563;
}

/* Meta Tags Container */
.meta-tags-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.meta-tag {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #1f2937;
  word-break: break-all;
}

/* SEO Issues */
.seo-issues {
  margin-top: 15px;
}

.issue-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 6px;
  background: #fff8f1;
  border-left: 3px solid #ffa94d;
}

.issue-item.warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.issue-item.error {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.issue-item.success {
  background: #f0fdf4;
  border-left-color: #10b981;
}

.issue-icon {
  margin-right: 10px;
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 2px;
}

.issue-content h4 {
  margin: 0 0 5px;
  font-size: 0.95rem;
  color: #1f2937;
}

.issue-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  border: 1px solid #eee;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF6600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  background: #fef2f2;
  color: #b91c1c;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid #dc2626;
}

.error-icon {
  background: #dc2626;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* Tool Info Section */
.tool-info {
  background: #f9fafb;
  padding: 60px 0;
  border-top: 1px solid #e5e7eb;
}

.tool-info h2 {
  color: #1f2937;
  margin-bottom: 20px;
  font-size: 2rem;
}

.tool-info h3 {
  color: #374151;
  margin: 30px 0 15px;
  font-size: 1.4rem;
}

.tool-info p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.feature-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  margin-bottom: 8px;
  color: #4b5563;
  line-height: 1.6;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.how-to-use {
  background: white;
  border-radius: 10px;
  padding: 20px 25px 20px 45px;
  margin: 25px 0;
  border: 1px solid #e5e7eb;
  counter-reset: step;
}

.how-to-use li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 30px;
  color: #4b5563;
  line-height: 1.6;
}

.how-to-use li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  background: #FF6600;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-hero h1 {
    font-size: 2.2rem;
  }
  
  .url-input-group {
    flex-direction: column;
  }
  
  .url-input {
    width: 100%;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .results-header h2 {
    font-size: 1.3rem;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
}
