/* CARIBEquity Public Toolkit - Main Stylesheet */

:root {
  --caribequity-green: #00A651;
  --caribequity-blue: #1F4E78;
  --caribequity-orange: #F7941D;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  outline: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--caribequity-green);
  text-decoration: none;
  border: none;
  outline: none;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  border: none;
  outline: none;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--caribequity-green);
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-radius: 8px;
}

.language-selector label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.language-selector select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--caribequity-green);
  color: white;
}

.btn-primary:hover {
  background: #008a43;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,166,81,0.3);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-800);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--caribequity-green);
  color: var(--caribequity-green);
}

.btn-outline:hover {
  background: var(--caribequity-green);
  color: white;
}

/* Tool Container */
.tool-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tool-header {
  border-bottom: 2px solid var(--caribequity-green);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.tool-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--caribequity-blue);
  margin-bottom: 0.5rem;
}

.tool-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* How to Use Section */
.how-to-use {
  background: var(--gray-50);
  border-left: 4px solid var(--caribequity-green);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.how-to-use-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--caribequity-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.how-to-use-steps {
  list-style: none;
  counter-reset: step-counter;
}

.how-to-use-steps li {
  counter-increment: step-counter;
  margin-bottom: 0.75rem;
  padding-left: 2.5rem;
  position: relative;
}

.how-to-use-steps li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--caribequity-green);
  color: white;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Video Tutorial Section */
.video-tutorial {
  background: linear-gradient(135deg, var(--caribequity-blue) 0%, var(--caribequity-green) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.video-tutorial-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.video-tutorial-description {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.video-placeholder {
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.3);
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--caribequity-green);
  box-shadow: 0 0 0 3px rgba(0,166,81,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Tooltip */
.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--caribequity-green);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: help;
  margin-left: 0.5rem;
  position: relative;
}

.tooltip-content {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 400;
  width: 250px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.tooltip-trigger:hover .tooltip-content {
  visibility: visible;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gray-900);
}

/* Progress Bar */
.progress-container {
  background: var(--gray-200);
  border-radius: 8px;
  height: 1.5rem;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar {
  background: linear-gradient(90deg, var(--caribequity-green) 0%, var(--caribequity-blue) 100%);
  height: 100%;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Alert Messages */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

/* Partners Section */
.partners-section {
  background: white;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 2px solid var(--gray-200);
}

.partners-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--caribequity-blue);
  margin-bottom: 2rem;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tool-container {
    padding: 1rem;
  }

  .tool-title {
    font-size: 1.5rem;
  }
}
