/* ============================================================   
   jpchacha.com | Add-on CSS for App Pages
============================================================ */


/* ------------------------------------------------------------
Hero
------------------------------------------------------------ */

.hero {
	padding: 40px 40px 48px;
	border-bottom: 0.5px solid var(--navy-mid);
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.hero a, .hero * a {
	text-decoration: none;
}

.hero-text {
	flex: 1;
}

.hero-eyebrow {
	font-size: 11px;
	font-weight: 500;
	color: var(--blue);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.hero h1 {
	font-size: 34px;
	font-weight: 500;
	color: var(--text-primary);
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin-bottom: 8px;
}

.hero-tagline {
	font-size: 14px;
	color: var(--text-muted);
	font-style: italic;
	margin-bottom: 16px;
}

.hero p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.75;
	max-width: 1000px;
	margin-bottom: 24px;
}

.hero-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.hero-meta {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.meta-item {
	font-size: 12px;
	color: var(--text-faint);
}

.meta-item strong {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
App Sidebar Card
------------------------------------------------------------ */

.app-sidebar {
	width: 220px;
	flex-shrink: 0;
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
}

.app-icon {
	width: 148px;
	height: 148px;
	background: var(--blue-dim);
	border-radius: 16px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-icon img {
	width: 128px;
	height: 128px;
	float: none;
}

.app-icon svg {
	width: 36px;
	height: 36px;
	stroke: var(--blue);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.app-name {
	font-size: 15px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.app-ver {
	font-size: 12px;
	color: var(--text-faint);
	margin-bottom: 16px;
}

.dl-btn {
	display: block;
	width: 100%;
	background: var(--blue);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	padding: 10px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	margin-bottom: 8px;
	transition: opacity 0.15s;
}

.dl-btn:hover {
	opacity: 0.88;
}

.dl-btn-secondary {
	display: block;
	width: 100%;
	background: transparent;
	color: var(--text-muted);
	font-size: 12px;
	padding: 8px;
	border-radius: 8px;
	border: 0.5px solid var(--navy-light);
	cursor: pointer;
	margin-bottom: 10px;
	transition: color 0.15s;
}

.dl-btn-secondary:hover {
	color: var(--text-primary);
}

.dl-size {
	font-size: 11px;
	color: var(--text-dimmer);
}

/* ------------------------------------------------------------
Screenshot
------------------------------------------------------------ */

.section-screenshots {
	padding-bottom: 0;
}

.screenshot-hero {
	border-radius: 10px;
	overflow: hidden;
	border: 0.5px solid var(--navy-light);
	background: var(--navy-mid);
	margin-bottom: 12px;
	line-height: 0;
	display: flex;
	justify-content: center;
}

.screenshot-main {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 600px;
	object-fit: contain;
}

.screenshot-strip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 28px;
	scrollbar-width: thin;
	scrollbar-color: var(--navy-light) transparent;
}

.screenshot-strip::-webkit-scrollbar {
	height: 4px;
}

.screenshot-strip::-webkit-scrollbar-track {
	background: transparent;
}

.screenshot-strip::-webkit-scrollbar-thumb {
	background: var(--navy-light);
	border-radius: 2px;
}

.screenshot-thumb {
	height: 80px;
	width: auto;
	flex-shrink: 0;
	border-radius: 6px;
	border: 0.5px solid var(--navy-light);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s, border-color 0.15s;
	object-fit: cover;
}

.screenshot-thumb:hover {
	opacity: 1;
	border-color: var(--blue);
}

.screenshot-thumb.active {
	opacity: 1;
	border-color: var(--blue);
}

/* ------------------------------------------------------------
Pillars
------------------------------------------------------------ */

.pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.pillar {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 10px;
	padding: 16px;
}

.pillar-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--blue);
	margin-bottom: 12px;
}

.pillar h4 {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 5px;
}

.pillar p {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* ------------------------------------------------------------
Suite Apps
------------------------------------------------------------ */

.apps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.app-card {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 10px;
	padding: 16px;
}

.app-card h4 {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 6px;
}

.app-card p {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* ------------------------------------------------------------
ChangeLog
------------------------------------------------------------ */

.changelog {
	border: 0.5px solid var(--navy-light);
	border-radius: 10px;
	overflow: hidden;
}

.changelog a, .changelog * a {
	text-decoration: none;
}

.cl-group {
	background: var(--navy);
	padding: 16px 18px;
}

.cl-group:not(:last-child) {
	border-bottom: 0.5px solid var(--navy-mid);
}

.cl-title {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: 10px;
}

.cl-items {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cl-items a {
	color: inherit;
	text-decoration: none;
}

.cl-items li {
	font-size: 13px;
	color: var(--text-muted);
	padding-left: 16px;
	position: relative;
	line-height: 1.5;
}

.cl-items li a:hover {
	color: var(--text-secondary);
}

.cl-items li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--navy-light);
}

.cl-items li.fix::before {
	background: var(--amber-dim);
}

/* ------------------------------------------------------------
Compatibility
------------------------------------------------------------ */

.compat-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.compat-tag {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 5px;
	padding: 5px 12px;
	font-size: 12px;
	color: var(--text-muted);
}

/* ------------------------------------------------------------
Resource Links
------------------------------------------------------------ */

.links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px;
}

.links-grid a, .links-grid * a {
	text-decoration: none;
}

.link-item {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	font-size: 13px;
	color: var(--text-secondary);
	transition: border-color 0.15s, color 0.15s;
}

.link-item:hover {
	border-color: var(--blue);
	color: var(--text-primary);
}

.link-arrow {
	color: var(--blue);
	margin-left: auto;
	font-size: 14px;
}

/* ------------------------------------------------------------
Award Links
------------------------------------------------------------ */

.awards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px;
}

.awards-grid a, .awards-grid * a {
	text-decoration: none;
}

.award-item {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	font-size: 13px;
	color: var(--text-secondary);
	justify-content: center;
	transition: border-color 0.15s, color 0.15s;
}

.award-item:hover {
	border-color: var(--blue);
	color: var(--text-primary);
}

/* ------------------------------------------------------------
Responsive
------------------------------------------------------------ */

@media (max-width: 700px) {
  .nav {
    padding: 0 20px;
    gap: 16px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    flex-direction: column;
    padding: 36px 20px 32px;
  }

  .app-sidebar {
    width: 100%;
  }

  .section {
    padding: 28px 20px;
  }

  .breadcrumb {
    padding: 12px 20px;
  }

  .footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
