/* Halo Ogłoszenia - Style */

/* Kontener formularza */
.halo-formularz-container {
	max-width: 100%;
	margin: 0;
	background: #ffffff;
	border: 2px solid #4b5fb3;
	border-radius: 5px;
	font-family: 'Rubik';
}

.halo-formularz-container h3 {
	margin: 0 0 20px 0;
	color: #fff;
	text-align: center;
	background: #4b5fb3;
	padding: 20px;
	font-weight: 700;
}

/* Formularz */
.halo-formularz {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 0 20px 20px;
}

.halo-form-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.halo-form-row label {
	font-weight: bold;
	color: #555;
}

.halo-form-row input,
.halo-form-row select,
.halo-form-row textarea {
	padding: 10px;
	border: 1px solid #ccc !important;
	border-radius: 3px;
	font-size: 14px;
	height: 40px;
	text-align: 12px;
}

.halo-form-row input:focus,
.halo-form-row select:focus,
.halo-form-row textarea:focus {
	outline: none;
	border-color: #0073aa !important;
}

.halo-submit-btn {
	background: #4b5fb3;
	color: #fff;
	padding: 12px 24px;
	border: none;
	border-radius: 3px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s;
	font-weight: 600;
}

.halo-submit-btn:hover {
	background: #ffe330;
	color: #4b5fb3;
}

/* Wiadomości */
.halo-message {
	padding: 10px;
	border-radius: 3px;
	margin-top: 10px;
	display: none;
}

.halo-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.halo-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Lista ogłoszeń */
.halo-lista-container {
	margin: 20px 0;
}

.halo-ogloszenia-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

.halo-ogloszenie-item {
	background: white;
	border: 1px solid #f0f0f0;
	border-radius: 5px;
	padding: 20px;
}

.halo-ogloszenie-item h4 {
	margin: 0 0 10px 0;
}

.halo-ogloszenie-item h4 a {
	color: #0073aa;
	text-decoration: none;
}

.halo-ogloszenie-item h4 a:hover {
	text-decoration: underline;
}

.halo-ogloszenie-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 12px;
	color: #666;
}

.halo-typ {
	background: #ffde5a;
	color: #000;
	padding: 3px 8px;
	border-radius: 3px;
	font-weight: bold;
	display: inline-block;
	margin: 10px 0;
}

.halo-data {
	color: #999;
}

.halo-ogloszenie-excerpt {
	margin-bottom: 15px;
	line-height: 1.5;
	color: #555;
}

.halo-czytaj-wiecej {
	display: inline-block;
	background: #0073aa;
	color: white;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 3px;
	font-size: 14px;
	transition: background 0.3s;
}

.halo-czytaj-wiecej:hover {
	background: #005a87;
}

/* Paginacja */
.halo-pagination {
	text-align: center;
	margin-top: 30px;
}

.halo-pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 2px;
	background: #ffffff;
	border: 1px solid #f0f0f0;
	text-decoration: none;
	color: #333;
	border-radius: 3px;
	font-weight: 600;
}

.halo-pagination .page-numbers.current {
	background: #ffde5a;
	color: #000;
	border-color: #ffde5a;
}

.halo-pagination .page-numbers:hover {
	background: #e9e9e9;
}

/* Treść ogłoszenia */
.halo-tresc-container {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
}

.halo-tresc-container h2 {
	color: #333;
	margin-bottom: 20px;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 10px;
}

.halo-ogloszenie-details {
	border-radius: 5px;
	margin-bottom: 30px;
	border-left: 0;
	margin-top: 21px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.halo-detail-row {
	display: flex;
	justify-content: space-between;
}

.halo-detail-row:last-child {
	border-bottom: none;
}

.halo-detail-row strong {
	color: #333;
	min-width: 120px;
}

.halo-ogloszenie-content {
	line-height: 1.6;
	color: #333;
}

/* Responsywność */
@media (max-width: 768px) {
	.halo-ogloszenia-grid {
		grid-template-columns: 1fr;
	}
	
	.halo-detail-row {
		flex-direction: column;
		gap: 5px;
	}
	
	.halo-detail-row strong {
		min-width: auto;
	}
}


.halo-form-row textarea {
    height: 200px;
}

@media(max-width: 578px){
	.halo-ogloszenie-details {
    grid-template-columns: 1fr;
    gap: 9px;
}

.halo-ogloszenie-item {
    padding: 10px;
}
}


.form-editor-content {
    display: none;
}


.halo-lista-container {
    font-family: 'Rubik';
}

.halo-ogloszenie-content p {
    font-weight: 400;
}

.halo-formularz-container h3 {
    color: #ffde5a;
}

.add-form-btn {
    background: #ffde5a!important;
    color: #000!important;
    border: 0 !important;
    border-radius: 0!important;
    font-size: 14px!important;
    font-weight: 500!important;
    font-family: 'RUBIK'!important;
    text-transform: uppercase!important;
    padding: 12px 20px !important;
	    width: 100%;
    text-align: center;
}

.add-form-btn:after {
    display: none !important;
}

.add-form-btn:hover {
    background: #000 !important;
    color: #fff !important;
}

.halo-ogloszenie-content, .halo-ogloszenie-details {
    font-family: Arial;
}

.halo-form-row input, .halo-form-row select, .halo-form-row textarea {
    text-indent: 7px;
}

ul.halo-kategorie-lista li {
    list-style-type: none;
}

li.halo-kategoria-item a {
    color: #000 !important;
}

/* Upload zdjęć - nowoczesny design */
.halo-upload-area {
    border: 1px dashed #cbd5e0;
    border-radius: 0;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.halo-upload-area:hover {
    border-color: #4299e1;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.15);
}

.halo-upload-area.dragover {
    border-color: #38b2ac;
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    transform: scale(1.02);
}

.halo-upload-icon {
    font-size: 48px;
    color: #a0aec0;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.halo-upload-area:hover .halo-upload-icon {
    color: #4299e1;
    transform: scale(1.1);
}

.halo-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.halo-upload-subtext {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
}

.halo-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Podgląd zdjęć */
.halo-photos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.halo-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.halo-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #4299e1;
}

.halo-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.halo-photo-item:hover img {
    transform: scale(1.05);
}

.halo-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.halo-photo-item:hover .halo-photo-overlay {
    opacity: 1;
}

.halo-photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border: 2px solid white;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.halo-photo-remove:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
}

.halo-photo-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.halo-photo-uploading .halo-photo-status {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.halo-photo-success .halo-photo-status {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.halo-photo-error .halo-photo-status {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

/* Progress bar */
.halo-upload-progress {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.halo-progress-bar-container {
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 12px;
}

.halo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4299e1 0%, #3182ce 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.halo-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.halo-progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

/* Upload info */
.halo-upload-info {
    background: linear-gradient(135deg, #ffde5a 0%, #ffde5a 100%);
    border: 1px solid #ffde5a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.halo-upload-info::before {
    content: "ℹ️";
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .halo-photos-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .halo-upload-area {
        padding: 30px 15px;
    }
    
    .halo-upload-icon {
        font-size: 36px;
    }
    
    .halo-upload-text {
        font-size: 16px;
    }
}

.halo-ogloszenie-zdjecia > div {
    grid-template-columns: 1fr 1fr 1fr !important;
}