/**
 * Overview Page Styles
 * Professional project overview dashboard with TillerPro banner
 */

/* ============================================
   PROFESSIONAL FEATURES BANNER
   ============================================ */

.overview-banner {
  margin: 0 0 2rem;
  padding: 0;
  width: 100%;
}

.banner-content {
  background: linear-gradient(135deg, #c5914d 0%, #b8802d 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 16px rgb(197 145 77 / 25%);
  border: 2px solid rgb(255 255 255 / 10%);
  position: relative;
  overflow: hidden;
}

.banner-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 40%;
  pointer-events: none;
}

.banner-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 20%));
}

.banner-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.banner-title {
  margin: 0 0 0.375rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.banner-desc {
  margin: 0;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 95%);
  line-height: 1.4;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #ffffff;
  color: #8a6914;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  background: #f9fafb;
}

.banner-cta:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .banner-icon {
    font-size: 2rem;
  }

  .banner-title {
    font-size: 1.125rem;
  }

  .banner-desc {
    font-size: 0.8125rem;
  }

  .banner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   OVERVIEW PAGE LAYOUT
   ============================================ */

.overview-page {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-header {
  margin-bottom: 2rem;
}

.overview-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--hub-fg, #0f1110);
}

.overview-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--hub-muted, #6b7280);
}

.overview-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.overview-card {
  background: #ffffff;
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
  box-shadow:
    0 2px 8px rgb(0 0 0 / 6%),
    0 8px 24px rgb(0 0 0 / 8%);
}

.overview-card--highlight {
  border-color: var(--hub-accent, #10b981);
  box-shadow: 0 4px 6px rgb(16 185 129 / 10%);
}

.card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--hub-border, #e5e7eb);
}

.card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Progress Ring */
.progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percent {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tiller-color-emerald-wcag, #006c47);
}

.progress-label {
  display: block;
  font-size: 0.75rem;
  color: var(--hub-muted, #6b7280);
}

.card-hint {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--hub-muted, #6b7280);
  font-style: italic;
}

/* Stats List */
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--hub-muted, #6b7280);
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--hub-fg, #0f1110);
}

/* Actions */
.action-list {
  display: grid;
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid var(--hub-border, #e5e7eb);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--hub-fg, #0f1110);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.action-btn:hover {
  background: rgb(16 185 129 / 10%);
  border-color: var(--hub-accent, #10b981);
  transform: translateY(-1px);
}

.action-btn--primary {
  background: var(--hub-accent, #10b981);
  color: white;
  border-color: var(--hub-accent, #10b981);
}

.action-btn--primary:hover {
  background: var(--hub-accent-hover, #059669);
}

.action-icon {
  font-size: 1.5rem;
}

.action-text {
  font-weight: 500;
}

/* Guide */
.overview-guide {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgb(16 185 129 / 5%);
  border: 1px solid rgb(16 185 129 / 20%);
  border-radius: 1rem;
}

.guide-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hub-fg, #0f1110);
}

.guide-steps {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.guide-step {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.btn-dismiss {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--hub-border, #e5e7eb);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-dismiss:hover {
  background: #f9fafb;
}
