/*
Theme Name: GeneratePress Child - ChartBuys
Theme URI: https://blue-cod-653626.hostingersite.com
Description: Child theme for blue-cod-653626.hostingersite.com, built on GeneratePress (free). Custom post types, taxonomies, and chart template logic live in inc/. Do not edit GeneratePress core files - all customization happens here.
Author: Rajeshkumar
Template: generatepress
Version: 1.0.0
Text Domain: chartbuys
*/

/* -----------------------------------------------------------------------
   This file intentionally left mostly empty for now.
   Milestone 4 (Chart page template) will add the real chart table,
   movement arrow, and NEW badge styling here.

   Rule going forward: this file only holds CSS that GeneratePress
   itself doesn't already provide. We are not fighting the parent
   theme's layout system - we are extending it.
   ----------------------------------------------------------------------- */
.chartbuys-chart-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}
.chartbuys-affiliate-disclosure {
	font-size: 0.85rem;
	color: #555;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 12px;
	margin-bottom: 16px;
}
.chartbuys-updated-line {
	font-size: 0.85rem;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.chartbuys-price-disclaimer {
	font-size: 0.8rem;
	color: #999;
	margin-bottom: 24px;
}
.chartbuys-chart-table {
	width: 100%;
	border-collapse: collapse;
}
.chartbuys-chart-table th {
	text-align: left;
	font-size: 0.8rem;
	color: #777;
	border-bottom: 1px solid #e5e5e5;
	padding: 8px 4px;
}
.chartbuys-chart-table td {
	border-bottom: 1px solid #f0f0f0;
	padding: 12px 4px;
	vertical-align: top;
}
.chartbuys-rank {
	font-size: 1.4rem;
	font-weight: 700;
	width: 40px;
}
.chartbuys-movement {
	font-weight: 600;
	font-size: 0.85rem;
}
.chartbuys-up { color: #1a7f37; }
.chartbuys-down { color: #c0392b; }
.chartbuys-flat { color: #999; }
.chartbuys-new {
	background: #fff3cd;
	color: #92650c;
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 0.7rem;
}
.chartbuys-product-cell a {
	font-weight: 600;
	text-decoration: none;
	color: #111;
}
.chartbuys-product-note {
	font-size: 0.8rem;
	color: #777;
	margin-top: 2px;
}
.chartbuys-more-rows summary {
	cursor: pointer;
	text-align: center;
	padding: 12px 0;
	color: #0066cc;
	font-weight: 600;
	list-style: none;
}
.chartbuys-commentary {
	margin-top: 24px;
	padding: 16px;
	background: #fafafa;
	border-left: 3px solid #ddd;
}
.chartbuys-newsletter-signup {
	margin-top: 32px;
	padding: 20px;
	background: #f5f5f5;
	text-align: center;
}
.chartbuys-newsletter-signup form {
	display: flex;
	gap: 8px;
	max-width: 360px;
	margin: 12px auto 0;
}
.chartbuys-newsletter-signup input {
	flex: 1;
	padding: 8px;
}

/* Mobile: collapse table to stacked layout, per brief §6 */
@media (max-width: 600px) {
	.chartbuys-chart-table thead { display: none; }
	.chartbuys-chart-table tr {
		display: grid;
		grid-template-columns: 40px 1fr;
		grid-template-areas:
			"rank product"
			"movement product"
			"price weeks";
		padding: 12px 0;
	}
	.chartbuys-rank { grid-area: rank; }
	.chartbuys-movement-cell { grid-area: movement; }
	.chartbuys-product-cell { grid-area: product; }
	.chartbuys-price { grid-area: price; font-size: 0.85rem; }
	.chartbuys-weeks { grid-area: weeks; font-size: 0.85rem; text-align: right; }
	.chartbuys-chart-table td { border: none; padding: 2px 4px; }
}
.chartbuys-archive-banner {
	max-width: 900px;
	margin: 16px auto 0;
	padding: 12px 16px;
	background: #fff3cd;
	color: #92650c;
	text-align: center;
	font-size: 0.9rem;
}
.chartbuys-archive-banner a {
	color: #92650c;
	font-weight: 600;
	text-decoration: underline;
}
.chartbuys-hub-page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}
.chartbuys-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 24px;
}
.chartbuys-hub-card {
	border: 1px solid #e5e5e5;
	padding: 20px;
}
.chartbuys-hub-card h2 {
	font-size: 1.1rem;
	margin: 0 0 8px;
}
.chartbuys-hub-number1 {
	font-weight: 600;
	margin: 0 0 12px;
}
.chartbuys-hub-link {
	font-size: 0.9rem;
	text-decoration: none;
	color: #0066cc;
	font-weight: 600;
}
.chartbuys-hub-empty {
	color: #999;
	font-style: italic;
}
@media (max-width: 700px) {
	.chartbuys-hub-grid {
		grid-template-columns: 1fr;
	}
}

.chartbuys-movers-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}
.chartbuys-home-page {
	max-width: 700px;
	margin: 0 auto;
	padding: 48px 16px 64px;
	text-align: center;
}
.chartbuys-home-hero-title {
	font-size: 2.6rem;
	margin: 16px 0;
}
.chartbuys-home-subtitle {
	font-size: 1.1rem;
	color: #555;
	max-width: 520px;
	margin: 0 auto 24px;
}
.chartbuys-home-cta-row {
	display: flex;
	gap: 24px;
	justify-content: center;
	margin-bottom: 32px;
}
.chartbuys-home-cta-row a {
	text-decoration: none;
	color: #0066cc;
	font-weight: 600;
}
.chartbuys-home-highlight {
	font-size: 0.95rem;
	color: #555;
	margin-bottom: 32px;
}
.chartbuys-home-preview {
	text-align: left;
	border: 1px solid #e5e5e5;
	padding: 20px;
	margin-bottom: 40px;
}
.chartbuys-home-preview-header {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	color: #777;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	margin-bottom: 10px;
}
.chartbuys-home-preview-row {
	display: grid;
	grid-template-columns: 30px 50px 1fr 80px;
	align-items: start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f5f5f5;
}
.chartbuys-home-preview-row .chartbuys-rank {
	font-size: 1.3rem;
	font-weight: 700;
}
.chartbuys-home-preview-row .chartbuys-price {
	text-align: right;
}
.chartbuys-home-view-full {
	display: block;
	text-align: center;
	margin-top: 16px;
	color: #0066cc;
	text-decoration: none;
	font-weight: 600;
}
.chartbuys-home-stats {
	display: flex;
	justify-content: space-around;
	border-top: 1px solid #e5e5e5;
	padding-top: 24px;
}
.chartbuys-home-stats strong {
	display: block;
	font-size: 1.6rem;
}
.chartbuys-home-stats span {
	font-size: 0.85rem;
	color: #777;
}
@media (max-width: 500px) {
	.chartbuys-home-hero-title { font-size: 1.9rem; }
	.chartbuys-home-cta-row { flex-direction: column; gap: 12px; }
	.chartbuys-home-stats { flex-direction: column; gap: 16px; }
}