/**
 * Goodinate Raffle — Frontend Styles
 * Product page + My Account
 */

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */

/* Countdown */
.gr-raffle-info {
	margin-bottom: 20px;
}

.gr-countdown {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #f8f8f8;
	border-radius: 6px;
	margin-bottom: 12px;
}

.gr-countdown__label {
	font-weight: 600;
	font-size: 14px;
}

.gr-countdown__timer {
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: monospace;
	font-size: 18px;
	font-weight: 700;
}

.gr-countdown__sep {
	opacity: 0.4;
}

.gr-countdown--expired .gr-countdown__timer {
	opacity: 0.5;
}

/* Expired notice */
.gr-expired-notice {
	padding: 12px 16px;
	background: #fef3cd;
	border-left: 4px solid #dba617;
	border-radius: 4px;
	margin-bottom: 12px;
}

.gr-expired-notice p {
	margin: 0;
}

/* Ticket stats */
.gr-ticket-stats {
	font-size: 14px;
	color: #555;
	margin-bottom: 12px;
}


/* Raffle Result */
.gr-raffle-result {
	margin: 20px 0;
	padding: 16px 20px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
}

.gr-raffle-result h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.gr-raffle-result__date {
	font-size: 13px;
	color: #555;
	margin-bottom: 12px;
}

.gr-raffle-result__winners {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gr-raffle-result__winner {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
}

.gr-raffle-result__place {
	font-weight: 600;
	min-width: 80px;
}

.gr-raffle-result__ticket {
	font-family: monospace;
	font-weight: 700;
}

/* ==========================================================================
   MY ACCOUNT
   ========================================================================== */

/* Tabs */
.gr-raffle-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e5e5e5;
	margin-bottom: 20px;
}

.gr-tab {
	padding: 10px 16px;
	text-decoration: none;
	color: #555;
	font-size: 14px;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.gr-tab:hover {
	color: #333;
}

.gr-tab--active {
	color: #333;
	border-bottom-color: #333;
	font-weight: 600;
}

.gr-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	margin-left: 6px;
	font-size: 11px;
	font-weight: 600;
	background: #e5e5e5;
	border-radius: 10px;
}

.gr-tab--active .gr-tab__count {
	background: #333;
	color: #fff;
}

/* Grid */
.gr-raffle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

/* Card */
.gr-raffle-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s;
}

.gr-raffle-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gr-raffle-card--winner {
	border-color: #22c55e;
	background: #f0fdf4;
}

.gr-raffle-card__header {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
}

.gr-raffle-card__header a {
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	color: #333;
}

.gr-raffle-card__header a:hover {
	text-decoration: underline;
}

.gr-raffle-card__body {
	padding: 12px 16px;
}

.gr-raffle-card__tickets {
	font-size: 14px;
	margin-bottom: 8px;
}

.gr-raffle-card__deadline {
	font-size: 13px;
	color: #777;
	margin-bottom: 8px;
}

.gr-raffle-card__result {
	margin-top: 8px;
}

.gr-winner-notice {
	color: #15803d;
	font-weight: 600;
}

.gr-winner-notice p {
	margin: 0 0 4px;
}

.gr-not-won {
	color: #777;
	font-style: italic;
}

/* Badges */
.gr-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
}

.gr-badge--active {
	background: #dbeafe;
	color: #1d4ed8;
}

/* No results */
.gr-no-results {
	color: #777;
	font-style: italic;
	padding: 20px 0;
}

/* Ticket numbers in order */
.gr-ticket-numbers {
	margin-top: 8px;
	font-size: 13px;
}
