/* ===========================================
   CUSTOM STYLES 2025 - WUS
   Universal content card system with consistent styling
   =========================================== */

/* UNIVERSAL COLOR SYSTEM */
:root {
	--accent-blue: #007bff;
	--accent-blue-dark: #0056b3;
}

/* ARCHITECTURE:
   - .content-card: Universal wrapper for all content blocks
   - .card-header: Contains logo and main content
   - .card-logo: Standardized logo sizing (50x40px)
   - .card-content: Text content wrapper
   - .info-*: Content styling classes (used within content-cards)
   - Legacy .info-block: Maintained for backward compatibility
   =========================================== */

/* Base info block styling - unified for all components */
.info-block {
	background: #f8f9fa;
	border-left: 4px solid var(--accent-blue);
	padding: 15px;
	margin: 10px 0;
	border-radius: 0 8px 8px 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header elements */
.info-header .info-title {
	font-size: 1.1em;
	color: #2c3e50;
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.info-header .info-title a {
	color: inherit;
	text-decoration: none;
}

.info-header .info-title a:hover {
	color: #007bff;
	text-decoration: underline;
}

.info-header .info-subtitle {
	font-size: 0.9em;
	color: #6c757d;
	margin-bottom: 4px;
	font-weight: normal;
}

.info-header .info-subtitle i {
	margin-right: 5px;
	font-size: 0.9em;
}

/* Details section (for addresses and general info) */
.info-details {
	margin-top: 8px;
	line-height: 1.4;
}

.info-details .address-line,
.info-details .street,
.info-details .location,
.info-details .country {
	color: #6c757d;
	font-size: 14px;
	font-weight: normal;
	line-height: 1.4;
	margin: 0 0 3px 0;
}

.info-details .location {
	font-weight: 500;
}

/* Description section */
.info-description {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e9ecef;
	font-size: 0.9em;
	color: #495057;
	line-height: 1.4;
}

/* Specific component styles */

/* Universal Content Card - replaces all specific blocks (job-block, article-block, etc.) */
.content-card {
	background: #f8f9fa; /* Same beautiful background as info-block */
	border: 1px solid #e2e8f0;
	border-left: 4px solid var(--accent-blue); /* Universal blue accent */
	border-radius: 0 8px 8px 0; /* Same rounded corners as info-block */
	margin: 15px 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Same shadow as info-block */
}

.content-card .card-header {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 15px; /* Match info-block padding */
	border-bottom: none; /* Remove border - let content flow naturally */
}

.content-card .card-logo {
	flex-shrink: 0;
}

.content-card .card-logo img {
	width: 50px;
	height: 40px;
	object-fit: contain;
}

.content-card .card-content {
	flex: 1;
	min-width: 0; /* Prevents flex item from overflowing */
}

/* Content card specific overrides for better flow */
.content-card .info-description {
	margin-top: 8px; /* Reduce spacing */
	padding-top: 0; /* Remove top padding */
	border-top: none; /* Remove separator line for natural flow */
	padding-left: 15px; /* Match card padding */
	padding-right: 15px;
	padding-bottom: 15px;
}

.content-card .info-details {
	margin-top: 8px;
	padding-left: 15px;
	padding-right: 15px;
	padding-bottom: 15px;
}

/* Color variants */
.info-block.info-block-success {
	border-left-color: #28a745;
}

.info-block.info-block-warning {
	border-left-color: #ffc107;
}

.info-block.info-block-danger {
	border-left-color: #dc3545;
}

.info-block.info-block-info {
	border-left-color: #17a2b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.info-block {
		padding: 12px;
		margin: 8px 0;
	}
	
	.content-card .card-header {
		flex-direction: column;
		gap: 10px;
	}
	
	.content-card .card-logo img {
		width: 40px;
		height: 30px;
	}
}

/* ===========================================
   SELECT BOX STYLING (handled in Symfony form)
   =========================================== */

/* ===========================================
   SELECT BOX STYLING - PRODUCTION FIX
   Fixes select box visibility issues in legacy theme
   =========================================== */

/* Global select box styling that works */
select { 
	color: #000000 !important; 
	background-color: #ffffff !important; 
	border: 1px solid #dddddd !important;
	font-size: 14px !important;
}

/* Specific fix for contact subject and all form selects */
#contact_subject,
select.form-control { 
	color: #000000 !important; 
	background-color: #ffffff !important; 
	border: 1px solid #dddddd !important;
	font-size: 14px !important;
	/* Essential properties that fixed the visibility issue */
	text-indent: 0px !important;
	line-height: normal !important;
	padding: 15px 20px !important;
	height: auto !important;
	text-transform: none !important;
	font-family: inherit !important;
	font-style: normal !important;
	opacity: 1 !important;
	visibility: visible !important;
	-webkit-text-fill-color: #000000 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

/* General form-control override */
.form-control { 
	color: #000000 !important; 
	background-color: #ffffff !important;
}

/* Select option styling */
select option {
	color: #000000 !important;
	background-color: #ffffff !important;
}

/* Single select specific styling */
select:not([multiple]):not([size]) {
	color: #000000 !important;
	-webkit-text-fill-color: #000000 !important;
}

/* Interactive states */
select:focus, select:active, select:hover {
	color: #000000 !important;
	background-color: #ffffff !important;
}

/* ===========================================
   END SELECT BOX STYLING
   =========================================== */

/* ===========================================
   BEAUTIFUL FILE UPLOAD STYLING
   Modern drag & drop file upload interface
   =========================================== */

/* Hide the default file input */
input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 0.1px;
	height: 0.1px;
	overflow: hidden;
}

/* Custom file upload container */
.file-upload-container {
	position: relative;
	display: inline-block;
	width: 100%;
	margin-bottom: 15px;
}

/* Beautiful file upload label */
input[type="file"] + label,
.custom-file-upload {
	display: block;
	width: 100%;
	padding: 20px;
	border: 2px dashed #007bff;
	border-radius: 8px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 16px;
	color: #495057;
	position: relative;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

/* Upload icon */
input[type="file"] + label:before,
.custom-file-upload:before {
	content: "\f093";
	font-family: "FontAwesome";
	font-size: 24px;
	color: #007bff;
	display: block;
	margin-bottom: 8px;
}

/* Hover state */
input[type="file"] + label:hover,
.custom-file-upload:hover {
	border-color: #0056b3;
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* Focus state */
input[type="file"]:focus + label {
	border-color: #0056b3;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* File selected state */
input[type="file"].has-files + label {
	border-color: #28a745;
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	color: #155724;
}

input[type="file"].has-files + label:before {
	content: "\f00c";
	color: #28a745;
}

/* File upload text */
.file-upload-text {
	font-weight: 500;
	margin-bottom: 5px;
}

.file-upload-hint {
	font-size: 14px;
	color: #6c757d;
	margin-top: 5px;
}

/* File list display */
.file-list {
	margin-top: 10px;
	padding: 0;
	list-style: none;
}

.file-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	margin-bottom: 5px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	font-size: 14px;
}

.file-list-item .file-name {
	color: #495057;
	font-weight: 500;
}

.file-list-item .file-size {
	color: #6c757d;
	font-size: 12px;
}

.file-list-item .file-remove {
	color: #dc3545;
	cursor: pointer;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 3px;
	transition: background-color 0.2s;
}

.file-list-item .file-remove:hover {
	background-color: #dc3545;
	color: white;
}

/* Progress bar for upload */
.upload-progress {
	width: 100%;
	height: 4px;
	background: #e9ecef;
	border-radius: 2px;
	margin-top: 10px;
	overflow: hidden;
}

.upload-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #007bff, #0056b3);
	width: 0%;
	transition: width 0.3s ease;
}

/* Error state */
.file-upload-error {
	border-color: #dc3545 !important;
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
	color: #721c24 !important;
}

.file-upload-error:before {
	content: "\f071" !important;
	color: #dc3545 !important;
}

/* Success state */
.file-upload-success {
	border-color: #28a745 !important;
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
	color: #155724 !important;
}

.file-upload-success:before {
	content: "\f00c" !important;
	color: #28a745 !important;
}

/* Drag and drop states */
.file-upload-dragover {
	border-color: #007bff !important;
	background: linear-gradient(135deg, #cce7ff 0%, #99d6ff 100%) !important;
	transform: scale(1.02);
}

/* Mobile responsive */
@media (max-width: 768px) {
	input[type="file"] + label,
	.custom-file-upload {
		padding: 15px;
		font-size: 14px;
		min-height: 70px;
	}
	
	input[type="file"] + label:before,
	.custom-file-upload:before {
		font-size: 20px;
		margin-bottom: 5px;
	}
}

/* Form help text styling */
.form-help {
	font-size: 13px;
	color: #6c757d;
	margin-top: 5px;
	font-style: italic;
}

/* Hide duplicate help text that appears outside the styled file upload area */
.application-form .form-help[for*="bewerbungsunterlagen"],
.application-form .help-text,
.application-form .form-text {
	display: none !important;
}

/* Only show help text inside our custom upload styling */
.custom-file-upload .file-upload-hint {
	display: block !important;
}

/* File type icons */
.file-list-item:before {
	content: "\f1c1";
	font-family: "FontAwesome";
	color: #dc3545;
	margin-right: 8px;
}

/* PDF specific styling */
.file-list-item[data-type="pdf"]:before {
	content: "\f1c1";
	color: #dc3545;
}

/* ===========================================
   END FILE UPLOAD STYLING
   =========================================== */

/* ===========================================
   FORM SPACING - MINIMAL
   Only space between file upload and anti-spam
   =========================================== */

/* Space only on the anti-spam label, not the input field */
.application-form label[for*="antispam"] {
	margin-top: 30px !important;
	margin-bottom: 5px !important; /* Normal spacing to input */
}

/* Remove any extra margin from the anti-spam input field itself */
.application-form .antispam-field {
	margin-top: 0 !important;
}

/* ===========================================
   END FORM SPACING
   =========================================== */

/* ===========================================
   UNIVERSAL COMPONENTS - REUSABLE ACROSS ALL SECTIONS
   ========================================== */

/* Universal detail header - replaces job-detail-header, could be used for projects, etc. */
.detail-header {
	background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
	border: 1px solid #e1ecf7;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	gap: 20px;
}

.detail-header .logo {
	flex-shrink: 0;
	background: white;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header .logo img {
	width: 100px;
	height: 75px;
	object-fit: contain;
}

.detail-header .info {
	flex-grow: 1;
}

.detail-header .title {
	font-size: 1.5em;
	font-weight: 700;
	color: #1a365d;
	margin-bottom: 8px;
	line-height: 1.3;
}

.detail-header .subtitle {
	font-size: 1.1em;
	color: #2c5282;
	font-weight: 600;
	margin-bottom: 5px;
}

.detail-header .meta {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.detail-header .meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #4a5568;
	font-size: 0.9em;
}

.detail-header .meta-item i {
	color: #3182ce;
	font-size: 0.9em;
}

/* Universal card layout - replaces job-block, could be used for articles, projects, etc. */
.card-header {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.card-header .logo {
	flex-shrink: 0;
}

.card-header .logo img {
	width: 80px;
	height: 60px;
	object-fit: contain;
}

.card-header .content {
	flex-grow: 1;
}

/* Responsive design for universal components */
@media (max-width: 768px) {
	.detail-header {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 15px;
		padding: 20px;
	}
	
	.detail-header .info {
		text-align: center;
	}
	
	.card-header {
		flex-direction: column;
		gap: 10px;
	}
	
	.card-header .logo img {
		width: 60px;
		height: 45px;
	}
}

/* Legacy aliases - keep existing classes working by duplicating properties */
.job-detail-header {
	background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
	border: 1px solid #e1ecf7;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	gap: 20px;
}

.job-detail-header .job-logo {
	flex-shrink: 0;
	background: white;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.job-detail-header .job-logo img {
	width: 100px;
	height: 75px;
	object-fit: contain;
}

.job-detail-header .job-info {
	flex-grow: 1;
}

.job-detail-header .job-title {
	font-size: 1.5em;
	font-weight: 700;
	color: #1a365d;
	margin-bottom: 8px;
	line-height: 1.3;
}

.job-detail-header .job-company {
	font-size: 1.1em;
	color: #2c5282;
	font-weight: 600;
	margin-bottom: 5px;
}

.job-detail-header .job-meta {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.job-detail-header .job-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #4a5568;
	font-size: 0.9em;
}

.job-detail-header .job-meta-item i {
	color: #3182ce;
	font-size: 0.9em;
}

.job-block .info-header {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.job-block .job-logo {
	flex-shrink: 0;
}

.job-block .job-logo img {
	width: 50px;
	height: 40px;
	object-fit: contain;
}

.job-block .job-content {
	flex-grow: 1;
}

/* Legacy support - keep old classes working */
.article-block .info-subtitle {
	font-style: italic;
}

/* ==========================================
   END UNIVERSAL COMPONENTS
   ========================================== */

/* ===========================================
   UNIVERSAL CONTENT BOX STYLING
   =========================================== */

.content-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 25px;
	margin: 25px 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	position: relative;
}

.content-box:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--accent-blue); /* Use universal blue instead of gradient */
	border-radius: 2px 0 0 2px;
}

.content-box h3 {
	color: #2d3748;
	font-size: 1.1em;
	font-weight: 600;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e2e8f0;
}

.content-box ul,
.content-box ol {
	margin-left: 20px;
	line-height: 1.6;
}

.content-box p {
	line-height: 1.6;
	margin-bottom: 12px;
}

.content-box strong {
	color: #2d3748;
}

/* ===========================================
   END UNIVERSAL CONTENT BOX STYLING
   =========================================== */
