/* Helen of Troy Retail Intelligence UI Styles */

:root {
  --brand-color: #0b5394;
  --light-gray: #f5f5f5;
  --border-gray: #e0e0e0;
  --text-gray: #666;
  --text-dark: #333;
  --warning-bg: #fff9e6;
  --warning-border: #ffc107;
}

body {
  font-family: Segoe UI, Arial, Helvetica, sans-serif;
  margin: 20px;
  color: var(--text-dark);
  background: #fafafa;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-color);
}

.brand {
  font-weight: 700;
  color: var(--brand-color);
  font-size: 20px;
}

.meta {
  color: var(--text-gray);
  font-size: 13px;
}

/* Controls Section */
.controls {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.controls label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.controls input[type="date"],
.controls select {
  padding: 6px 8px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: 14px;
}

.controls button {
  padding: 6px 16px;
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.controls button:hover {
  opacity: 0.9;
}

/* Sidebar + Main Layout */
.layout {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

#sidebar {
  flex: 0 0 240px;
  padding: 12px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-height: 600px;
  overflow-y: auto;
}

#sidebar h4 {
  margin: 12px 0 8px 0;
  font-size: 14px;
  color: var(--brand-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

#sidebar h4:first-child {
  margin-top: 0;
}

#topics,
#quick-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-btn,
.quick-btn {
  padding: 8px 10px;
  background: var(--light-gray);
  color: var(--text-dark);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: all 0.2s;
}

.topic-btn:hover,
.quick-btn:hover {
  background: var(--brand-color);
  color: white;
  border-color: var(--brand-color);
}

/* Main Content */
#main {
  flex: 1;
}

#events {
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px;
}

/* Topic Headers */
.topic-header {
  margin: 20px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-color);
  border-bottom: 2px solid var(--brand-color);
  padding-bottom: 8px;
}

.topic-header:first-child {
  margin-top: 0;
}

.topic-list {
  margin-bottom: 16px;
}

/* Events */
.event {
  padding: 12px;
  border-bottom: 1px solid var(--border-gray);
  font-size: 14px;
}

.event:last-child {
  border-bottom: none;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.event-header div {
  flex: 1;
}

.event-header strong {
  color: var(--brand-color);
  font-weight: 600;
  font-size: 15px;
}

.pub-date {
  display: inline-block;
  background: var(--brand-color);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.why-matters {
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--warning-bg);
  border-left: 3px solid var(--warning-border);
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.4;
}

.meta {
  color: var(--text-gray);
  font-size: 12px;
}

.meta a {
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 500;
}

.meta a:hover {
  text-decoration: underline;
}

/* Brand Tags */
.event span[style*="color:#0b5394"] {
  display: inline-block;
  background: #e8f0ff;
  color: var(--brand-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  #sidebar {
    flex: 1;
    max-height: none;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls label {
    flex-direction: column;
  }

  .controls input,
  .controls select {
    width: 100%;
  }

  .event-header {
    flex-direction: column;
  }

  .pub-date {
    display: block;
    margin-top: 6px;
  }
}

body {
  font-family: Segoe UI, Arial, Helvetica, sans-serif;
  margin: 20px;
  color: var(--text-dark);
  background: #fafafa;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-color);
}

.brand {
  font-weight: 700;
  color: var(--brand-color);
  font-size: 20px;
}

.meta {
  color: var(--text-gray);
  font-size: 13px;
}

/* Controls Section */
.controls {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.controls label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.controls input[type="date"],
.controls select {
  padding: 6px 8px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: 14px;
}

.controls button {
  padding: 6px 16px;
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.controls button:hover {
  opacity: 0.9;
}

/* Sidebar + Main Layout */
.layout {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

#sidebar {
  flex: 0 0 240px;
  padding: 12px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-height: 600px;
  overflow-y: auto;
}

#sidebar h4 {
  margin: 12px 0 8px 0;
  font-size: 14px;
  color: var(--brand-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

#sidebar h4:first-child {
  margin-top: 0;
}

#topics,
#quick-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-btn,
.quick-btn {
  padding: 8px 10px;
  background: var(--light-gray);
  color: var(--text-dark);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: all 0.2s;
}

.topic-btn:hover,
.quick-btn:hover {
  background: var(--brand-color);
  color: white;
  border-color: var(--brand-color);
}

/* Main Content */
#main {
  flex: 1;
}

#events {
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px;
}

/* Topic Headers */
.topic-header {
  margin: 20px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-color);
  border-bottom: 2px solid var(--brand-color);
  padding-bottom: 8px;
}

.topic-header:first-child {
  margin-top: 0;
}

.topic-list {
  margin-bottom: 16px;
}

/* Events */
.event {
  padding: 12px;
  border-bottom: 1px solid var(--border-gray);
  font-size: 14px;
}

.event:last-child {
  border-bottom: none;
}

.event strong {
  color: var(--brand-color);
  font-weight: 600;
}

.event > div:first-child {
  margin-bottom: 6px;
  line-height: 1.4;
}

.meta {
  color: var(--text-gray);
  font-size: 12px;
}

.meta a {
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 500;
}

.meta a:hover {
  text-decoration: underline;
}

/* Brand Tags */
.event span[style*="color:#0b5394"] {
  display: inline-block;
  background: #e8f0ff;
  color: var(--brand-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

/* Key Takeaways */
#takeaways {
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px;
}

#takeaways h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
}

.takeaways-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.takeaway-card {
  padding: 12px;
  background: #f9fbff;
  border: 1px solid #e0e8f5;
  border-left: 4px solid var(--brand-color);
  border-radius: 4px;
  transition: all 0.2s;
}

.takeaway-card:hover {
  box-shadow: 0 2px 6px rgba(11, 83, 148, 0.15);
  border-left-color: #0a3f73;
}

.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: white;
}

.tier-badge.tier-1 {
  background: #d32f2f;
}

.tier-badge.tier-2 {
  background: #f57c00;
}

.tier-badge.tier-3 {
  background: #fbc02d;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  #sidebar {
    flex: 1;
    max-height: none;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls label {
    flex-direction: column;
  }

  .controls input,
  .controls select {
    width: 100%;
  }
}
.event{padding:10px;border-bottom:1px solid #eee;margin-bottom:4px}
.event strong{color:#333}
.event a{color:#0b5394;text-decoration:none}
.event a:hover{text-decoration:underline}

.topic-header{margin-top:16px;margin-bottom:8px;padding-bottom:6px;border-bottom:2px solid #0b5394;color:#0b5394;font-size:16px;font-weight:600}
.topic-list{margin-bottom:12px}
.topic-list .event{border-bottom-color:#f0f0f0}

span[style*="color:#0b5394"]{font-weight:600;padding:2px 6px;background:#e3f2fd;border-radius:3px;white-space:nowrap}
