/* Offers System Styles */

/* Add Offer Button */
.add-offer-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2098f5;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(32, 152, 245, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-offer-btn:hover {
    background: #131313;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 152, 245, 0.4);
}

/* Modal Styles */
.offer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #272727;
    border-radius: 5px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: #131313;
    color: white;
    padding: 20px 30px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    line-height: 30px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: #2098f5;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #131313;
    transform: scale(1.1);
}

/* Form Styles */
#addOfferForm {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    line-height: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #131313;
    color: #939393;
    line-height: 25px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2098f5;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2098f5;
    color: white;
}

.btn-primary:hover {
    background: #131313;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #131313;
    transform: translateY(-2px);
}

/* Offers Container */
#offersContainer {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.no-offers {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.no-offers i {
    font-size: 3em;
    color: #adb5bd;
    margin-bottom: 20px;
    display: block;
}

/* Offer Cards */
.offer-card {
    background: #272727;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: #2098f5;
}

.offer-images {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.offer-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-images img {
    transform: scale(1.05);
}

.offer-content {
    padding: 25px;
}

.offer-title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: normal;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.offer-category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.offer-category.vanzare {
    background: #2098f5;
    color: #fff;
}

.offer-category.cumparare {
    background: #4CAF50;
    color: #fff;
}

.offer-category.inchiriere {
    background: #f76300;
    color: #fff;
}

.offer-price {
    background: #2098f5;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
}

.offer-location {
    color: #939393;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 25px;
}

.offer-description {
    color: #939393;
    line-height: 25px;
    margin-bottom: 15px;
    font-size: 14px;
}

.offer-contact {
    background: #131313;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    color: #939393;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
}

.offer-date {
    color: #939393;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    line-height: 25px;
}

.delete-offer-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-offer-btn:hover {
    background: #131313;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .add-offer-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    #addOfferForm {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .offer-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .offer-images {
        height: 200px;
    }
    
    .offer-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .add-offer-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .modal-header h3 {
        font-size: 1.2em;
    }
    
    .offer-title {
        font-size: 1.3em;
    }
} 