/* Style dla frontendu widgetów - bez ustawień czcionek */

.jcm-offers-widget {
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

.jcm-offers-widget h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.jcm-offers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jcm-offer-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.jcm-offer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.jcm-offer-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.jcm-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jcm-offer-content {
    padding: 20px;
}

.jcm-offer-title {
    color: #2c3e50;
    margin: 0 0 10px 0;
    text-decoration: none;
    display: block;
}

.jcm-offer-title:hover {
    color: #0073aa;
}

.jcm-offer-price {
    color: #e74c3c;
    margin: 0 0 15px 0;
}

.jcm-offer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.jcm-offer-detail {
    display: flex;
    align-items: center;
    color: #7f8c8d;
}

.jcm-offer-detail-icon {
    margin-right: 8px;
    opacity: 0.7;
}

.jcm-offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.jcm-offer-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.jcm-offer-btn-primary {
    background: #0073aa;
    color: white;
}

.jcm-offer-btn-primary:hover {
    background: #005a87;
    color: white;
}

.jcm-offer-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.jcm-offer-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.jcm-offer-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcm-offer-status-active {
    background: #d4edda;
    color: #155724;
}

.jcm-offer-status-reserved {
    background: #fff3cd;
    color: #856404;
}

.jcm-offer-status-sold {
    background: #f8d7da;
    color: #721c24;
}

.jcm-offer-status-inactive {
    background: #e2e3e5;
    color: #383d41;
}

/* Responsywność */
@media (max-width: 768px) {
    .jcm-offers-list {
        grid-template-columns: 1fr;
    }
    
    .jcm-offer-details {
        grid-template-columns: 1fr;
    }
    
    .jcm-offer-actions {
        flex-direction: column;
    }
}

/* Style dla tabeli ofert */
.jcm-offers-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.jcm-offers-table th,
.jcm-offers-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.jcm-offers-table th {
    background: #f8f9fa;
    color: #495057;
}

.jcm-offers-table tr:hover {
    background: #f8f9fa;
}

/* Style dla listy ofert */
.jcm-offers-simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jcm-offers-simple-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.jcm-offers-simple-list li:last-child {
    border-bottom: none;
}

/* Style dla metadanych */
.jcm-metadata {
    margin: 15px 0;
}

.jcm-metadata-group {
    margin-bottom: 20px;
}

.jcm-metadata-group-title {
    color: #2c3e50;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #e1e5e9;
}

.jcm-metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f8f9fa;
}

.jcm-metadata-label {
    color: #6c757d;
    font-weight: 500;
}

.jcm-metadata-value {
    color: #2c3e50;
}

.jcm-metadata-link {
    color: #0073aa;
    text-decoration: none;
}

.jcm-metadata-link:hover {
    text-decoration: underline;
}

/* Style dla przycisków akcji */
.jcm-action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.jcm-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.jcm-action-btn:hover {
    transform: translateY(-1px);
}

/* Style dla komunikatów */
.jcm-message {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

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

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

.jcm-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Style dla paginacji */
.jcm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.jcm-pagination a,
.jcm-pagination span {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    transition: all 0.3s ease;
}

.jcm-pagination a:hover {
    background: #0073aa;
    color: white;
}

.jcm-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Style dla filtrów */
.jcm-filters {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    align-items: center;
}

.jcm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jcm-filter-label {
    color: #6c757d;
    font-weight: 500;
}

.jcm-filter-select,
.jcm-filter-input {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: white;
}

.jcm-filter-select:focus,
.jcm-filter-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Style dla sortowania */
.jcm-sorting {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

.jcm-sort-label {
    color: #6c757d;
    font-weight: 500;
}

.jcm-sort-select {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: white;
}

.jcm-sort-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Style dla loading */
.jcm-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.jcm-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Style dla pustego stanu */
.jcm-empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.jcm-empty-state-icon {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Style dla błędów */
.jcm-error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

/* Style dla sukcesu */
.jcm-success {
    text-align: center;
    padding: 40px;
    color: #28a745;
}