/**
 * Frontend styles for AHM AI Post Summary
 * Version: 1.1.6
 */

/* Base Summary Box Styles */
.ahmaipsu-summary-box {
  margin-bottom: 30px;
  font-family: inherit;
  clear: both;
}

.ahmaipsu-summary-title {
  margin: 0 0 15px 0;
  font-weight: 600;
  line-height: 1.3;
}

.ahmaipsu-summary-content {
  line-height: 1.6;
  margin-bottom: 12px;
}

.ahmaipsu-summary-content ul {
  margin: 0;
  padding-left: 20px;
}

.ahmaipsu-summary-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.ahmaipsu-summary-content li:last-child {
  margin-bottom: 0;
}

.ahmaipsu-summary-disclaimer {
  margin-top: 12px;
}

.ahmaipsu-summary-disclaimer small {
  font-size: 12px;
  font-style: italic;
  display: block;
}

/* Classic Theme */
.ahmaipsu-theme-classic {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ahmaipsu-theme-classic .ahmaipsu-summary-title {
  color: #333;
  font-size: 18px;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 5px;
  display: inline-block;
}

.ahmaipsu-theme-classic .ahmaipsu-summary-content {
  color: #555;
  font-size: 16px;
}

.ahmaipsu-theme-classic .ahmaipsu-summary-disclaimer {
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.ahmaipsu-theme-classic .ahmaipsu-summary-disclaimer small {
  color: #777;
}

/* Minimal Theme */
.ahmaipsu-theme-minimal {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 3px;
}

.ahmaipsu-theme-minimal .ahmaipsu-summary-title {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.ahmaipsu-theme-minimal .ahmaipsu-summary-content {
  color: #555;
  font-size: 15px;
}

.ahmaipsu-theme-minimal .ahmaipsu-summary-disclaimer small {
  color: #888;
}

/* Modern Theme */
.ahmaipsu-theme-modern {
  padding: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ahmaipsu-theme-modern .ahmaipsu-summary-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.ahmaipsu-theme-modern .ahmaipsu-summary-content {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
}

.ahmaipsu-theme-modern .ahmaipsu-summary-disclaimer small {
  color: rgba(255, 255, 255, 0.8);
}

/* Elegant Theme */
.ahmaipsu-theme-elegant {
  padding: 25px;
  background: #fff;
  border-left: 4px solid #8e44ad;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: Georgia, serif;
}

.ahmaipsu-theme-elegant .ahmaipsu-summary-title {
  color: #8e44ad;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
}

.ahmaipsu-theme-elegant .ahmaipsu-summary-content {
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}

.ahmaipsu-theme-elegant .ahmaipsu-summary-disclaimer small {
  color: #999;
  font-style: italic;
}

/* Card Theme */
.ahmaipsu-theme-card {
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
}

.ahmaipsu-theme-card .ahmaipsu-summary-title {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ahmaipsu-theme-card .ahmaipsu-summary-content {
  color: #555;
  font-size: 16px;
}

.ahmaipsu-theme-card .ahmaipsu-summary-disclaimer small {
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ahmaipsu-summary-box {
    margin-bottom: 20px;
  }

  .ahmaipsu-theme-classic,
  .ahmaipsu-theme-minimal,
  .ahmaipsu-theme-modern,
  .ahmaipsu-theme-elegant,
  .ahmaipsu-theme-card {
    padding: 15px;
  }

  .ahmaipsu-summary-title {
    font-size: 16px !important;
  }

  .ahmaipsu-summary-content {
    font-size: 14px !important;
  }
}

/* Legacy Support (for backward compatibility) */
.gpt-summary-box {
  @extend .ahmaipsu-theme-classic;
}

.gpt-summary-title {
  @extend .ahmaipsu-summary-title;
}

.gpt-summary-content {
  @extend .ahmaipsu-summary-content;
}

.gpt-summary-disclaimer {
  @extend .ahmaipsu-summary-disclaimer;
}
