/**
 * Frontend Styles
 *
 * @package   Denizin_Code_Snippets
 * @author    Denizin
 */

/* Snippet-specific styles can be added by users */
/* This file can be used for plugin-specific frontend styling */

/* Debug mode styles (if enabled) */
body.dncs-debug-mode #wpadminbar:before {
	content: "DNCS Debug Mode Active";
	background: #ffeb3b;
	color: #000;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
}

/* Error overlay (for critical errors) */
.dncs-error-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 0, 0, 0.9);
	color: #fff;
	padding: 50px 20px;
	z-index: 999999;
	overflow-y: auto;
}

.dncs-error-overlay h1 {
	margin-top: 0;
	color: #fff;
}

.dncs-error-overlay p {
	font-size: 16px;
	line-height: 1.6;
}

.dncs-error-overlay code {
	display: block;
	background: rgba(0, 0, 0, 0.5);
	padding: 10px;
	margin: 20px 0;
	font-family: Consolas, Monaco, 'Courier New', monospace;
	font-size: 14px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.dncs-error-overlay button {
	display: block;
	margin: 20px auto 0;
	padding: 12px 30px;
	background: #fff;
	color: #ff0000;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.dncs-error-overlay button:hover {
	background: #f0f0f0;
}

/* Console output styles (if snippets log to screen) */
.dncs-console-output {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	max-height: 300px;
	background: #1a1a1a;
	color: #0f0;
	font-family: Consolas, Monaco, 'Courier New', monospace;
	font-size: 12px;
	padding: 10px;
	overflow-y: auto;
	z-index: 999998;
	border-top: 3px solid #0f0;
}

.dncs-console-output:empty {
	display: none;
}

.dncs-console-output .dncs-log-entry {
	margin: 5px 0;
	padding: 5px;
	border-bottom: 1px solid #333;
}

.dncs-console-output .dncs-log-error {
	color: #f00;
}

.dncs-console-output .dncs-log-warn {
	color: #ff0;
}

.dncs-console-output .dncs-log-info {
	color: #0ff;
}

/* Safe mode banner */
.dncs-safe-mode-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #f7e6ad;
	color: #6b5b00;
	padding: 10px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	z-index: 999999;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dncs-safe-mode-banner button {
	margin-left: 20px;
	padding: 5px 15px;
	background: #6b5b00;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

.dncs-safe-mode-banner button:hover {
	background: #554800;
}

