/**
 * Frontend styles for Social Campaign Media Library
 */

.socialcamp-dashboard {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.socialcamp-dashboard h2 {
	margin-bottom: 30px;
	color: #23282d;
}

.socialcamp-dashboard h3 {
	margin-top: 30px;
	margin-bottom: 15px;
	color: #23282d;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 10px;
}

/* Step Navigation */
.socialcamp-step-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 30px 0 40px 0;
	padding: 30px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.socialcamp-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	position: relative;
	transition: all 0.3s ease;
	cursor: pointer;
}

.socialcamp-step-number {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #d0d0d0;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	position: relative;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.socialcamp-step-number .step-check {
	display: none;
	font-size: 24px;
}

.socialcamp-step-label {
	font-size: 14px;
	font-weight: 600;
	color: #666;
	text-align: center;
	transition: all 0.3s ease;
}

.socialcamp-step-arrow {
	font-size: 24px;
	color: #d0d0d0;
	margin: 0 20px;
	padding-bottom: 25px;
	transition: all 0.3s ease;
}

/* Step States */
.socialcamp-step.active .socialcamp-step-number {
	background: #0073aa;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.socialcamp-step.active .socialcamp-step-label {
	color: #0073aa;
	font-weight: 700;
}

.socialcamp-step:not(.disabled):hover .socialcamp-step-number {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.socialcamp-step.completed .socialcamp-step-number {
	background: #46b450;
}

.socialcamp-step.completed .socialcamp-step-number .step-num {
	display: none;
}

.socialcamp-step.completed .socialcamp-step-number .step-check {
	display: block;
}

.socialcamp-step.completed .socialcamp-step-label {
	color: #46b450;
}

.socialcamp-step.completed ~ .socialcamp-step-arrow {
	color: #46b450;
}

.socialcamp-step.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.socialcamp-error {
	background: #dc3232;
	color: #fff;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.socialcamp-success {
	background: #46b450;
	color: #fff;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

/* Section visibility - wizard style */
.socialcamp-section {
	display: none;
	margin-bottom: 30px;
	padding: 20px;
	border-radius: 4px;
	animation: fadeIn 0.3s ease-in;
}

.socialcamp-section.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.socialcamp-campaign-section {
	background: #f9f9f9;
}

.socialcamp-campaign-selector {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.socialcamp-campaign-selector select {
	min-width: 200px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.socialcamp-new-campaign {
	margin-top: 15px;
	padding: 15px;
	background: #fff;
	border-radius: 4px;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.socialcamp-new-campaign input {
	flex: 1;
	min-width: 200px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.socialcamp-form-section {
	background: #fff;
	border: 1px solid #ddd;
}

.socialcamp-items-section {
	background: #fff;
	border: 1px solid #ddd;
}

.socialcamp-form-field {
	margin-bottom: 20px;
}

.socialcamp-form-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #23282d;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.socialcamp-form-field .required {
	color: #dc3232;
}

.socialcamp-form-field input[type="text"],
.socialcamp-form-field textarea,
.socialcamp-form-field select {
	width: 100%;
	max-width: 600px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
}

.socialcamp-form-field textarea {
	resize: vertical;
	min-height: 100px;
}

.socialcamp-form-field .description {
	margin-top: 5px;
	font-size: 13px;
	color: #666;
	font-style: italic;
}

.socialcamp-form-actions {
	margin-top: 25px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Step Navigation Buttons */
.socialcamp-step-navigation-buttons {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.socialcamp-prev-step,
.socialcamp-next-step {
	min-width: 150px;
	font-weight: 600;
}

.socialcamp-next-step {
	margin-left: auto;
	background: #0073aa;
	color: #fff;
}

.socialcamp-next-step:hover {
	background: #005a87;
	color: #fff;
}

.socialcamp-next-step:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.socialcamp-items-section {
	margin-bottom: 30px;
}

.socialcamp-items-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.socialcamp-items-table th {
	background: #f1f1f1;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.socialcamp-items-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.socialcamp-items-table tr:hover {
	background: #f9f9f9;
}

.socialcamp-items-table .actions {
	white-space: nowrap;
}

.socialcamp-items-table .actions a {
	margin-right: 10px;
	color: #0073aa;
	text-decoration: none;
}

.socialcamp-items-table .actions a:hover {
	text-decoration: underline;
}

.socialcamp-items-table .actions a.delete {
	color: #dc3232;
}

#socialcamp-csv-export {
	margin-top: 20px;
}

#socialcamp-messages {
	margin-top: 20px;
}

.button {
	display: inline-block;
	padding: 8px 16px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
}

.button:hover {
	background: #005a87;
	color: #fff;
}

.button-primary {
	background: #0073aa;
}

.button-primary:hover {
	background: #005a87;
}

/* Media Upload Area */
.socialcamp-media-upload-area {
	margin-bottom: 20px;
}

.socialcamp-dropzone {
	border: 2px dashed #ccc;
	border-radius: 4px;
	padding: 40px;
	text-align: center;
	background: #fafafa;
	cursor: pointer;
	transition: all 0.3s ease;
}

.socialcamp-dropzone:hover {
	border-color: #0073aa;
	background: #f0f8ff;
}

.socialcamp-dropzone.dragover {
	border-color: #0073aa;
	background: #e6f3ff;
	border-style: solid;
}

.socialcamp-dropzone-text {
	margin: 0;
	color: #666;
	line-height: 1.8;
}

.socialcamp-dropzone-text strong {
	color: #23282d;
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
}

.socialcamp-dropzone-text span {
	margin: 0 8px;
}

.socialcamp-media-preview {
	margin-top: 15px;
	padding: 15px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.socialcamp-media-list ul {
	margin: 10px 0 0 0;
}

.socialcamp-media-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.socialcamp-remove-media {
	cursor: pointer;
}

.socialcamp-remove-media:hover {
	text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.socialcamp-dashboard {
		padding: 10px;
	}

	.socialcamp-step-navigation {
		padding: 20px 10px;
		margin: 20px 0 30px 0;
	}

	.socialcamp-step-number {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.socialcamp-step-label {
		font-size: 12px;
	}

	.socialcamp-step-arrow {
		font-size: 18px;
		margin: 0 10px;
		padding-bottom: 20px;
	}

	.socialcamp-campaign-selector,
	.socialcamp-new-campaign,
	.socialcamp-form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.socialcamp-campaign-selector select,
	.socialcamp-new-campaign input {
		width: 100%;
		min-width: auto;
	}

	.socialcamp-items-table {
		font-size: 14px;
	}

	.socialcamp-items-table th,
	.socialcamp-items-table td {
		padding: 8px;
	}
}

