/**
 * Frontend Styles for Hostinger Affiliate Extension
 * Pros/Cons Display
 */

/* Custom Description Styling */
.haf-custom-description {
  margin: 20px 0;
  line-height: 1.6;
  color: #374151;
}

.haf-custom-description p {
  margin: 0 0 1em 0;
}

.haf-custom-description ul,
.haf-custom-description ol {
  margin: 1em 0;
  padding-left: 24px;
}

.haf-custom-description li {
  margin-bottom: 0.5em;
}

.haf-custom-description a {
  color: #3b82f6;
  text-decoration: none;
}

.haf-custom-description a:hover {
  text-decoration: underline;
}

.haf-custom-description strong {
  font-weight: 600;
  color: #1f2937;
}

/* Pros/Cons Wrapper */
.haf-pros-cons-wrapper {
  margin: 25px 0;
  clear: both;
}

.haf-pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
}

/* Column Styles */
.haf-pros-column,
.haf-cons-column {
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.haf-pros-column {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #22c55e;
}

.haf-cons-column {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #ef4444;
}

/* Title Styles */
.haf-pros-title,
.haf-cons-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.haf-pros-title {
  color: #16a34a;
}

.haf-cons-title {
  color: #dc2626;
}

/* Icon Styles */
.haf-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* List Styles */
.haf-pros-list,
.haf-cons-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.haf-pros-list li,
.haf-cons-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 15px;
}

.haf-pros-list li {
  color: #166534;
}

.haf-cons-list li {
  color: #991b1b;
}

/* Custom bullet points */
.haf-pros-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.6;
}

.haf-cons-list li:before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 0;
  color: #ef4444;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.6;
}

/* Hover Effects */
.haf-pros-column:hover {
  box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
}

.haf-cons-column:hover {
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .haf-pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .haf-pros-column,
  .haf-cons-column {
    padding: 20px;
  }

  .haf-pros-title,
  .haf-cons-title {
    font-size: 18px;
  }

  .haf-pros-list li,
  .haf-cons-list li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .haf-pros-column,
  .haf-cons-column {
    padding: 16px;
  }

  .haf-pros-title,
  .haf-cons-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .haf-icon {
    width: 20px;
    height: 20px;
  }
}

/* Print Styles */
@media print {
  .haf-pros-cons-grid {
    display: block;
  }

  .haf-pros-column,
  .haf-cons-column {
    page-break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  .haf-custom-description {
    color: #e5e7eb;
  }

  .haf-custom-description strong {
    color: #f3f4f6;
  }

  .haf-pros-column {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  }

  .haf-cons-column {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  }

  .haf-pros-list li {
    color: #86efac;
  }

  .haf-cons-list li {
    color: #fca5a5;
  }
}
