/* =====================================================
   Akademik Dergi - Makale Gönderim Formu Stilleri
   ===================================================== */

:root {
	--aj-primary: #2c3e6e;
	--aj-primary-hover: #1e2d52;
	--aj-accent: #4a90d9;
	--aj-success: #27ae60;
	--aj-danger: #e74c3c;
	--aj-warning: #f5a623;
	--aj-border: #dde3ed;
	--aj-bg: #f5f7fb;
	--aj-white: #ffffff;
	--aj-text: #2d3748;
	--aj-text-muted: #718096;
	--aj-radius: 8px;
	--aj-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Wrapper */
.aj-submission-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 10px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--aj-text);
}

/* Form Başlık */
.aj-form-header {
	text-align: center;
	margin-bottom: 30px;
}

.aj-form-header h2 {
	font-size: 26px;
	font-weight: 700;
	color: var(--aj-primary);
	margin-bottom: 8px;
}

.aj-form-desc {
	color: var(--aj-text-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* Alert Mesajları */
.aj-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border-radius: var(--aj-radius);
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.5;
}

.aj-alert .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
}

.aj-alert-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.aj-alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Form Bölümler */
.aj-form-section {
	background: var(--aj-white);
	border: 1px solid var(--aj-border);
	border-radius: var(--aj-radius);
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: var(--aj-shadow);
}

.aj-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 600;
	color: var(--aj-primary);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--aj-bg);
}

.aj-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--aj-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

/* Form Satırlar */
.aj-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.aj-form-row {
		grid-template-columns: 1fr;
	}
}

/* Form Gruplar */
.aj-form-group {
	margin-bottom: 18px;
}

.aj-form-group:last-child {
	margin-bottom: 0;
}

.aj-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--aj-text);
	margin-bottom: 6px;
}

.aj-label small {
	font-weight: 400;
	color: var(--aj-text-muted);
	margin-left: 6px;
}

.aj-required {
	color: var(--aj-danger);
	margin-left: 3px;
}

/* Giriş Alanları */
.aj-input,
.aj-textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--aj-border);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: var(--aj-text);
	background: var(--aj-white);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.aj-input:focus,
.aj-textarea:focus {
	border-color: var(--aj-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.aj-input.error,
.aj-textarea.error {
	border-color: var(--aj-danger);
}

.aj-textarea {
	resize: vertical;
	min-height: 100px;
	line-height: 1.6;
}

/* Karakter Sayacı */
.aj-char-count {
	text-align: right;
	font-size: 12px;
	color: var(--aj-text-muted);
	margin-top: 4px;
}

.aj-char-count.over-limit {
	color: var(--aj-danger);
}

/* Dosya Yükleme */
.aj-file-upload-zone {
	position: relative;
	border: 2px dashed var(--aj-border);
	border-radius: var(--aj-radius);
	padding: 24px;
	text-align: center;
	transition: all 0.2s;
	background: var(--aj-bg);
	cursor: pointer;
}

.aj-file-upload-zone:hover,
.aj-file-upload-zone.dragover {
	border-color: var(--aj-accent);
	background: #eef4fb;
}

.aj-file-upload-zone.has-file {
	border-color: var(--aj-success);
	background: #f0faf4;
}

.aj-file-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.aj-file-upload-content {
	pointer-events: none;
}

.aj-file-upload-content .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: var(--aj-accent);
	margin-bottom: 8px;
}

.aj-file-upload-content p {
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--aj-text);
}

.aj-file-upload-content small {
	color: var(--aj-text-muted);
	font-size: 12px;
}

/* Dosya Önizleme */
.aj-file-preview {
	margin-top: 12px;
}

.aj-file-preview-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: var(--aj-white);
	border: 1px solid var(--aj-border);
	border-radius: 6px;
	margin-bottom: 6px;
	font-size: 13px;
	position: relative;
}

.aj-file-preview-item .dashicons {
	color: #1565c0;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.aj-file-preview-item .aj-remove-file {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: var(--aj-danger);
	background: none;
	border: none;
	padding: 2px;
	display: flex;
	align-items: center;
	z-index: 3;
}

.aj-file-size {
	color: var(--aj-text-muted);
	font-size: 11px;
	margin-left: auto;
	margin-right: 24px;
}

/* Görsel Önizleme Grid */
.aj-images-preview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
}

.aj-image-preview-item {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--aj-border);
}

.aj-image-preview-item img {
	width: 100%;
	height: 70px;
	object-fit: cover;
	display: block;
}

.aj-image-preview-item .aj-remove-image {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	background: rgba(231,76,60,0.9);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
	padding: 0;
}

/* Checkbox */
.aj-checkbox-label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
	color: var(--aj-text);
}

.aj-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* Gönder Butonu */
.aj-submit-area {
	text-align: center;
	margin-top: 10px;
}

.aj-submit-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 40px;
	background: var(--aj-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	font-family: inherit;
}

.aj-submit-button:hover:not(:disabled) {
	background: var(--aj-primary-hover);
}

.aj-submit-button:active {
	transform: scale(0.98);
}

.aj-submit-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.aj-submit-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.aj-btn-loading {
	display: flex;
	align-items: center;
	gap: 10px;
}

.aj-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: aj-spin 0.8s linear infinite;
}

@keyframes aj-spin {
	to { transform: rotate(360deg); }
}

.aj-submit-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	color: var(--aj-text-muted);
	margin-top: 12px;
}

.aj-submit-note .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--aj-accent);
}

/* Yardımcı */
.hidden {
	display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
	.aj-form-section {
		padding: 16px;
	}

	.aj-submit-button {
		width: 100%;
		justify-content: center;
	}
}
