/* Base styles & reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
  font-size: 2.5rem;
}

header p {
  opacity: 0.9;
  font-size: 1.2rem;
}

/* URL Input Section */
.url-input {
  padding: 30px 20px;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
}

.input-group {
  display: flex;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

input[type="url"] {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="url"]:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

#analyze-btn {
  padding: 12px 25px;
  background-color: #7c3aed;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

#analyze-btn:hover {
  background-color: #6d28d9;
}

#analyze-btn:active, #analyze-btn.clicked {
  transform: translateY(2px);
  background-color: #5b21b6;
}

/* Loading Animation */
#loading {
  text-align: center;
  margin-top: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  border-top-color: #7c3aed;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

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

/* Error Container */
.error-message {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  color: #e53e3e;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px;
  text-align: center;
}

/* Results Container */
#results-container {
  padding: 0;
  background-color: #fff;
}

/* Tabs Navigation */
.tabs {
  display: flex;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 15px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #7c3aed;
}

.tab-btn.active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

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

/* Tab Content */
.tab-content {
  padding: 30px 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #1e293b;
}

/* Screenshot Tab */
.screenshot-container {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 20px;
}

#page-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Analysis Content Styles */
.analysis-content {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 20px;
}

.analysis-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #334155;
}

.analysis-content ul {
  list-style-type: none;
  margin-bottom: 20px;
}

.analysis-content ul li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.analysis-content ul li:last-child {
  border-bottom: none;
}

.analysis-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: #e2e8f0;
}

.action-btn:active {
  transform: translateY(1px);
}

.action-btn i {
  font-size: 0.9rem;
}

/* Card design for value props, strengths, and recommendations */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e293b;
}

.tag {
  display: inline-block;
  background-color: #e0e7ff;
  color: #4f46e5;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
  }
  
  input[type="url"], #analyze-btn {
    width: 100%;
  }
  
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .tab-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
  }
}
