/* eGrow Build in Public Styles */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gray-800);
}

.logo-text {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
  margin-right: 10px;
}

.logo-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

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

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

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

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

/* Main content */
.main-content {
  padding: 40px 0;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
}

.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--gray-500);
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--gray-700);
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

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

/* File upload */
.file-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-label:hover {
  background: var(--gray-200);
}

/* Profile photo */
.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
}

.profile-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  border: 3px solid var(--gray-200);
}

/* Essential Workflow Tabs */
.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: white;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 14px;
  min-height: 44px;
}

.tab:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

.tab.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(13, 148, 136, 0.2);
}

.tab.active:hover {
  background: var(--primary-dark);
}

/* Votable vs Read-only tab styling */
.tab-votable.active {
  background: var(--success);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.tab-votable.active:hover {
  background: #059669;
}

.tab-readonly.active {
  background: var(--gray-600);
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

.tab-readonly.active:hover {
  background: var(--gray-700);
}

.tab-count {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.tab:not(.active) .tab-count {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* Voting Notice */
.voting-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease-out;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
  font-size: 14px;
  font-weight: 500;
}

.notice-icon {
  font-size: 16px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* Ideas list */
.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.idea-item {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
}

.idea-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-300);
}

.idea-content {
  padding: 20px;
  display: flex;
  gap: 16px;
}

.idea-vote-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 50px;
}

.vote-btn:hover {
  background: var(--gray-100);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.vote-btn.voted {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.vote-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.vote-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.vote-btn:hover .vote-icon {
  transform: translateY(-1px);
}

.vote-count {
  font-size: 14px;
  font-weight: bold;
}

.vote-count-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 50px;
}

.vote-count-display.vote-disabled {
  opacity: 0.6;
}

.vote-status {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 2px;
}

.idea-main {
  flex: 1;
  min-width: 0;
}

.idea-header {
  margin-bottom: 12px;
}

.idea-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.4;
}

.idea-title a {
  color: inherit;
  text-decoration: none;
}

.idea-title a:hover {
  color: var(--primary);
}

.idea-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.idea-description {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 14px;
}

.idea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.idea-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-500);
}

.subscribe-btn {
  font-size: 12px;
  padding: 4px 8px;
}

/* Status indicator */
.idea-status-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.status-new {
  background: #3b82f6;
}
.status-accepted {
  background: #10b981;
}
.status-scheduled {
  background: #f59e0b;
}
.status-in-progress {
  background: #8b5cf6;
}
.status-done {
  background: #059669;
}
.status-rejected {
  background: #6b7280;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge-new {
  background: #dbeafe;
  color: #1e40af;
}
.badge-accepted {
  background: #d1fae5;
  color: #065f46;
}
.badge-scheduled {
  background: #fef3c7;
  color: #92400e;
}
.badge-in-progress {
  background: #ede9fe;
  color: #5b21b6;
}
.badge-done {
  background: #d1fae5;
  color: #065f46;
}
.badge-rejected {
  background: #f3f4f6;
  color: #374151;
}

.badge-bug-report {
  background: #fee2e2;
  color: #991b1b;
}
.badge-feature-request {
  background: #d1fae5;
  color: #065f46;
}
.badge-optimization {
  background: #fef3c7;
  color: #92400e;
}
.badge-ui-ux-improvement {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-low {
  background: #f3f4f6;
  color: #374151;
}
.badge-medium {
  background: #fef3c7;
  color: #92400e;
}
.badge-high {
  background: #fee2e2;
  color: #991b1b;
}
.badge-critical {
  background: #fee2e2;
  color: #7f1d1d;
}

/* Alerts */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  text-decoration: none;
  color: var(--gray-600);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--gray-100);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Comments */
.comments-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.comment {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comment-author {
  font-weight: 600;
  color: var(--gray-800);
}

.comment-date {
  font-size: 12px;
  color: var(--gray-500);
}

.comment-content {
  color: var(--gray-700);
  line-height: 1.6;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .container {
    padding: 0 16px;
  }

  .tabs {
    padding: 4px;
    gap: 1px;
  }

  .tab {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 40px;
  }

  .tab-count {
    font-size: 11px;
    padding: 1px 4px;
  }

  .idea-content {
    flex-direction: column;
    gap: 12px;
  }

  .idea-vote-section {
    flex-direction: row;
    justify-content: flex-start;
    min-width: auto;
  }

  .idea-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-4 {
  margin-top: 16px;
}
.mb-4 {
  margin-bottom: 16px;
}
.ml-4 {
  margin-left: 16px;
}
.mr-4 {
  margin-right: 16px;
}

.hidden {
  display: none;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

.rounded {
  border-radius: 8px;
}
.rounded-lg {
  border-radius: 12px;
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.shadow-lg {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
