/* ============================================
   Proteos Biotech - Public Catalog Styles
   Based on: https://coworkingdf.com/ProteosBrandCenter/
   ============================================ */

:root {
  --primary-dark: #1a1d2e;
  --primary-navy: #2b3147;
  --accent-gold: #f5c842;
  --text-light: #ffffff;
  --text-gray: #8e92a4;
  --bg-light: #f4f5f7;
  --bg-white: #ffffff;
  --border-color: #e1e4e8;
  --hover-dark: #3a3f5c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-light);
  color: #333;
  line-height: 1.6;
}

/* ============================================
   Header / Navigation
   ============================================ */

.brand-header {
  background-color: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top {
  background-color: var(--primary-navy);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.header-top-left {
  color: var(--text-light);
}

.header-top-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-top-right a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.header-top-right a:hover {
  color: var(--accent-gold);
}

.header-main {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent-gold);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-gold);
}

/* ============================================
   Main Layout
   ============================================ */

.catalog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* ============================================
   Sidebar Filters
   ============================================ */

.sidebar {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 0.5rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-checkbox:hover {
  background-color: var(--bg-light);
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-gold);
}

.filter-checkbox label {
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  flex: 1;
}

.filter-checkbox input[type="checkbox"]:checked + label {
  color: #333;
  font-weight: 600;
}

/* ============================================
   Main Content Area
   ============================================ */

.content-area {
  min-height: 600px;
}

.welcome-section {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1d2e;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
}

/* ============================================
   Brand Section
   ============================================ */

.brand-section {
  margin-bottom: 3rem;
}

.brand-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1d2e;
  margin-bottom: 1.5rem;
}

/* ============================================
   Asset Cards Grid
   ============================================ */

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.asset-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.asset-thumbnail {
  width: 100%;
  height: 200px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.asset-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.asset-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.asset-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1d2e;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.asset-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--text-light);
  flex: 1;
}

.btn-primary:hover {
  background-color: var(--hover-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  flex: 1;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-gray);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

.brand-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* ============================================
   Loading Overlay
   ============================================ */

.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 29, 46, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(245, 200, 66, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .assets-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 640px) {
  .header-main {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .assets-grid {
    grid-template-columns: 1fr;
  }
}
