/**
 * PA Lottery & Weather Widget Styles
 * 
 * Modern, responsive layout with collapsible toggle
 */

/* Main Widget Container */
.pa-lottery-weather-widget {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	border-bottom: 3px solid #c9a227;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Widget Header */
.pa-widget-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pa-widget-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.pa-widget-toggle:hover {
	background: rgba(255, 255, 255, 0.2);
}

.pa-toggle-icon {
	color: #c9a227;
	font-size: 10px;
	transition: transform 0.3s ease;
}

.pa-widget-collapsed .pa-toggle-icon {
	transform: rotate(-90deg);
}

.pa-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
}

.pa-widget-icon {
	font-size: 1.2em;
	filter: drop-shadow(0 0 4px rgba(201, 162, 39, 0.5));
}

.pa-widget-heading {
	color: #c9a227;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pa-widget-updated {
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	white-space: nowrap;
}

/* Alerts Banner */
.pa-widget-alerts {
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Collapsible Content */
.pa-widget-content {
	overflow: hidden;
	max-height: 500px;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
	opacity: 1;
	padding: 12px 0;
}

.pa-widget-collapsed .pa-widget-content {
	max-height: 0;
	opacity: 0;
	padding: 0;
}

/* Two Column Layout */
.pa-widget-columns {
	display: flex;
	gap: 30px;
}

/* Lottery Section */
.pa-lottery-section {
	flex: 2;
	min-width: 0;
}

.pa-section-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.pa-section-icon {
	font-size: 1em;
}

.pa-section-title {
	color: #c9a227;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Loading state */
.pa-lottery-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
}

.pa-lottery-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-top-color: #c9a227;
	border-radius: 50%;
	animation: pa-lottery-spin 0.8s linear infinite;
}

@keyframes pa-lottery-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Games container */
.pa-lottery-games {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Row layout */
.pa-lottery-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: center;
}

/* Individual game */
.pa-lottery-game {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.pa-lottery-game-name {
	color: rgba(255, 255, 255, 0.8);
	font-size: 11px;
	font-weight: 600;
}

/* Numbers display */
.pa-lottery-numbers {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #c9a227;
	font-size: 12px;
	font-weight: 700;
	font-family: 'Consolas', 'Monaco', monospace;
	letter-spacing: 0.5px;
}

/* Day/Evening labels */
.pa-lottery-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 2px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 8px;
	font-weight: 600;
	font-family: 'Segoe UI', sans-serif;
}

/* Pick games separator */
.pa-lottery-day::after {
	content: '';
	display: inline-block;
	width: 1px;
	height: 10px;
	background: rgba(255, 255, 255, 0.2);
	margin-left: 4px;
}

/* Major jackpot games styling */
.pa-lottery-game-major .pa-lottery-game-name {
	color: #fff;
}

.pa-lottery-game-major .pa-lottery-numbers {
	color: #fff;
}

/* Special ball (Powerball / Megaball) */
.pa-lottery-special {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	font-family: 'Consolas', 'Monaco', monospace;
	margin-left: 3px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pa-lottery-special.powerball {
	background: linear-gradient(145deg, #e53935, #b71c1c);
	color: #fff;
}

.pa-lottery-special.mega_millions {
	background: linear-gradient(145deg, #f9a825, #c17900);
	color: #1a1a2e;
}

/* Error state */
.pa-lottery-error {
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
}

/* Stale/Demo indicators */
.pa-lottery-stale,
.pa-lottery-demo {
	color: #ff9800;
	font-size: 10px;
	font-style: italic;
}

/* Fresh data animation */
@keyframes pa-lottery-highlight {
	0% {
		background-color: rgba(201, 162, 39, 0.3);
	}
	100% {
		background-color: transparent;
	}
}

.pa-lottery-fresh .pa-lottery-numbers {
	animation: pa-lottery-highlight 2s ease-out;
	border-radius: 2px;
	padding: 1px 3px;
	margin: -1px -3px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
	.pa-widget-columns {
		gap: 20px;
	}
	
	.pa-lottery-row {
		gap: 6px 14px;
	}
	
	.pa-lottery-game-name {
		font-size: 10px;
	}
	
	.pa-lottery-numbers {
		font-size: 11px;
	}
}

/* Mobile landscape */
@media (max-width: 768px) {
	.pa-widget-header {
		padding: 8px 0;
	}
	
	.pa-widget-heading {
		font-size: 11px;
		letter-spacing: 1px;
	}
	
	.pa-widget-columns {
		flex-direction: column;
		gap: 15px;
	}
	
	.pa-lottery-section {
		flex: none;
	}
	
	.pa-lottery-row {
		gap: 4px 12px;
	}
	
	.pa-lottery-game-name {
		font-size: 10px;
	}
	
	.pa-lottery-numbers {
		font-size: 11px;
	}
	
	.pa-lottery-special {
		min-width: 20px;
		height: 20px;
		font-size: 10px;
	}
}

/* Mobile portrait */
@media (max-width: 480px) {
	.pa-widget-toggle {
		width: 24px;
		height: 24px;
	}
	
	.pa-widget-title {
		gap: 6px;
	}
	
	.pa-widget-heading {
		font-size: 10px;
	}
	
	.pa-widget-updated {
		display: none;
	}
	
	.pa-widget-content {
		padding: 10px 0;
	}
	
	.pa-lottery-picks {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	
	.pa-lottery-game-pick {
		width: 100%;
		justify-content: space-between;
		padding: 3px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	
	.pa-lottery-game-pick:last-child {
		border-bottom: none;
	}
	
	.pa-lottery-jackpots {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	
	.pa-lottery-game {
		width: 100%;
		justify-content: space-between;
	}
	
	.pa-section-header {
		margin-bottom: 6px;
	}
	
	.pa-section-title {
		font-size: 10px;
	}
}

/* Very small screens */
@media (max-width: 360px) {
	.pa-lottery-day::after {
		display: none;
	}
	
	.pa-lottery-label {
		width: 12px;
		height: 12px;
		font-size: 7px;
	}
	
	.pa-lottery-numbers {
		font-size: 10px;
	}
}
