/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Hapna Subscription Card Styles */
.hapna-subscription-card {
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	padding: 24px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.hapna-subscription-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hapna-subscription-card h3 {
	margin: 0 0 16px 0;
	color: #2c3e50;
	font-size: 1.5em;
	font-weight: 600;
}

.hapna-subscription-content {
	margin: 16px 0;
	color: #555;
	line-height: 1.6;
}

.hapna-subscription-price {
	display: flex;
	align-items: baseline;
	margin: 20px 0;
	gap: 8px;
}

.hapna-subscription-price .price {
	font-size: 2.5em;
	font-weight: 700;
	color: #27ae60;
}

.hapna-subscription-price .interval {
	color: #7f8c8d;
	font-size: 1em;
	font-weight: 500;
}

.hapna-subscription-actions {
	margin-top: 24px;
}

.hapna-subscribe-button {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white !important;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	text-align: center;
	min-width: 200px;
}

.hapna-subscribe-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	color: white !important;
}

.hapna-subscribe-button:active {
	transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
	.hapna-subscription-card {
		margin: 16px 0;
		padding: 20px;
	}
	
	.hapna-subscription-price .price {
		font-size: 2em;
	}
	
	.hapna-subscribe-button {
		width: 100%;
		text-align: center;
	}
}

/* Admin styles for subscription meta boxes */
.hapna-subscription-meta-box .form-table {
	margin-top: 10px;
}

.hapna-subscription-meta-box .form-table th {
	padding: 15px 10px 15px 0;
	width: 150px;
}

.hapna-subscription-meta-box .form-table td {
	padding: 15px 10px;
}

/* Dashboard widgets */
.hapna-dashboard {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.hapna-dashboard-widget {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 20px;
	border-radius: 4px;
}

.hapna-dashboard-widget h2 {
	margin-top: 0;
	color: #23282d;
	font-size: 1.3em;
}

/* Analytics cards */
.hapna-analytics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.hapna-analytics-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 20px;
	border-radius: 4px;
	text-align: center;
}

.hapna-metric {
	font-size: 3em;
	font-weight: bold;
	margin: 10px 0;
	color: #0073aa;
}

.hapna-metric-label {
	color: #666;
	text-transform: uppercase;
	font-size: 0.9em;
	margin: 0;
}

/* Helio integration status */
.hapna-helio-status {
	padding: 12px;
	border-radius: 4px;
	margin: 10px 0;
}

.hapna-helio-status.configured {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.hapna-helio-status.not-configured {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Setup instructions */
.hapna-helio-info {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 20px;
	margin: 20px 0;
}

.hapna-helio-info h2 {
	margin-top: 0;
	color: #495057;
}

.hapna-helio-info ol {
	padding-left: 20px;
}

.hapna-helio-info code {
	background: #e9ecef;
	padding: 4px 8px;
	border-radius: 4px;
	font-family: 'Courier New', Courier, monospace;
	color: #e83e8c;
}

/* Loading states */
.hapna-loading {
	opacity: 0.6;
	pointer-events: none;
}

.hapna-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #0073aa;
	border-radius: 50%;
	animation: hapna-spin 1s linear infinite;
	margin-left: 8px;
}

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