/**
 * Public CSS for DPT Automatic Date Manager
 *
 * @package DPT_Automatic_Date_Manager
 * @since 0.1.0
 */

/* Main Date Container */
.dpt-adm-dates {
	display: block;
	margin: 15px 0;
	font-family: inherit;
	/*font-size: 0.9em;*/
	line-height: 1.4;
	color: inherit;
}

/* Individual Date Styling */
.dpt-adm-date {
	display: inline-block;
	margin: 0 0 0 0;
	/*padding: 6px 10px;*/
	/*background: #f8f9fa;
	border: 1px solid #e9ecef;*/
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.dpt-adm-date:hover {
	/*background: #e9ecef;
	border-color: #dee2e6;*/
	text-decoration: none;
}

.dpt-adm-date time {
	font-weight: inherit;
	color: inherit;
}

/* Date Type Variations */
/*.dpt-adm-date--published {
	background: #e3f2fd;
	border-color: #2196f3;
	color: #1976d2;
}

.dpt-adm-date--published:hover {
	background: #bbdefb;
	border-color: #1976d2;
}

.dpt-adm-date--updated {
	background: #e8f5e8;
	border-color: #4caf50;
	color: #388e3c;
}

.dpt-adm-date--updated:hover {
	background: #c8e6c9;
	border-color: #388e3c;
}*/

/* Date Labels */
.dpt-adm-date::before {
	content: attr(data-label);
	font-weight: 600;
	margin-right: 6px;
	opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
	.dpt-adm-dates {
		margin: 10px 0;
		font-size: 0.85em;
	}
	
	.dpt-adm-date {
		display: block;
		/*margin: 0 0 8px 0;*/
		text-align: center;
	}
	.dpt-adm-date::before {
		display: none;
	}
}

@media (max-width: 480px) {
	.dpt-adm-dates {
		font-size: 0.8em;
	}
	
	.dpt-adm-date {
		/*padding: 4px 8px;*/
	}
}

/* Theme Integration Styles */
/* Kadence Theme */
.entry-meta > .dpt-adm-dates,
.dpt-adm-dates.dpt-adm-theme-foodiepro5 {
	display: inline-flex;
}
.dpt-adm-dates.dpt-adm-theme-foodiepro5 {
	font-size: 0.85em;
	margin: 0 0 0 0;
}
.dpt-adm-dates.dpt-adm-theme-foodiepro5 .dpt-adm-date:before {
	display: none;
}
.dpt-adm-dates.dpt-adm-theme-foodiepro5 .dpt-adm-date:after {
	margin-left: .5rem;
	margin-right: .5rem;
	content: "";
	display: inline-block;
	background-color: currentColor;
	height: .25rem;
	width: .25rem;
	opacity: .8;
	border-radius: 9999px;
	vertical-align: .1875em;
}

/*Genesis (Foodit Pro)*/
.generate-post-meta .dpt-adm-dates {
	margin: 8px 0;
}

/* GeneratePress Theme */
.generate-post-meta .dpt-adm-dates {
	margin: 8px 0;
}

.generate-post-meta .dpt-adm-date {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0 8px 0 0;
	font-size: 0.9em;
}

/* Generic Theme Support */
.entry-meta .dpt-adm-dates,
.post-meta .dpt-adm-dates,
.article-meta .dpt-adm-dates {
	margin: 8px 0;
}

.entry-meta .dpt-adm-date,
.post-meta .dpt-adm-date,
.article-meta .dpt-adm-date {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0 8px 0 0;
	/*font-size: 0.9em;*/
	color: inherit;
}

/* Content Integration */
.entry-content .dpt-adm-dates,
.post-content .dpt-adm-dates,
.article-content .dpt-adm-dates {
	margin: 20px 0;
	padding: 15px;
	background: #f8f9fa;
	border-left: 4px solid #0073aa;
	border-radius: 0 4px 4px 0;
}

.entry-content .dpt-adm-date,
.post-content .dpt-adm-date,
.article-content .dpt-adm-date {
	/*background: #fff;
	border: 1px solid #dee2e6;*/
	margin: 0 10px 0 0;
}

/* Print Styles */
@media print {
	.dpt-adm-dates {
		margin: 10px 0;
		page-break-inside: avoid;
	}
	
	.dpt-adm-date {
		background: transparent !important;
		border: 1px solid #000 !important;
		color: #000 !important;
		box-shadow: none !important;
	}
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	.dpt-adm-date {
		border-width: 2px;
	}
	
	.dpt-adm-date--published {
		border-color: #000;
		color: #000;
	}
	
	.dpt-adm-date--updated {
		border-color: #000;
		color: #000;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.dpt-adm-date {
		transition: none;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.dpt-adm-dates {
		color: #e1e1e1;
	}
	
	.dpt-adm-date {
		background: #2d2d2d;
		border-color: #555;
		color: #e1e1e1;
	}
	
	.dpt-adm-date:hover {
		background: #3d3d3d;
		border-color: #666;
	}
	
	.dpt-adm-date--published {
		background: #1a237e;
		border-color: #3f51b5;
		color: #c5cae9;
	}
	
	.dpt-adm-date--published:hover {
		background: #283593;
		border-color: #5c6bc0;
	}
	
	.dpt-adm-date--updated {
		background: #1b5e20;
		border-color: #4caf50;
		color: #c8e6c9;
	}
	
	.dpt-adm-date--updated:hover {
		background: #2e7d32;
		border-color: #66bb6a;
	}
	
	.entry-content .dpt-adm-dates,
	.post-content .dpt-adm-dates,
	.article-content .dpt-adm-dates {
		background: #2d2d2d;
		border-left-color: #0073aa;
	}
	
	.entry-content .dpt-adm-date,
	.post-content .dpt-adm-date,
	.article-content .dpt-adm-date {
		background: #3d3d3d;
		border-color: #555;
	}
}

/* RTL Support */
.rtl .dpt-adm-date {
	margin: 0 0 0 15px;
}

.rtl .dpt-adm-date::before {
	margin-right: 0;
	margin-left: 6px;
}

.rtl .entry-content .dpt-adm-dates,
.rtl .post-content .dpt-adm-dates,
.rtl .article-content .dpt-adm-dates {
	border-left: none;
	border-right: 4px solid #0073aa;
	border-radius: 4px 0 0 4px;
}

/* Focus States for Accessibility */
.dpt-adm-date:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Custom Theme Overrides */
.dpt-adm-dates.dpt-adm-theme-custom {
	/* Add custom theme styles here */
}

.dpt-adm-dates.dpt-adm-theme-minimal .dpt-adm-date {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0 10px 0 0;
}

.dpt-adm-dates.dpt-adm-theme-minimal .dpt-adm-date::before {
	content: none;
}

.dpt-adm-dates.dpt-adm-theme-minimal .dpt-adm-date time {
	font-style: italic;
	opacity: 0.8;
}

/* Utility Classes */
.dpt-adm-dates.dpt-adm-align-left {
	text-align: left;
}

.dpt-adm-dates.dpt-adm-align-center {
	text-align: center;
}

.dpt-adm-dates.dpt-adm-align-right {
	text-align: right;
}

.dpt-adm-dates.dpt-adm-size-small {
	font-size: 0.8em;
}

.dpt-adm-dates.dpt-adm-size-large {
	font-size: 1.1em;
}

.dpt-adm-dates.dpt-adm-style-compact .dpt-adm-date {
	padding: 3px 6px;
	margin: 0 8px 0 0;
}

.dpt-adm-dates.dpt-adm-style-expanded .dpt-adm-date {
	padding: 8px 12px;
	margin: 0 20px 0 0;
}

/* Animation Classes */
.dpt-adm-dates.dpt-adm-animate-fade .dpt-adm-date {
	opacity: 0;
	animation: dpt-adm-fade-in 0.5s ease-in-out forwards;
}

.dpt-adm-dates.dpt-adm-animate-slide .dpt-adm-date {
	transform: translateY(20px);
	opacity: 0;
	animation: dpt-adm-slide-up 0.5s ease-out forwards;
}

@keyframes dpt-adm-fade-in {
	to {
		opacity: 1;
	}
}

@keyframes dpt-adm-slide-up {
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Stagger animation delays */
.dpt-adm-dates.dpt-adm-animate-stagger .dpt-adm-date:nth-child(1) {
	animation-delay: 0.1s;
}

.dpt-adm-dates.dpt-adm-animate-stagger .dpt-adm-date:nth-child(2) {
	animation-delay: 0.2s;
}

.dpt-adm-dates.dpt-adm-animate-stagger .dpt-adm-date:nth-child(3) {
	animation-delay: 0.3s;
}
