/* ISS Tracker Widget Styles */

.iss-tracker-widget {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 20px auto;
	background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #0d1b2a 100%);
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 191, 255, 0.1);
	padding: 20px;
	border: 1px solid rgba(0, 191, 255, 0.2);
}

.iss-widget-content {
	color: #e0e0e0;
}

/* Loading State */
.iss-loading {
	text-align: center;
	padding: 20px;
}

.iss-loading-spinner {
	width: 50px;
	height: 50px;
	margin: 0 auto 15px;
	border: 4px solid rgba(0, 191, 255, 0.2);
	border-top: 4px solid #00bfff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.iss-loading p {
	margin: 0;
	color: #00bfff;
	font-size: 14px;
	font-weight: 500;
}

/* Error State */
.iss-error {
	text-align: center;
	padding: 20px;
	color: #ff6b6b;
}

.iss-error p {
	margin: 0;
	font-size: 14px;
}

/* Widget Content */
.iss-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(0, 191, 255, 0.2);
	padding-bottom: 15px;
}

.iss-widget-header h3 {
	margin: 0;
	color: #00bfff;
	font-size: 18px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.iss-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #4db8ff;
}

.iss-status-dot {
	width: 8px;
	height: 8px;
	background: #00ff88;
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.iss-location-info {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}

.iss-location-item {
	background: rgba(0, 191, 255, 0.05);
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iss-location-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 191, 255, 0.15);
}

.iss-location-label {
	font-size: 12px;
	color: #4db8ff;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 5px;
}

.iss-location-value {
	font-size: 24px;
	font-weight: 700;
	color: #00bfff;
}

.iss-altitude {
	color: #4db8ff;
}

/* Pass Predictions */
.iss-passes {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid rgba(0, 191, 255, 0.2);
}

.iss-passes h4 {
	margin: 0 0 15px 0;
	color: #4db8ff;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.iss-pass-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(0, 191, 255, 0.03);
	border-radius: 8px;
	padding: 12px 15px;
	margin-bottom: 10px;
	transition: background 0.2s ease;
}

.iss-pass-item:hover {
	background: rgba(0, 191, 255, 0.08);
}

.iss-pass-info {
	flex: 1;
}

.iss-pass-time {
	font-size: 16px;
	font-weight: 600;
	color: #e0e0e0;
}

.iss-pass-duration {
	font-size: 12px;
	color: #4db8ff;
	margin-top: 3px;
}

.iss-pass-time-remaining {
	font-size: 11px;
	color: #00bfff;
	margin-top: 3px;
}

.iss-pass-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 191, 255, 0.1);
	border-radius: 50%;
	margin-left: 15px;
}

.iss-pass-icon svg {
	width: 16px;
	height: 16px;
	fill: #00bfff;
}

/* Progress Circle */
.iss-progress-circle {
	position: relative;
	display: inline-block;
}

.iss-progress-circle svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.iss-progress-circle circle {
	fill: none;
}

.iss-progress-circle .progress-bg {
	stroke: rgba(0, 191, 255, 0.1);
}

.iss-progress-circle .progress-fill {
	stroke: #00bfff;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 0.5s ease;
}

.iss-progress-circle .progress-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 18px;
	font-weight: 700;
	color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.iss-tracker-widget {
		max-width: 100%;
		margin: 15px auto;
		padding: 15px;
	}

	.iss-location-item {
		padding: 12px;
	}

	.iss-location-value {
		font-size: 20px;
	}

	.iss-pass-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.iss-pass-icon {
		margin-left: 0;
		align-self: flex-start;
	}
}

@media (max-width: 480px) {
	.iss-tracker-widget {
		margin: 10px auto;
		padding: 12px;
	}

	.iss-widget-header h3 {
		font-size: 16px;
	}

	.iss-location-value {
		font-size: 18px;
	}

	.iss-pass-time {
		font-size: 14px;
	}
}