/* =============================================================================
   Newsam Stringer Portal — Frontend Styles
   ============================================================================= */

.newsam-stringer-wrap {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.newsam-stringer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 15px;
}

.newsam-stringer-header h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
}

.newsam-stringer-subtitle {
	margin: 4px 0 0;
	color: #666;
	font-size: 14px;
}

.newsam-stringer-actions {
	display: flex;
	gap: 10px;
}

/* Card */
.newsam-stringer-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.newsam-stringer-card h2 {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
}

.newsam-stringer-card h3 {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

/* Buttons */
.newsam-btn {
	display: inline-block;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	line-height: 1.4;
	text-align: center;
}

.newsam-btn-primary {
	background: #c0392b;
	color: #fff;
	border-color: #c0392b;
}

.newsam-btn-primary:hover {
	background: #a93226;
	border-color: #a93226;
	color: #fff;
}

.newsam-btn-outline {
	background: transparent;
	color: #333;
	border-color: #ccc;
}

.newsam-btn-outline:hover {
	border-color: #999;
	color: #111;
}

/* Form fields */
.newsam-stringer-form {
	margin-top: 20px;
}

.newsam-field {
	margin-bottom: 20px;
}

.newsam-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.newsam-field label .required {
	color: #c0392b;
}

.newsam-field input[type="text"],
.newsam-field input[type="password"],
.newsam-field input[type="email"],
.newsam-field select {
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fafafa;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.newsam-field input:focus,
.newsam-field select:focus {
	border-color: #c0392b;
	outline: none;
	background: #fff;
}

.newsam-field input[type="file"] {
	font-size: 14px;
	padding: 8px 0;
}

.newsam-field-hint {
	margin: 6px 0 0;
	font-size: 13px;
	color: #888;
}

/* TinyMCE editor wrapper */
.newsam-field .wp-editor-wrap {
	border-radius: 6px;
	overflow: hidden;
}

/* Form actions */
.newsam-form-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* Table */
.newsam-stringer-table {
	width: 100%;
	border-collapse: collapse;
}

.newsam-stringer-table th {
	text-align: left;
	padding: 12px 16px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	border-bottom: 2px solid #eee;
}

.newsam-stringer-table td {
	padding: 14px 16px;
	font-size: 14px;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
}

.newsam-stringer-table tr:last-child td {
	border-bottom: none;
}

.newsam-stringer-table tr:hover td {
	background: #fafafa;
}

/* Status badges */
.newsam-status {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	letter-spacing: 0.3px;
}

.status-draft {
	background: #eee;
	color: #666;
}

.status-pending {
	background: #fff3cd;
	color: #856404;
}

.status-published {
	background: #d4edda;
	color: #155724;
}

.status-rejected {
	background: #f8d7da;
	color: #721c24;
}

/* Notices */
.newsam-stringer-error {
	background: #f8d7da;
	color: #721c24;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid #f5c6cb;
	font-size: 14px;
}

.newsam-stringer-success {
	background: #d4edda;
	color: #155724;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid #c3e6cb;
	font-size: 14px;
}

.newsam-stringer-notice {
	background: #fff3cd;
	color: #856404;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid #ffeeba;
	font-size: 14px;
}

.newsam-stringer-empty {
	text-align: center;
	color: #888;
	padding: 40px 20px;
	font-size: 15px;
}

/* Responsive */
@media (max-width: 600px) {
	.newsam-stringer-wrap {
		padding: 0 15px;
		margin: 20px auto;
	}

	.newsam-stringer-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.newsam-stringer-card {
		padding: 20px;
	}

	.newsam-stringer-table th,
	.newsam-stringer-table td {
		padding: 10px 8px;
		font-size: 13px;
	}

	.newsam-form-actions {
		flex-direction: column;
	}

	.newsam-btn {
		width: 100%;
	}
}
