/* ==========================================================================
   Summit Suite Design System & Stylesheet
   Theme: Light Mode, Soft Mint/Teal background, Dark Teal accents, Outlined Buttons
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-body: #F4F8F6;
  --bg-surface: #FFFFFF;
  --bg-surface-secondary: #EBF2EE;
  
  --border-light: #E0ECE7;
  --border-teal: #237A69;
  --border-teal-dark: #124F43;
  
  --teal-primary: #1B6B5D;
  --teal-dark: #0D3D33;
  --teal-light: #E2F0EC;
  --teal-glow: rgba(27, 107, 93, 0.12);
  
  --text-main: #0C2922;
  --text-muted: #42695E;
  --text-dim: #72968C;
  --text-white: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(13, 61, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 61, 51, 0.07);
  --shadow-hover: 0 12px 32px rgba(27, 107, 93, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-dark);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.text-teal {
  color: var(--teal-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-item-link {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-item-link:hover, .nav-item-link.active {
  color: var(--teal-primary);
  background-color: var(--teal-light);
}

/* OUTLINED BUTTON SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

/* Signature Outlined Button */
.btn-outline {
  background: transparent;
  border: 2px solid var(--teal-primary);
  color: var(--teal-primary);
}

.btn-outline:hover {
  background-color: var(--teal-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

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

.btn-outline-dark:hover {
  background-color: var(--teal-dark);
  color: var(--text-white);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.875rem;
}

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

.btn-icon {
  width: 18px;
  height: 18px;
  fill: stroke;
}

/* Main Content Area */
.main-content {
  flex: 1;
}

/* Hero Section */
.hero {
  padding: 70px 0 40px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--teal-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 20px;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* TECH DETAILS DROPDOWN */
.tech-details-container {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: left;
}

.tech-details-dropdown {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.tech-details-dropdown[open] {
  border-color: var(--border-teal);
  box-shadow: var(--shadow-sm);
}

.tech-dropdown-summary {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.tech-dropdown-summary::-webkit-details-marker {
  display: none;
}

.tech-dropdown-summary:hover {
  background-color: var(--teal-light);
}

.dropdown-chevron {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.tech-details-dropdown[open] .dropdown-chevron {
  transform: rotate(180deg);
}

.tech-dropdown-content {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
  background-color: #FAFCFA;
}

.tech-dropdown-content ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-dropdown-content li strong {
  color: var(--text-main);
}

/* Features Grid */
.features-section {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* APPS TABLE CATALOG (Peak Exposure Studios List) */
.suite-table-section {
  padding: 50px 0 80px;
}

.table-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.suite-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.suite-table th {
  background-color: var(--bg-surface-secondary);
  color: var(--text-main);
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suite-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.suite-table tr:last-child td {
  border-bottom: none;
}

.suite-table tr:hover td {
  background-color: #F8FBF9;
}

.app-table-name {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-mini-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--teal-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-beta {
  background-color: #E0F2FE;
  color: #0369A1;
}

.status-progress {
  background-color: #FEF3C7;
  color: #92400E;
}

.status-upcoming {
  background-color: #F3F4F6;
  color: #6B7280;
}

/* Downloads Filter Bar */
.downloads-filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-dim);
  fill: none;
}

/* Apps Grid Cards with Tech Details */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.app-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.app-card:hover {
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-hover);
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--teal-primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.app-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.app-category {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.app-version-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--teal-light);
  color: var(--teal-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.app-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* App Level Tech Dropdown */
.app-tech-details {
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #FAFCFA;
}

.app-tech-summary {
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.app-tech-summary:hover {
  background-color: var(--teal-light);
}

.app-tech-content {
  padding: 10px 12px;
  font-size: 0.83rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  line-height: 1.4;
}

.app-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: auto;
}

.app-meta-size {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Admin Portal Styles */
.admin-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  max-width: 640px;
  margin: 40px auto;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-body);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--teal-primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

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

/* FOOTER - Explicit user directive: Donovan Shenk & Contact ONLY in footer with centered Peak Exposure Studio link */
.footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credits {
  color: var(--text-muted);
}

.footer-credits strong {
  color: var(--text-main);
}

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

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

.footer-link {
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
}

.footer-link:hover {
  color: var(--teal-primary);
}

.admin-footer-link {
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px dashed var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.admin-footer-link:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background-color: var(--teal-light);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(12, 41, 34, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: var(--shadow-hover);
  transform: translateY(12px);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dim);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .suite-table th, .suite-table td {
    padding: 10px 12px;
  }
}
