/* /home/claude/astro-ui/src/styles/esgility-theme.css */

/* ESGility Custom Theme - Extends ui-collections */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Override root variables with ESGility brand colors */
:root {
  /* ESGility Green Palette */
  --color-primary: #1B4332;        /* Dark forest green - header/footer */
  --color-primary-dark: #081C15;   /* Darker green for hover */
  --color-primary-light: #40916C;  /* Medium green for buttons */
  --color-accent: #52B788;         /* Bright green for accents */
  --color-accent-light: #95D5B2;   /* Light green for backgrounds */
  
  /* Neutrals */
  --color-bg: #F9FAFB;
  --color-card: #FFFFFF;
  --color-text: #1F2937;
  --color-text-light: #6B7280;
  
  /* Spacing */
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Global typography */
body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-primary);
}

/* Header Styles */
.site-header {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar a {
  color: white;
  text-decoration: none;
  margin: 0 0.75rem;
}

.top-bar a:hover {
  text-decoration: underline;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--color-accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.hero-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Button Overrides for ESGility */
.btn--primary {
  background: var(--color-primary-light);
  color: white;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

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

/* Form Styles */
.form-input:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

/* Search Box with Light Green Background */
.search-box {
  background: var(--color-accent-light);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  font-weight: 500;
}

.search-box::placeholder {
  color: var(--color-primary);
  opacity: 0.7;
}

/* Content Cards */
.content-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.content-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.content-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.content-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Q&A Section */
.qa-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.qa-item:last-child {
  border-bottom: none;
}

.vote-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.vote-count {
  font-weight: 600;
  color: var(--color-primary);
}

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 1.25rem;
  padding: 0;
}

.qa-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.qa-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

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

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}
