/**
 * Brand Collateral Styles
 * 
 * Styles for the Brand Collateral feature
 * Compiled from brand-collateral.scss
 */

/* Brand Collateral Archive Page */
.brand-collateral-page #data_table.brand-collateral-table {
  border-bottom: none;
}

.weka-brand-collateral.brand-collateral-panel {
  background: var(--weka-card-bg, #fff);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px var(--weka-shadow-soft, rgba(0, 0, 0, 0.08));
}

.weka-brand-collateral .portal-panel-header {
  margin-bottom: 0.75rem;
}

.weka-brand-collateral-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.weka-brand-collateral-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.weka-brand-collateral-field label {
  color: var(--weka-muted-text-color, #59636e);
  font-size: 0.875rem;
  font-weight: 600;
}

.weka-brand-collateral-field input,
.weka-brand-collateral-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  background: var(--weka-card-bg, #fff);
}

.weka-brand-collateral-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.weka-brand-collateral__resource-description {
  margin-top: 0.35rem;
  color: var(--weka-muted-text-color, #59636e);
  font-size: 0.92rem;
  line-height: 1.45;
}

.weka-brand-collateral__category-list {
  color: var(--weka-muted-text-color, #59636e);
}

.weka-brand-collateral__type-badge,
.weka-brand-collateral__download-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--weka-subtle-bg, #f1f5f9);
  color: var(--weka-text-color, #334155);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-collateral-table td.title {
  min-width: 260px;
}

.weka-brand-collateral__featured-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: var(--weka-subtle-bg, #f1f5f9);
  color: var(--weka-text-color, #334155);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weka-brand-collateral__featured-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--weka-muted-text-color, #59636e);
  font-size: 0.85rem;
}

/* Brand Collateral Links */
.brand-collateral-link {
  margin: 5px 0;
  display: inline-block;
}

.brand-collateral-link:hover,
.brand-collateral-link:focus {
  text-decoration: underline;
}

/* Brand Collateral Panel */
.brand-collateral-panel {
  background: var(--weka-card-bg, #fff);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.brand-collateral-panel .portal-panel-container {
  padding: 1rem;
}

.brand-collateral-panel .category-title {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.brand-collateral-panel .category-title i {
  transition: transform 0.3s ease;
}

/* Button Center */
.button-center {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Brand Collateral Excerpt */
.brand-collateral-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--weka-muted-text-color, #666);
  margin-bottom: 1rem;
}

/* Featured Collateral Section */
.featured-collateral {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.featured-collateral-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.featured-collateral-item:hover {
  box-shadow: 0 2px 8px var(--weka-shadow-soft, rgba(0, 0, 0, 0.1));
}

.featured-collateral-item img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}

.featured-collateral-item p {
  margin: 0.5rem 0;
  font-weight: 500;
}

/* Brand Collateral Table */
.brand-collateral-table {
  width: 100%;
  border-collapse: collapse;
}

.brand-collateral-table thead tr {
  background-color: var(--weka-subtle-bg, #f5f5f5);
  border-bottom: 2px solid #ddd;
}

.brand-collateral-table th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
}

.brand-collateral-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.brand-collateral-table td.title {
  font-weight: 500;
}

.brand-collateral-table tr:hover {
  background-color: var(--weka-subtle-bg, #f9f9f9);
}

/* Responsive Styles */
@media only screen and (max-width: 820px) {
  .weka-brand-collateral-filters {
    grid-template-columns: 1fr;
  }

  .weka-brand-collateral-actions {
    flex-wrap: wrap;
  }

  .featured-collateral {
    grid-template-columns: 1fr;
  }
  
  .brand-collateral-table {
    font-size: 0.9rem;
  }
  
  .brand-collateral-table th,
  .brand-collateral-table td {
    padding: 8px;
  }
}

@media only screen and (max-width: 1050px) {
  .weka-brand-collateral-filters {
    grid-template-columns: 1fr 1fr;
  }

  .weka-brand-collateral-actions {
    grid-column: 1/-1;
  }
}

/* Portal Panel Integration */
.portal-panel.brand-collateral-panel {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.portal-panel.brand-collateral-panel .portal-panel-header {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

/* Display Brand Collateral */
.display-brand-collat {
  margin-bottom: 1rem;
}

.display-brand-collat iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 4px;
}

/* Center Header */
.center-header-2 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0;
}

/* PDF Icon Styling */
.brand-collateral-link .fa-file-pdf {
  margin-right: 0.5rem;
  font-size: 1.1em;
}
