/* styles.css — EK-branded Demo Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  --ekpurple: #332950;
  --regalia: #5A2B84;
  --darkpurple: #1B0535;
  --lightpurple: #EDE5F5;
  --ekgreen: #135F39;
  --ekwhite: #FAFBFD;
  --card-radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: var(--ekwhite);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* Header */
.portfolio-header {
  background: var(--ekpurple);
  color: #fff;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.portfolio-header .logo {
  height: 48px;
  margin-bottom: 0.75rem;
}

.portfolio-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.portfolio-header .subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e0d8ea;
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--regalia);
  border-radius: 24px;
  background: #fff;
  color: var(--regalia);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--lightpurple);
}

.filter-btn.active {
  background: var(--regalia);
  color: #fff;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Card */
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ekpurple);
  margin: 0;
}

/* Status Badges */
.badge {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-green {
  background: #e6f4ec;
  color: var(--ekgreen);
  border: 1px solid #b3dcc5;
}

.badge-yellow {
  background: #fef9e7;
  color: #7d6608;
  border: 1px solid #f0e0a0;
}

/* Card Body */
.card-body {
  padding: 0 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.business-value {
  font-weight: 700;
  font-size: 0.92rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Tech Stack Pills */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  background: var(--lightpurple);
  color: var(--regalia);
}

/* Screenshot Placeholder */
.screenshot-placeholder {
  background: #f0edf5;
  border: 2px dashed #c9bfdb;
  border-radius: 8px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #998eb5;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.screenshot-placeholder svg {
  width: 28px;
  height: 28px;
  margin-bottom: 0.35rem;
  fill: #998eb5;
}

/* Launch Instructions */
.card-body details {
  margin-top: auto;
  border-top: 1px solid #ece7f3;
  padding-top: 0.75rem;
}

.card-body details summary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--regalia);
  cursor: pointer;
  list-style: none;
}

.card-body details summary::before {
  content: '\25B6\00a0';
  font-size: 0.7rem;
}

.card-body details[open] summary::before {
  content: '\25BC\00a0';
}

.launch-instructions {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.launch-instructions code {
  display: block;
  background: var(--ekpurple);
  color: #e0d8f0;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  margin: 0.4rem 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.launch-instructions .url-label {
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.3rem;
}

.launch-instructions .url-label strong {
  color: var(--ekgreen);
}

/* Footer */
.portfolio-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
  font-size: 0.82rem;
  border-top: 1px solid #e0d8ea;
}

.portfolio-footer strong {
  color: var(--regalia);
}

/* Responsive */
@media (max-width: 840px) {
  .card-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .portfolio-header h1 {
    font-size: 1.5rem;
  }
}
